There're tons of these for the various platforms.
Since AtomicParsley and MP4Box are both open-source and available for most platforms, you can easily automatize the detection and fix of the moov placement problem. Or you can just run MP4Box without even bothering where the moov atom is.
To find all MP4 files with bad moov atom placement, you can use a shell script like this:
find '/path/to/videos' -iname '*.mp4' -exec sh -c 'AtomicParsley "{}" -T | awk "BEGIN {mdat=0; moov=0} /^Atom mdat / {if (mdat == 0) mdat = NR} /^Atom moov / {if (moov == 0) moov = NR} END {exit (moov > mdat ? 0 : 1)}"' \; -print
I've attached a shell script that finds and fixes MP4 files in a directory tree. You can run it periodically via crontab. Comes handy if you've incoming MP4 files (eg. via FTP upload) that you've to stream.
Recent comments
2 years 21 weeks ago
3 years 42 weeks ago
3 years 42 weeks ago
3 years 44 weeks ago
3 years 45 weeks ago
4 years 15 hours ago
4 years 21 hours ago
4 years 2 days ago
4 years 3 days ago
4 years 5 days ago