View Full Version : x264 producing garbage on 20 minute clip
raymod2
22nd December 2005, 18:52
I described my method for encoding x264 videos in the following thread:
http://forum.doom9.org/showthread.php?t=104478
It worked fine for a small clip (around a minute). When I tried a larger clip (20 minutes) the video was all garbled. It looked like it was showing multiple scenes simultaneously but they looked garbled and played very quickly. After a few seconds I got a popup window from Microsoft Visual C++ Runtime Library:
Assertion Failed!
Program: C:\Program Files\Webteh\BSPlayer\bsplayer.exe
File: libavcodec/h264.c
Line: 2590
Expression: pic->data[0]
Has anyone seen anything like this before?
Sharktooth
22nd December 2005, 19:22
Try another player. Ensure you're using the latest ffdshow for decoding.
raymod2
22nd December 2005, 20:23
Try another player. Ensure you're using the latest ffdshow for decoding.
I tried Media Player Classic and Nero Showtime. Both produced the same results. I already have the latest ffdshow installed.
raymod2
23rd December 2005, 09:10
I tried doing the encode again and got the same results. This time I watched it and I noticed that partway through the 2nd pass it slowed down alot. It started out at 4 or 5 fps and ended up around 1fps. The estimated end time was originally around 10:45pm but it didn't finish until 2:00am.
quake74
23rd December 2005, 09:27
See the other thread for the slowdown problem (it was fixed in the sharktooth 388C build for me). However now I cannot seek in the mp4 files, which is probably related to the dts pts or whatever problem discussed in the other thread.
EDIT: Sorry, now I can seek again. On the same file as before. Using the same applications. Bah!
bond
23rd December 2005, 13:11
are you sure your avs script works as it should and your source and directshow decoder is ok? try again on a progressive source
raymod2
24th December 2005, 17:52
bond: The script is very similar to the one I posted in the thread I linked above. Everything works fine when I do a small test clip (around 1 minute). It encodes OK and plays back correctly. It is only when I try to encode all 20 minutes that I have the problem.
bond
24th December 2005, 18:02
well i have the feeling your avs script or directshow graph (decoder, splitter aso) are not ok
Sharktooth
24th December 2005, 18:06
update your x264 with the latest version (r388F in the sticky thread).
raymod2
25th December 2005, 22:26
bond: What do you mean you "have a feeling"? The script is there for you to look at. Nobody has pointed out a flaw and it works fine for small clips.
Sharktooth: I installed the latest version (388F) on another computer and ran the encode last night. It's exhibiting the same exact problem.
bond
25th December 2005, 22:36
bond: What do you mean you "have a feeling"? The script is there for you to look at. Nobody has pointed out a flaw and it works fine for small clips.well i cant force you to try different scripts and decoders, simply go on waiting till it fixes itself...
raymod2
25th December 2005, 22:39
Actually there is one difference. This time the video only file plays OK but the muxed file is showing the problem (before both files had the problem).
raymod2
27th December 2005, 05:55
Since the video-only MP4 file works now with the newer x264 build but the muxed MP4 does not... does that mean that MP4Box needs the same fix that went into x264?
bond
27th December 2005, 12:25
try muxing with mp4creator
and whats the framerate of the source .avi and your .avs script?
and whats your mp4 splitter? try another one and try another decoder than ffdshow
post screenshots on how that "garbled video" looks like
Sharktooth
27th December 2005, 15:17
ok. try updating mp4box as well. get it form the latest yamb+installer version or from celtic druid.
raymod2
27th December 2005, 23:14
bond: The source is 29.97 fps (raw DV captured through my Firewire port using Adobe Premiere). As far as decoding goes, I thought ffdshow was the only choice for a free Directshow decoder that handles x264.
Sharktooth: The thread to which I linked in the first post details each tool I am using, the version, and where I got it. I am using v0.4.0 of MP4Box (compiled by Celtic Druid) and I thought it was the newest version.
raymod2
28th December 2005, 20:52
Sharktooth: I was hoping for an answer to my question. Is there a newer version of MP4Box that has the fixes you put into the latest x264 build and if so, where can I get it?
bond
28th December 2005, 20:53
http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev
raymod2
29th December 2005, 08:14
Thanks, bond. I downloaded the newest version at the link you provided and that fixed the problem.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.