Using ffprobe to check if file is audio or video only

ffmpeg, ffprobe, video

Solution

You can output stream information in JSON or XML:

`ffprobe -show_streams -print_format json input.mov`

You'll get an array of streams with a `codec_type` attribute with values like `audio`, `video` etc.

Problem

Is there an ffprobe command I can run to see if an mov file that I have is audio-only or contains video as well? I have various mov files, some of which are audio dubs and some of which are full videos.

Original source