PDA

View Full Version : x264 error during 2nd pass


Richard Berg
3rd January 2006, 20:40
I've had a long 2nd-pass job end in an error twice in a row on a certain video. The AVS script has only one command (AviSource). The x264 settings are identical to many other videos I've encoded, and those videos are all about the same length & content. I can play the source file from start to finish in media players & thru Avisynth without any errors.

Using x264.exe dated 2005-12-19 19:36, as I have for several other successful jobs.

Both attempts left an output MP4 file that was corrupted (incomplete, both ~1/10 of the expected size). I deleted the stats file and reran the 1st pass between attempts.

The MeGUI log isn't terribly informative about what's going wrong:

Next job job1-1 is a video job. encoder commandline:
"c:\program files\x264\x264.exe" --pass 1 --bitrate 2000 --stats "D:\Vid\duke-davidson-avisource.stats" --bframes 3 --b-pyramid --filter -2,-1 --subme 1 --b-rdo --weightb --trellis 1 --analyse none --me dia --threads 4 --sar 8:11 --progress --no-psnr --output NUL "D:\Vid\duke-davidson-avisource.avs"
successfully set up video encoder and callbacks for job job1-1
----------------------------------------------------------------------------------------------------------

Log for job job1-1

avis [info]: 640x304 @ 59.94 fps (270702 frames)
x264 [info]: using SAR=8/11
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [info]: slice I:1175 Avg QP:26.79 size: 24065
x264 [info]: slice P:143019 Avg QP:28.62 size: 6108
x264 [info]: slice B:126508 Avg QP:31.19 size: 1815
x264 [info]: mb I I16..4: 15.7% 0.0% 84.3%
x264 [info]: mb P I16..4: 4.3% 0.0% 0.0% P16..4: 78.2% 0.0% 0.0% 0.0% 0.0% skip:17.6%
x264 [info]: mb B I16..4: 0.7% 0.0% 0.0% B16..8: 26.5% 0.0% 0.0% direct:16.3% skip:56.5%
x264 [info]: final ratefactor: 27.91
x264 [info]: kb/s:2004.1

Actual bitrate after encoding without container overhead: 2011.40

----------------------------------------------------------------------------------------------------------
job job1-1 has been processed. This job is linked to the next job: job1-2
Next job job1-2 is a video job. encoder commandline:
"c:\program files\x264\x264.exe" --pass 2 --bitrate 2000 --stats "D:\Vid\duke-davidson-avisource.stats" --ref 16 --mixed-refs --bframes 3 --b-pyramid --filter -2,-1 --subme 7 --b-rdo --weightb --trellis 1 --analyse all --8x8dct --me umh --threads 4 --sar 8:11 --progress --no-psnr --output "D:\Vid\davidson-vid.mp4" "D:\Vid\duke-davidson-avisource.avs"
successfully set up video encoder and callbacks for job job1-2
----------------------------------------------------------------------------------------------------------

Log for job job1-2

avis [info]: 640x304 @ 59.94 fps (270702 frames)
x264 [info]: using SAR=8/11
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
mp4 [info]: initial delay 524288 (scale 15712927)

----------------------------------------------------------------------------------------------------------


How should I debug this issue?

Sharktooth
3rd January 2006, 20:42
Update x264 with the latest build first there were changes in the mp4 output in that period.

Richard Berg
4th January 2006, 20:03
Using the latest x264 fixed it.

PS: some of your download links for the Lite package are wrong
[edit] fixed now. Before, it was pointing to 392 while the latest was 394a.

bond
4th January 2006, 21:42
richard, this issue could have been avoided if my feature request for avisynth would be followed:
http://forum.doom9.org/showthread.php?t=104681 ;)