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.