libx264 fails to produce valid output with mp4 container
|Reported by:||Steve||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
I managed to find a video that causes ffmpeg to crash and produce invalid output, but only when producing an mp4 container -- the same transcode done with an mkv container works fine.
I first reproduced it with version 22.214.171.124 (i.e from Fedora Core 23 repos), but it also happens with the latest version of ffmpeg (i.e. the 2-Oct-2016 build from https://johnvansickle.com/ffmpeg/).
In the 126.96.36.199 version, the error message is "Incomplete MB-tree stats file". In the latest version, the error message is "2nd pass has more frames than 1st pass".
Enclosed is the script that I used to transcode the video, and a short video that demonstrates the problem. The command line to run the script is:
./mv-met.sh "216 - Dancing above turbines.mpg" 1000 2000 "216 - Dancing above turbines.mp4"
Substitute mkv for mp4 in the target filename and it'll work.