[FFmpeg-user] Is this a video file?

Tom Horsley horsley1953 at gmail.com
Fri Feb 28 14:02:15 CET 2014


I thought it would be simple to use ffprobe to ask the
question: "Is this a video file?", but it turns out
to be more complicated than I thought :-).

For instance, a plain text file shows up with
a codec_type of video because, of course, it could
be rendered as video.

So is there a simple way to ask if a file is
already video?

I'm trying to find all the videos in a directory
with all sorts of different codecs, file extensions,
and wot-not that are mixed with lots of other
kinds of files as well.


More information about the ffmpeg-user mailing list