PDA

View Full Version : x264 Stats on 2-pass encode


Kairk
5th August 2006, 06:08
I think I'm doing something wrong with a 2 pass encode with the CLI, since the stats (Avg QP's) between the 2 passes don't match (there not even close). Here's what I get:


D:\Rips\Bat>"C:\Program Files\x264\x264.exe" --pass 1 --bitrate 1520 --stats ".stats" --bframes 3 --b-pyramid --direct auto --filter -2,-1 --subme 1 --analyse none --me umh --threads 2 --thread-input --cqmfile "D:\Test\eqm_avc_hr.cfg" --progress --no-psnr --aq-strength 0.825 --aq-sensitivity 15 --output NUL "MyVideo.avs"
avis [info]: 720x480 @ 23.98 fps (64152 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 3DNow!
x264 [info]: slice I:487 Avg QP:22.92 size: 34960 0:00:00
x264 [info]: slice P:22408 Avg QP:24.94 size: 13679
x264 [info]: slice B:41257 Avg QP:26.48 size: 4282
x264 [info]: mb I I16..4: 52.0% 0.0% 48.0%
x264 [info]: mb P I16..4: 25.0% 0.0% 0.0% P16..4: 57.9% 0.0% 0.0% 0.0% 0
.0% skip:17.1%
x264 [info]: mb B I16..4: 0.8% 0.0% 0.0% B16..8: 16.1% 0.0% 0.0% direct:
18.1% skip:65.0%
x264 [info]: final ratefactor: 26.10
x264 [info]: direct mvs spatial:98.6% temporal:1.4%
x264 [info]: kb/s:1495.5

encoded 64152 frames, 35.59 fps, 1496.59 kb/s

D:\Rips\Bat>"C:\Program Files\x264\x264.exe" --pass 2 --bitrate 1520 --stats ".stats" --ref 5 --mixed-refs --no-fast-pskip --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -2,-1 --subme 6 --trellis 1 --analyse all --8x8dct --me umh --threads 2 --thread-input -cqmfile D:\Test\eqm_avc_hr.cfg" --progress --no-psnr --aq-strength 0.825 --aq-sensitivity 15 --output "MyVideo.mkv" "MyVideo.avs"
avis [info]: 720x480 @ 23.98 fps (64152 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 3DNow!
x264 [info]: slice I:487 Avg QP:18.78 size: 440240:00:00
x264 [info]: slice P:22408 Avg QP:21.30 size: 17365
x264 [info]: slice B:41257 Avg QP:22.46 size: 2375
x264 [info]: mb I I16..4: 6.7% 91.4% 1.9%
x264 [info]: mb P I16..4: 1.4% 8.8% 0.3% P16..4: 59.7% 15.9% 11.1% 0.1% 0
.0% skip: 2.6%
x264 [info]: mb B I16..4: 0.0% 0.4% 0.0% B16..8: 13.9% 0.7% 1.2% direct:
0.8% skip:82.9%
x264 [info]: 8x8 transform intra:84.7% inter:85.4%
x264 [info]: direct mvs spatial:87.5% temporal:12.5%
x264 [info]: ref P 50.6% 24.3% 10.8% 8.7% 5.5%
x264 [info]: ref B 72.1% 17.6% 4.6% 3.7% 2.0%
x264 [info]: kb/s:1520.4

encoded 64152 frames, 9.32 fps, 1521.59 kb/s


Is something wrong with my first pass? I'm kind of new to using the CLI, I basically copied the command lines from MeGui (HQ Slower profile) and added the -aq stuff.

Edit : I'm using r551 of x264 updated through MeGui.

Audionut
5th August 2006, 08:54
It's a result of using fast first pass. Nothing to worry about as your final bitrate is correct.

foxyshadis
5th August 2006, 12:06
x264 [info]: slice I:487 Avg QP:18.78 size: 440240:00:00
x264 [info]: slice P:22408 Avg QP:21.30 size: 17365
x264 [info]: slice B:41257 Avg QP:22.46 size: 2375

If the bolded numbers ever don't match up, then you've found a bug. They're the only ones that are (currently) required to be the same.

Weird cosmetic bug though, wonder where 0:00:00 came from.

Kairk
5th August 2006, 20:40
Thanks for the information :thanks:

akupenguin
6th August 2006, 00:59
Weird cosmetic bug though, wonder where 0:00:00 came from.
It's leftover from "encoded frames: 64152/64152 (100%), 35.59 fps, eta 0:00:00", since that line ends with a \r and not a \n.