I'm writing a code which creates MP4 files. To check it I've created an MP4 file.
The file is played correctly by VLC and Firefox, but not by ffplay or by Chrome. I guess the file contains error which VLC can cope with but more aggressive MP4 reader cannot.
I've thought about repairing the file and check what are the differences to fix my code. However I tried some programs to repair MP4 files, without success until now.
Can someone reccommend another way to debug the problem, or a good tool to fix MP4 files? The file is a fragmented MP4 contains both the init section (ftyp, moov boxes) and one fragment section (moof and empty sidx).
Here is the video file:
https://www.dropbox.com/s/rojxzvkfxfj31u8/400k00001-3_serialized.mp4?dl=0
EDIT: It doesn't work also in Firefox, when using Media Source Extensions like in this example: http://people.mozilla.org/~jyavenard/tests/mse_mp4/paper.html
(don't forget to enable MSE on Firefox, as explained here: http://www.linuxveda.com/2015/04/02/enable-mse-native-html5-support-firefox-linux/)
EDIT2: In chrome://media-internals, I see the following error with the above example: Append: stream parsing failed. Data size=131072 append_window_start=0 append_window_end=inf
(Change the URL to be the file and change the codec to be 'avc1.4d401f' instead of 'avc1.64000d,mp4a.40.2').