Web Projects Consulting

Get Codec and/or Stream Information of Media Files in Linux

Normally, it’s a pain finding stream, codec or bitrate information for media files.

Some information can be discovered using

file [some_file].avi
ffmpeg -i [some_file].avi

However, there is a better way of doing it using mediainfo[-gui] package available from this site.

mkdir -p ~/software/mediainfo
cd ~/software/mediainfo
echo "//mediainfo.sourceforge.net/en/Download/Fedora#11.x86_64" > links.txt
wget //downloads.sourceforge.net/mediainfo/mediainfo-gui-0.7.19-1.x86_64.Fedora_11.rpm
wget //downloads.sourceforge.net/mediainfo/mediainfo-0.7.19-1.x86_64.Fedora_11.rpm
wget //downloads.sourceforge.net/mediainfo/libmediainfo0-0.7.19-1.x86_64.Fedora_11.rpm
wget //downloads.sourceforge.net/mediainfo/libmediainfo0-devel-0.7.19-1.x86_64.Fedora_11.rpm
wget //downloads.sourceforge.net/zenlib/libzen0-0.4.3-1.x86_64.Fedora_11.rpm
wget //downloads.sourceforge.net/zenlib/libzen0-devel-0.4.3-1.x86_64.Fedora_11.rpm
wget //downloads.sourceforge.net/zenlib/libzen0-devel-0.4.3-1.x86_64.Fedora_11.rpm
wget //downloads.sourceforge.net/zenlib/libzen0-devel-0.4.3-1.x86_64.Fedora_11.rpm
wget //downloads.sourceforge.net/zenlib/libzen0-devel-0.4.3-1.x86_64.Fedora_11.rpm
sudo yum localinstall --nogpgcheck *.rpm

Now, you are able to see all information in the command line mode with:

mediainfo [some_file].avi

Or launching

mediainfo-gui
mediainfo GUI on Linux

mediainfo GUI on Linux

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.