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

Sreenath BH bhsreenath at gmail.com
Tue Apr 12 11:28:36 CEST 2016


On 4/10/16, Gonzalo <ggarra13 at gmail.com> wrote:
> You may also want to take a look at the function:
>
> av_probe_input_format3
>
>
>
> El 09/04/16 a las 18:10, Carl Eugen Hoyos escribiĆ³:
>> Sreenath BH <bhsreenath at ...> writes:
>>
>>> I was assuming/hoping that libav would be able to provide
>>> this information since it anyway opens the file and reads
>>> all information available.
>> It does: Check the "major_brand" and "compatible_brands"
>> metadata.
>> But allow me to repeat: You first have to know what you
>> are searching for!
>>
>> Carl Eugen
>>
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>
> --
> Gonzalo GarramuƱo
> ggarra13 at gmail.com
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>


Hi,

Thanks for all the help. 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.

-Sreenath


More information about the Libav-user mailing list