Install mediainfo on Raspberry Pi

Install mediainfo on Raspberry Pi

The mediainfo is a command line tool that displays information about video and audio files. Information is grouped into categories such as general, video, audio, text, chapters, and other.

This tutorial explains how to install mediainfo on Raspberry Pi.

Use SSH to connect to Raspberry Pi. Make sure the package lists are up-to-date:

sudo apt update

Then install mediainfo with command:

sudo apt install -y mediainfo

Once installation is complete, we can check version of mediainfo:

mediainfo --version

In order to test we need to download sample media file from the Internet:

wget -O test.mp4 https://raw.githubusercontent.com/mediaelement/mediaelement-files/master/big_buck_bunny.mp4

Now run the mediainfo command to get information about media file. A path to the file is specified as argument.

mediainfo test.mp4

Example of a part of the output:

General
Complete name                            : test.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/avc1)
File size                                : 5.26 MiB
Duration                                 : 1 min 0 s
Overall bit rate                         : 734 kb/s
Encoded date                             : UTC 2010-02-09 01:55:39
Tagged date                              : UTC 2010-02-09 01:55:40

Video
ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
...

Audio
ID                                       : 1
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity 
...

If you want to completely remove mediainfo and related dependencies, execute the following command:

sudo apt purge --autoremove -y mediainfo

Leave a Comment

Cancel reply

Your email address will not be published.