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)
- I need advice about a runtime failure in Video2x 4.8.1 HOT 1
- video2x cannot be start :(
- Command '['C:\\Users\\Miloud-18\\Desktop\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\waifu2x-ncnn-vulkan', '-n', '2', '-s', '2', '-t', '400', '-m', 'C:\\Users\\Miloud-18\\Desktop\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\models-cunet', '-g', '0', '-j', '1:1:1', '-f', 'png', '-i', 'C:\\Users\\MILOUD~1\\AppData\\Local\\Temp\\video2x\\tmpaqv4fyo5', '-o', 'C:\\Users\\MILOUD~1\\AppData\\Local\\Temp\\video2x\\tmp4gp3r7_1']' returned non-zero exit status 3221225781.
- C:\Users\mr951\Downloads\video2x-4.8.1-win32-full\dependencies\ffmpeg\bin
- D:\video2x-4.8.1-win32-full\video2x-4.8.1-win32-full\dependencies\ffmpeg\bin
- Test
- [Errno 2] No such file or directory: 'C:\\Users\\cleon\\Videos\\gurafauna_output.mkv' HOT 1
- NVIDIA QUADRO RTX A2000 12GB 3 hour ETA NVENC inactive. What should I do?
- Command '['C:\\Users\\M ALi\\Downloads\\Compressed\\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', 'C:\\Users\\M ALi\\Downloads\\Compressed\\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\\MALI~1\\AppData\\Local\\Temp\\video2x\\tmpfrix5xcq', '-o', 'C:\\Users\\MALI~1\\AppData\\Local\\Temp\\video2x\\tmpbk98o9mj']' returned non-zero exit status 3221225781.
- 1
- Command '['E:\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\waifu2x-caffe-cui', '--tta', '0', '--gpu', '1', '--batch_size', '1', '--crop_size', '128', '--output_depth', '24', '--output_quality', '2', '--process', 'gpu', '--model_dir', 'E:\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\models\\ukbench', '--noise_level', '3', '--mode', 'auto_scale', '--output_extention', 'png', '--scale_width', '1760', '--scale_height', '1440', '--input_path', 'D:\\Temp\\tmpnk2m6spo\\0', '--output_path', 'D:\\Temp\\tmpv7lw_u_u']' returned non-zero exit status 1.
- Sequential identical frames
- Command '['C:\\Users\\ronak\\Downloads\\Compressed\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\waifu2x-caffe-cui', '--tta', '0', '--gpu', '1', '--batch_size', '1', '--crop_size', '128', '--output_depth', '24', '--output_quality', '-1', '--process', 'cudnn', '--model_dir', 'C:\\Users\\ronak\\Downloads\\Compressed\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\models\\cunet', '--noise_level', '3', '--mode', 'noise_scale', '--output_extention', 'png', '--scale_width', '3840', '--scale_height', '2160', '--input_path', 'C:\\Users\\ronak\\AppData\\Local\\Temp\\video2x\\tmp4zgj3b4y\\2', '--output_path', 'C:\\Users\\ronak\\AppData\\Local\\Temp\\video2x\\tmp2oz1eh45']' returned non-zero exit status 3221226505.
- input output path type mismatch
- Command '['C:\\Users\\HITEN\\Downloads\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\waifu2x-caffe-cui', '--tta', '0', '--gpu', '0', '--batch_size', '1', '--crop_size', '128', '--output_depth', '24', '--output_quality', '-1', '--process', 'gpu', '--model_dir', 'C:\\Users\\HITEN\\Downloads\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\models\\cunet', '--noise_level', '3', '--mode', 'noise_scale', '--output_extention', 'png', '--scale_width', '0', '--scale_height', '0', '--input_path', 'C:\\Users\\HITEN\\AppData\\Local\\Temp\\video2x\\tmp9jhc8dw3\\0', '--output_path', 'C:\\Users\\HITEN\\AppData\\Local\\Temp\\video2x\\tmp90c4bof_']' returned non-zero exit status 1.
- Subprocess 31868 exited with code 3221225477
- Are there any ways to upscale videos more space efficient? HOT 3
- Help with enhancing video to identify downed military plane
- What's up with those indian streetshitters?
- Command '['E:\\Загрузки\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\waifu2x-ncnn-vulkan', '-n', '2', '-s', '2', '-t', '400', '-m', 'E:\\Загрузки\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\models-cunet', '-g', '0', '-j', '1:1:1', '-f', 'png', '-i', 'C:\\Users\\neiko\\AppData\\Local\\Temp\\video2x\\tmpexr0ejyz', '-o', 'C:\\Users\\neiko\\AppData\\Local\\Temp\\video2x\\tmptp_s0atn']' 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.