Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
13th March 2018, 18:18 | #1 | Link |
Registered User
Join Date: Feb 2003
Location: Palmcoast of Norway
Posts: 363
|
2Pass VBR vs Constrained CRF modes, differences?
hi! What is the real difference between:
1. 2Pass VBR with a max min avg level, example 8mbps max, 4mbps avg. 2. Constrained/Capped CRF mode, (example: CRF22 with with a max bitrate of 8mbps Im fully aware that different types of content will give different results, but in general what are the pros and cons with both methods from a quality perspective ? /TEB |
13th March 2018, 18:51 | #2 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
|
1) can target a specific bitrate.
2) cannot target a specific bitrate.
__________________
madVR options explained |
14th March 2018, 10:04 | #4 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,309
|
If both result files have the same size, it's been always told that there will be no differences, because it's the same algorithm/method used in both cases.
I've nevertheless noticed a difference, not in quality, but just in the result log files. Even if both cases are encoded with "--direct auto", and with the same parameters except the CRF/VBR part, in the result log file, i've noticed that for CRF mode, i've always a result like "Spatial : 100% Temporal : 0%". But, in 2 pass encode, the 1rst pass is also always "Spatial : 100% Temporal : 0%". but the 2nd pass i've a "Temporal" which is not at 0. I can have for exemple "Spatial : 95% Temporal : 5%". For now, i have the feeling that if you are in a one pass mode, you'll never access to "Temporal". No idea how it affects quality, and what exactly is or how things are impacted.
__________________
My github. |
14th March 2018, 10:07 | #5 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,259
|
There have been discussions about this before and iirc. assuming the output file size is the same overall quality should be nearly the same, on some frames crf will look better and on some 2pass will look better.
|
14th March 2018, 10:16 | #6 | Link |
Registered User
Join Date: May 2006
Posts: 3,997
|
I understand that there are subtle differences, but you will usually not see these when watching, unless perhaps when one applies a too strict limitation of the max. bitrate / buffer control in CRF mode.
So for equal file sizes and same encoder settings the quality will be very much the same (identical). There is no clear winner as I understand it. So nothing to worry about. |
14th March 2018, 10:34 | #7 | Link | |
Registered User
Join Date: May 2006
Posts: 3,997
|
Quote:
I would assume that with "slow 1st pass" the result for spatial/temporal would be the same. |
|
14th March 2018, 20:56 | #9 | Link |
Registered User
Join Date: Feb 2003
Location: Palmcoast of Norway
Posts: 363
|
I did some tests the other day with a Prores source, comparing 2pass VBR, constrained CRF and CRF "free". CRF Free won the SSIM tests overall and had the smallest filesize as a end result of the 10000 frames in my testcase. 2pass VBR actually came up ontop of CRF constrained within the same bitrate limits.
So to conclude from my perspektive.. CRF "free" gives the encoder the ability to maximize its ratecontrol to the fullest and best way, whilst constraining it (restricting it) gives a worse result than 2pass VBR |
14th March 2018, 23:04 | #10 | Link | |
Registered User
Join Date: May 2006
Posts: 3,997
|
Quote:
Edit: b.t.w. x264 in 2-pass VBR mode defaults to "fast 1st pass". One has to specify explicitly "--slow-firstpass" when the same encoder settings should apply for both passes. Last edited by Sharc; 15th March 2018 at 08:27. Reason: typo |
|
14th March 2018, 23:11 | #11 | Link | |
Registered User
Join Date: May 2006
Posts: 3,997
|
Quote:
Last edited by Sharc; 14th March 2018 at 23:24. |
|
15th March 2018, 00:22 | #13 | Link |
Registered User
Join Date: May 2006
Posts: 3,997
|
Yes, but it can be different for CBR (1-pass) and 2-pass VBR encoding.
Moreover, it is very difficult to obtain exactly the same file size for CBR and 2-pass VBR mode, for a comparison. Last edited by Sharc; 15th March 2018 at 08:59. |
15th March 2018, 13:09 | #15 | Link |
Registered User
Join Date: Mar 2011
Posts: 4,823
|
The way I understand it, CRF has to guess as to the quality of the I-frames, whereas 2 pass doesn't, but on the other hand, CRF doesn't have to make any quality adjustments to achieve a particular bitrate whereas 2 pass needs to make quality adjustments as encoding progresses if the target bitrate isn't going to be achieved.
I've only ever seen CRF look worse than 2 pass when using a ridiculously low bitrate on a source with a complex opening scene. I have seen 2 pass give the ending credits of a long encode a fair bit more bitrate than CRF to achieve the requested file size. The best explanation I've read regarding x264's rate control methods is here: A qualitative overview of x264's rate control methods Although I had a bit of a hard time wrapping my head around it initially, so I re-wrote it in a more logical manner for my brain to digest. My re-written version can be found here: https://forum.videohelp.com/threads/...65#post2470457 Last edited by hello_hello; 15th March 2018 at 13:17. |
15th March 2018, 18:05 | #18 | Link | |
Registered User
Join Date: May 2006
Posts: 3,997
|
Quote:
I did such test quite some years ago, so the differences might be lower now due to x264 development progress since. |
|
23rd March 2018, 18:52 | #19 | Link |
Registered User
Join Date: Feb 2003
Location: Palmcoast of Norway
Posts: 363
|
thx for a nice and constructure discussion
Anyone compared CRF to other Constant Quality modes? (QP)? I heard that CRF is more optimized with regards to high temporal motion vs. QP... I may be mistaken.. |
23rd March 2018, 20:09 | #20 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,346
|
Quote:
Efficiency wise --qp is worse. Quality is lower if you measured various encodes at equivalent final bitrate. It also means things like AQ (adaptive quantization) are disabled. AQ is one of the big strengths in many encoding scenarios |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|