mediainfo command not found

In this troubleshooting guide we learn how to fix mediainfo command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

mediainfo: command not found

or when using sudo you get the following error message

sudo: mediainfo: command not found

Solutions to mediainfo: command not found

How To Fix mediainfo: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mediainfo is provided by mediainfo package.

mediainfo is:

MediaInfo is a utility used for retrieving technical information and other metadata about audio or video files.

A non-exhaustive list of the information MediaInfo can retrieve from media files include:

  • General: title, author, director, album, track number, date, duration…
  • Video: codec, aspect, fps, bitrate…
  • Audio: codec, sample rate, channels, language, bitrate…
  • Text: language of subtitle
  • Chapters: number of chapters, list of chapters

MediaInfo supports the following formats:

  • Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2, MPEG-4, DVD (VOB)…
  • Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC…)
  • Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF…
  • Subtitles: SRT, SSA, ASS, SAMI… MediaInfo supplies technical and tag information about a video or audio file

This package includes the command line interface.

To fix this problem, we can install more using the command below.

sudo apt-get -y install mediainfo

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install mediainfo.

sudo apt -y install mediainfo

Or if you have aptitude installed you can use the following command.

sudo aptitude install mediainfo

Summary

In this tutorial we learn how to fix mediainfo command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.