Oline 61
13th February 2006, 02:59
Okay, I have 2 main questions to ask.
The first is about the effects of --ratetol and --qcomp. I want to use these two settings to generate output with no restriction on bitrate fluctuation in the stream, but clamp the average bitrate very tightly to the --bitrate setting.
I have been using --ratetol 1.0 --qcomp 1.0. I assume that --ratetol only affects the average bitrate, and --qcomp only affects bitrate fluctuation. Is that correct? If not, what are the effects of these functions, and how might I use them to achieve my goal. I am using 3 pass encoding, with the follow 3 commandlines:
/opt/my_mplayer/bin/x264 --pass 1 --bitrate 2454 --stats "/home/andrew/workdir/x264stats.log" --bframes 2 --b-pyramid --filter -3:-3 --subme 1 --analyse none --ratetol 1.0 --qcomp 1.0 --me dia --zones 156250,163225,q=40 --cqmfile "/home/andrew/workdir/eqm_avc_hr.cfg" --progress --no-psnr --output "/home/andrew/workdir/pass1.264" "/home/andrew/workdir/stream.yuv" 640x480
/opt/my_mplayer/bin/x264 --pass 3 --bitrate 2454 --stats "/home/andrew/workdir/x264stats.log" --ref 5 --mixed-refs --no-fast-pskip --bframes 2 --b-pyramid --b-rdo --bime --weightb --filter -3:-3 --subme 6 --trellis 1 --analyse all --8x8dct --ratetol 1.0 --qcomp 1.0 --me umh --zones 156250,163225,q=40 --cqmfile "/home/andrew/workdir/eqm_avc_hr.cfg" --progress --output "/home/andrew/workdir/pass2.264" "/home/andrew/workdir/stream.yuv" 640x480
/opt/my_mplayer/bin/x264 --pass 3 --bitrate 2454 --stats "/home/andrew/workdir/x264stats.log" --ref 5 --mixed-refs --no-fast-pskip --bframes 2 --b-pyramid --b-rdo --bime --weightb --filter -3:-3 --subme 6 --trellis 1 --analyse all --8x8dct --ratetol 1.0 --qcomp 1.0 --me umh --zones 156250,163225,q=40 --cqmfile "/home/andrew/workdir/eqm_avc_hr.cfg" --progress --output "/home/andrew/workdir/pass3.264" "/home/andrew/workdir/stream.yuv" 640x480
The output is being piped from mencoder in case you were wondering.
My second question is about statsfiles in 3 pass mode. I noticed that the first pass creates a file (x264stats.log.temp) which appears to be copied to (x264stats.log) at the completion of the first pass. Then the second pass creates (x264stats.log.temp), but what happens at the end of the pass? Does it update (x264stats.log)? It would be pointless to do 3 passes if the second pass didn't update the stats file, wouldn't it. It seems like the answer should be that it obviously does, but I want to be sure.
I'll go ahead and throw in a 3rd question too. Adaptive quantization isn't part of x264 SVN is it? It's a patch from Sharktooth's builds, correct? Where can I find this patch, because I want to apply it to my x264 builds and try it.
Thanks for your help,
Oline 61
The first is about the effects of --ratetol and --qcomp. I want to use these two settings to generate output with no restriction on bitrate fluctuation in the stream, but clamp the average bitrate very tightly to the --bitrate setting.
I have been using --ratetol 1.0 --qcomp 1.0. I assume that --ratetol only affects the average bitrate, and --qcomp only affects bitrate fluctuation. Is that correct? If not, what are the effects of these functions, and how might I use them to achieve my goal. I am using 3 pass encoding, with the follow 3 commandlines:
/opt/my_mplayer/bin/x264 --pass 1 --bitrate 2454 --stats "/home/andrew/workdir/x264stats.log" --bframes 2 --b-pyramid --filter -3:-3 --subme 1 --analyse none --ratetol 1.0 --qcomp 1.0 --me dia --zones 156250,163225,q=40 --cqmfile "/home/andrew/workdir/eqm_avc_hr.cfg" --progress --no-psnr --output "/home/andrew/workdir/pass1.264" "/home/andrew/workdir/stream.yuv" 640x480
/opt/my_mplayer/bin/x264 --pass 3 --bitrate 2454 --stats "/home/andrew/workdir/x264stats.log" --ref 5 --mixed-refs --no-fast-pskip --bframes 2 --b-pyramid --b-rdo --bime --weightb --filter -3:-3 --subme 6 --trellis 1 --analyse all --8x8dct --ratetol 1.0 --qcomp 1.0 --me umh --zones 156250,163225,q=40 --cqmfile "/home/andrew/workdir/eqm_avc_hr.cfg" --progress --output "/home/andrew/workdir/pass2.264" "/home/andrew/workdir/stream.yuv" 640x480
/opt/my_mplayer/bin/x264 --pass 3 --bitrate 2454 --stats "/home/andrew/workdir/x264stats.log" --ref 5 --mixed-refs --no-fast-pskip --bframes 2 --b-pyramid --b-rdo --bime --weightb --filter -3:-3 --subme 6 --trellis 1 --analyse all --8x8dct --ratetol 1.0 --qcomp 1.0 --me umh --zones 156250,163225,q=40 --cqmfile "/home/andrew/workdir/eqm_avc_hr.cfg" --progress --output "/home/andrew/workdir/pass3.264" "/home/andrew/workdir/stream.yuv" 640x480
The output is being piped from mencoder in case you were wondering.
My second question is about statsfiles in 3 pass mode. I noticed that the first pass creates a file (x264stats.log.temp) which appears to be copied to (x264stats.log) at the completion of the first pass. Then the second pass creates (x264stats.log.temp), but what happens at the end of the pass? Does it update (x264stats.log)? It would be pointless to do 3 passes if the second pass didn't update the stats file, wouldn't it. It seems like the answer should be that it obviously does, but I want to be sure.
I'll go ahead and throw in a 3rd question too. Adaptive quantization isn't part of x264 SVN is it? It's a patch from Sharktooth's builds, correct? Where can I find this patch, because I want to apply it to my x264 builds and try it.
Thanks for your help,
Oline 61