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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 5th August 2006, 05:08   #1  |  Link
Kairk
Registered User
 
Join Date: Aug 2003
Posts: 14
x264 Stats on 2-pass encode

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:

Code:
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.

Last edited by Kairk; 5th August 2006 at 05:11.
Kairk is offline   Reply With Quote
Old 5th August 2006, 07:54   #2  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,256
It's a result of using fast first pass. Nothing to worry about as your final bitrate is correct.
Audionut is offline   Reply With Quote
Old 5th August 2006, 11:06   #3  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,549
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.
foxyshadis is offline   Reply With Quote
Old 5th August 2006, 19:40   #4  |  Link
Kairk
Registered User
 
Join Date: Aug 2003
Posts: 14
Thanks for the information
Kairk is offline   Reply With Quote
Old 5th August 2006, 23:59   #5  |  Link
akupenguin
x264 developer
 
akupenguin's Avatar
 
Join Date: Sep 2004
Posts: 2,392
Quote:
Originally Posted by foxyshadis
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.
akupenguin is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:12.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.