[FFmpeg-user] how to detect a 264 or 265 file

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Jul 6 17:05:22 CEST 2015

Carlo Politi <politi.carlo-at-yahoo.it <at> ffmpeg.org> writes:

> Good evening, my question could be silly: 
> i'm trying to write a software to detect 
> its content type

If your question is FFmpeg-related:
Run "ffmpeg -i file" to detect if a file is 
h264 or h265 or call the relevant libavformat 
functions from your software.

If your question is not FFmpeg-related you 
should probably ask elsewhere (or read the 
FFmpeg sources).

Both formats do not have headers.

Carl Eugen

More information about the ffmpeg-user mailing list