Comments (5)
The difference in quality is too big between PNG and JPEG. Therefore, this feature request will not be implemented at this point.
PNG
JPEG
from video2x.
To be fair, and this is just additional technical info on the topic, it does look like the default jpg output in ffmpeg without specifying a quality rate is pretty poor not only from your test images but a brief test of my own. Selecting the jpg output quality is done using the same -q
or -qscale
modifiers like other codecs. Looks like it ranges from 2-32 for jpeg with 2 being the best and 32 being the worst. Not setting it, looks like with my test samples it was defaulting to about 24-25. Setting to 1 (before I found that it MAY be limited to a max of 2 for jpeg, but doesn't seem to make much difference) seems to produce VERY minor artifacting at best which takes zooming in past 100% to identify. YMMV however.
Sample size of 750 720x576 frames. Current PNG output is 390MB, JPEG at -q 1
is 35.3MB. So there IS a significant size difference at minimal quality loss.
With that said this is where my opinion and bias on this request comes in: JPEG is lossy and PNG is lossless. When dealing with the numerous conversion stages here (source video > png/jpg/etc frames > waifu2x processing and encoding to another set of png/jpg/etc frames > h264) especially with the focus of improving the quality of the source content, I would never trust a lossy intermediate format like jpg no matter how good of quality you can get it to produce. Disk space is cheap and for your average ~24 minute SD episode (again, based off my current working set of content at 720x576 source resolution, being processed up to 1440x1080) it should only be producing around ~130-150GB of frames both source and output.
from video2x.
@cr08 I understood the problem afterwards.
DeadSix27/waifu2x-converter-cpp#114
Here was my conversation with waifu2x-converter-cpp's developer on this topic.
I might still try JPEG later.
from video2x.
It's so sad that I've already written the code, but I git reset --hard
'ed the thing.
from video2x.
Added JPEG support in the newest version
from video2x.
Related Issues (20)
- 'NoneType' object has no attribute 'split'.
- 'NoneType' object has no attribute 'split'
- TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
- Command '['dependencies\\ffmpeg\\bin\\ffmpeg', '-hwaccel', 'auto', '-y', '-i', 'C:\\Users\\azeem\\OneDrive\\Documents\\ytvideos (and oh, sources for recreations)\\GA_MOVIE.mp4', '-pix_fmt', 'rgb24', 'C:\\Users\\azeem\\AppData\\Local\\Temp\\video2x\\tmp9s2n0je4\\extracted_%0d.png']' returned non-zero exit status 1. HOT 1
- WSL2 Docker Exception: process died unexpectedly
- Slow Speed with RTX 4090
- C:\WINDOWS\System32\dependencies\ffmpeg\bin
- Request support for Real ESRGAN
- anime4k not working in Docker image HOT 2
- Video slowly getting out of sync (slower) than audio and subtitles HOT 4
- Output of Video and Images is Always Black
- How to add your own AI model?
- C:\Windows\system32\dependencies\ffmpeg\bin
- minor typo in wiki
- video2x switches to internal GPU as soon as starting to upscale extracted frames HOT 1
- C:\WINDOWS\system32\dependencies\ffmpeg\bin
- Command '['D:\\Software\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\waifu2x-ncnn-vulkan', '-n', '2', '-s', '2', '-t', '400', '-m', 'D:\\Software\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\models-cunet', '-g', '0', '-j', '1:1:1', '-f', 'png', '-i', 'C:\\Users\\Rohit\\AppData\\Local\\Temp\\video2x\\tmpi_dnwu5w', '-o', 'C:\\Users\\Rohit\\AppData\\Local\\Temp\\video2x\\tmpx58av4vz']' returned non-zero exit status 3221225781.
- how to adjust the settings to make it faster?
- no output suffix specified
- Command '['D:\\Downloads\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\waifu2x-ncnn-vulkan', '-n', '2', '-s', '2', '-t', '400', '-m', 'D:\\Downloads\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\models-cunet', '-g', '0', '-j', '1:1:1', '-f', 'png', '-i', 'C:\\Users\\New\\AppData\\Local\\Temp\\video2x\\tmp2i0kqv2d', '-o', 'C:\\Users\\New\\AppData\\Local\\Temp\\video2x\\tmptv3yefn7']' returned non-zero exit status 3221225781.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from video2x.