Detect a Video’s File Format (codec)

2011.11.12 | Video | , ,

Sketch Note #lwsdeep HTML5 Audio & VideoYou’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.