Will different presets in x264 affect the video quality, if I'm using CRF value 0?
For example, will ultrafast preset produce as good quality as placebo, with CRF 0?
+ Reply to Thread
Results 1 to 19 of 19
-
-
Should just affect the file size, faster settings giving bigger files.
-
In general, your CRF is what determines the quality. 0 should be the same, regardless of what speed you used.
I refer you to Matt Gadient's Guide and his explanation of:
-Encodes fast
-High quality
-Smallest file size possible
Pick 2
https://mattgadient.com/2013/06/12/a-best-settings-guide-for-handbrake-0-9-9/ -
set --qp 0 , not --CRF 0
YUV video to get High 4:4:4
x264.exe --qp 0 --keyint 30 --profile high444 --output out.264 input_yuv.avs
-GOP is 30 frames long, you do not want to have it default 250 frames long, not sure what is the reason to have lossless H.264
-to specify profile high 4:4:4 might not be necessary and it is created automatically -
I made 2 encodings with CRF 0, using both ultrafast and placebo presets. The output looks like exactly same for both.
First sample:
Ultrafast:
http://i.imgbox.com/U5jRtBwX.png
Placebo:
http://i.imgbox.com/Y1jSPRpl.png
Second sample:
Ultrafast:
http://i.imgbox.com/Ps6E6Xug.png
Placebo:
http://i.imgbox.com/AfjtYzQl.png
Third sample:
Ultrafast:
http://i.imgbox.com/FrnFywzy.png
Placebo:
http://i.imgbox.com/ERkWyowe.png -
"Looks like" is no valid criterion for "being lossless". Did you calculate the difference between both pictures, possibly with contrast enhancement, to check whether they are really identical?
If one of both videos would have a worse quality, then the conversion would not be "lossless". If both conversions are "lossless", their quality must both be the same, 100%.
A "constant quantizer" mode with value 0 (--qp 0) will provide lossless compression (down to the color space and chroma subsampling). A "constant rate factor" (CRF) mode will not guarantee this to the last bit. -
q (from "quantization") is a lower case Q, not G.
Furthermore: Forget lossless encoding and VBV. Your bitrate will explode. If you want lossless encoding, expect huge results, certainly not compatible to any consumer video format. -
q (from "quantization") is a lower case Q, not G.
Furthermore: Forget lossless encoding and VBV. Your bitrate will explode. If you want lossless encoding, expect huge results, certainly not compatible to any consumer video format.
Thanks for help! -
In this case...
Really lossless quality is not necessary, "visually transparent" will be enough (CRF around 6..12 is good enough not to see a difference, yet get some compression still).
But what's quite important for YouTube is to upload a high resolution. FullHD 1080p should be a minimum to achieve still a convenient playback quality in lower resolutions, reencoded by YouTube. Even upscaling to an UHD resolution may give some quality gain. Look for more existing threads about that topic. -
-
Indeed; x264 is a quite efficient compressor, it is possible to achieve a convenient result with a compression ratio of about 1:1000 (compared to uncompressed YUV 4:2:0 a.k.a. "YV12"). But lossless video codecs hardly reach a compression ratio of 1:5 ... that means, you would have to deal with at least 200x the size you were used to.
-
Thank you for your tips.
My source material is DVD quality. If I edit it in a lossy way (let's say I use CRF value 6) but I also upscale it to Full HD resolution, would it be better on Youtube, than losslessly edited video at dvd resolution? -
I was under the impression it did but could be wrong.
Anyway here are the subtraction photos done in avisynth, and each pair of images provided by OP have the exact same CRC-32 hash.
Code:#example of script used on each subtraction image A=ImageSource("...Ultrafast_2.png") B=ImageSource("...Placebo_2.png") Subtract(A,B)
Last edited by KarMa; 12th May 2016 at 18:03. Reason: example script
-
Yes, --crf 0 is lossless. At least with 8-bit x264. I see some old posts saying that 8-bit input to 10-bit output will not be lossless with --crf 0.
-
For fun I took the frog image and then converted it to JPEG using different quality settings, then subtracted the JPEG from the PNG source.
JPEG Quality=100 in Paint.NET (4:1 Compression ratio over the PNG)
JPEG Quality=50 in Paint.NET (32:1 Compression ratio over the PNG)
Should point our the PNG image is already losslessly compressed and so skewing down the compression ratio, which would be higher compared to raw BMP.Last edited by KarMa; 13th May 2016 at 18:11.
Similar Threads
-
x264 lossless and presets help
By reigan42 in forum Newbie / General discussionsReplies: 18Last Post: 2nd Jul 2015, 15:21 -
Lossless conversion with Handbrake?
By WBFAir in forum Video ConversionReplies: 69Last Post: 1st Sep 2013, 17:35 -
Video Conversion Software with multiple presets in a single batch list ?
By CyberOtter in forum Video ConversionReplies: 14Last Post: 21st May 2013, 07:41 -
dumb question about x264 lossless
By deadrats in forum Video ConversionReplies: 4Last Post: 1st Jan 2013, 21:00 -
Need advice on x264 presets
By augerpro in forum Video ConversionReplies: 9Last Post: 20th Jun 2012, 16:27