Dark Shikari说的:
CRF and 2-pass use identical bit allocation algorithms. All 2-pass does is pick the CRF value that gives the filesize you want. It's still using the CRF algorithm.
哪些片源更适合于2PASS,哪些适合于CRF 2pass看来要靠经验来判断合适的比特率 还是直接crf简单点
假设2PASS和CRF压出来的片子码率一样,质量是否相同 应该相同吧
1. Let me read pre-pass stats file, and guess what qp for frame N should be used to match your target bitrate
2. Apply my guess
3. Oh god, my guess is not perfect, the encoded bitrate goes higher than target bitrate * ( 1 + ratetol / 100. )
4. I need to lower bitrate for the following frames
5. Let me read pre-pass stats file, and guess what qp for frame N+1 should be used to match the fixed bitrate
6. Apply my guess
7. Oh god, my guess is not perfect, I lowered the bitrate too much, the encoded bitrate goes too low below target bitrate * ( 1 - ratetol / 100.)
8. I need to raise bitrate for the following frames
9. Let me read pre-pass stats file, and guess what qp for frame N+2 should be used to match the fixed bitrate
....
Bitrate-based RC: I'm a teapot.
The bitrate correction (lowering/raising) does not always occur at the beginning/end of encoding, but with every frame on which the estimated bitrate does not match the final encoded bitrate. If in one encoding process, the encoded bitrate of first N frames stays within target bitrate * ( 1 +or- ratetol / 100. ), then none of them need a fixed RC process; then if the encoded bitrate of the N+1 frame explodes, the bitrate of the N+2 frame needs to be fxed; and if after this fixing, all the following frames are encoded with perfect RC estimation, then their bitrate will not be fixed either. So in such a case, the 'unbalance' only happens on frame N+2, but not on any frames near the start or the end.