We're using the file utility on linux to determine the file MIME type (and this information we subsequently use), which seems to be failing on some m4v files, but not on others.
Running Shows
/usr/bin/file sample_iPod.m4v sample_iPod.m4v: ISO Media
/usr/bin/file -i -b sample_iPod.m4v (NOTHING)
This particular file was from Apple's site: http://support.apple.com/kb/HT1425
The ones for which it does work shows:
/usr/bin/file agsample.m4v agsample.m4v: ISO Media, MPEG v4 system, version 2
/usr/bin/file -i -b agsample.m4v video/mp4
It appears that the ones where it works are actually MPEG 4 encoded files renamed as m4v, but how can I determine file type otherwise if not through /usr/bin/file?