How to determine which codec a video is encoded in

Florian Diesch diesch at spamfence.net
Mon Jul 5 19:18:48 UTC 2010


Dotan Cohen <dotancohen at gmail.com> writes:

> I have some video files that I need to know what codec is used to
> decode them. I know that the Windows software G-spot will help, is
> there anything for Linux / Ubuntu? I have googled and found nothing,
> and the ffmpeg manpage does not give any information on the topic. I
> even tried "strings" on the files but that yielded nothing useful!

I'm using this shell function:

--8<---------------cut here---------------start------------->8---
vinfo(){
 mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null | grep "^ID"
}
--8<---------------cut here---------------end--------------->8---


   Florian
-- 
<http://www.florian-diesch.de/linux/asciipinguine.html>




More information about the ubuntu-users mailing list