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.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd January 2006, 20:40   #1  |  Link
Richard Berg
developer wannabe
 
Richard Berg's Avatar
 
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 1,211
x264 error during 2nd pass

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:
Quote:
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?
Richard Berg is offline   Reply With Quote
Old 3rd January 2006, 20:42   #2  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
Update x264 with the latest build first there were changes in the mp4 output in that period.
Sharktooth is offline   Reply With Quote
Old 4th January 2006, 20:03   #3  |  Link
Richard Berg
developer wannabe
 
Richard Berg's Avatar
 
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 1,211
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.

Last edited by Richard Berg; 4th January 2006 at 20:43.
Richard Berg is offline   Reply With Quote
Old 4th January 2006, 21:42   #4  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
richard, this issue could have been avoided if my feature request for avisynth would be followed:
http://forum.doom9.org/showthread.php?t=104681
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 04:59.


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