I was using an FFMPEG option to make my video lossless but when I searching for commands, I found that you could utilize presets for compression. My question which option is favorable for lossless compression? Should I leave it as is or should I use a preset? I am looking to preserve every aspect of the video with only a few artifacts.
+ Reply to Thread
Results 1 to 5 of 5
-
-
lossless compression means no artifacts compared to the original, not "few" artifacts
veryslow preset lossless compression will give you slightly better compression ratio than ultrafast, at the expense of being slower to encode. They both have identical quality because they are lossless. -
Generally, the higher the preset the more compression you'll get. But how much more depends on the nature of the video. And that additional compression may not be worth the additional processing time (and won't be possible for realtime video capture). Real world video (VHS for example) doesn't get much more compression. Some edge cases like slideshows, Powerpoint presentations, computer rendered cartoons, etc. may get significantly more. You should compress some representative samples at different presets and see how the file size varies.
Also, be sure you aren't going through any color format changes before the compression. For example, converting YV24 to YV12 will lose color resolution, before you compress the video losslessly. If you want to restore the original YV24 you won't be able to. You will only be able to losslessly restore the YV12 that was given to the encoder.
I ran some quick tests on a 720x576 ffmpeg huffyuv 4:2:0 VHS avi cap:
Code:Preset fps MB ----------------------- Ultrafast 2031 591 Superfast 526 522 Veryfast 461 523 Medium 178 517 Versyslow 39 516 Placebo 12 516
Last edited by jagabo; 4th Sep 2021 at 22:35.
-
So if I go higher I will get faster encoding but at the cost of compression?
-
Yes, the encoding will still be lossless and presets are just a tradeoff between speed and size.
users currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
Lossy and Lossless compression: Is one format better than the other?
By Guernsey in forum Newbie / General discussionsReplies: 6Last Post: 11th May 2021, 04:36 -
Quick sanity check: Lossless to lossless encoding HuffYUV to UTVideo
By nicholasserra in forum Video ConversionReplies: 2Last Post: 20th Aug 2020, 11:41 -
x264+slow or x265+veryslow+psnr
By sophisticles in forum Video ConversionReplies: 3Last Post: 1st May 2020, 01:45 -
Maximum compression in the codec x264
By Megafox in forum Newbie / General discussionsReplies: 3Last Post: 7th Feb 2018, 23:15 -
Lossless audio compression codec for VirtualDub?
By synnchan in forum Newbie / General discussionsReplies: 4Last Post: 20th Jan 2018, 15:15