Detect a Video’s File Format (codec)

You’ve been handed a mystery video file and you need to know what codec was used to create it.

Solution:

Using ffmpeg, run the following command:

ffmpeg -i path/to/your/file.avi

In the output text you’ll find your codec information under the metadata heading.

Leave a Reply

Your email address will not be published. Required fields are marked *