[Libav-user] Identifying a MP4 file using libav libraries

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Apr 12 20:41:52 CEST 2016


Sreenath BH <bhsreenath at ...> writes:

> We will use major_brand metadata to check if it is a MP4 file.
> For now we will assume a file is MP4 only if major_brand has 
> a value of mp42.

Note that the mp4 files produced by FFmpeg have major_brand 
"isom" and older files often have "mp41". Generally, it may 
(or may not) make more sense to test the compatible_brand.

Carl Eugen



More information about the Libav-user mailing list