Ubuntu – How to find out what codec is being used in a video

codecssoundvideo

How can i see what codec was used in a video (Audio/Video) and extra information about what to use to reproduce the same compression/quality to the video.

Best Answer

One way of doing this is by using VLC. Open the file in question, right click on it in the playlist and you'll see something like this:

Codec info

Stats info

I'm on OS X but the idea is the same.

Another way is to open a terminal, navigate to the directory containing the file and do:

file foo.avi

This doesn't provide a great deal of information but it is a start.