I'm writing some shell scripts that automatically convert some video files. Except I don't want to run the conversion on files that are already h264 encoded. Is there a way I can tell via a terminal command whether a video has a certain codec?
Tell me more
×
Ask Different is a question and answer site for
power users of Apple hardware and software. It's 100% free, no registration required.
|
With ffmpeg : ffmpeg -i video_file see : http://videotranscoding.wikispaces.com/GetVideoMetadata |
|||
|
|
|
This won't work for To list a file's codecs:
To find files that are movies, but don't have the H.264 codec:
|
|||||||
|