MEDIAINFO(1)

πŸ’– MEDIAINFO β€” the group chat where your video files finally spill the tea πŸ’–

okay so bestie, listen. MediaInfo is that one friend who knows everything about literally every audio/video file you throw at them. We're talking command line utility to display information about audio/video files β€” and yeah, there's also MediaInfo-Gui, the graphical utility version of the exact same thing, for when you want the info with a little ✨visual flair✨.


🌸 SYNOPSIS 🌸

mediainfo [-Options...] FileName1 [Filename2...]
mediainfo --Inform=FMT FileName
mediainfo-gui [-Options...] FileName1 [Filename2...]
mediainfo-gui --Inform=FMT FileName

so like, you hand it one file or a whole lil squad of files and it just… tells you everything. no gatekeeping. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

MediaInfo supplies technical and tag information about a video or audio file. that's it, that's the whole vibe. she's an open book fr fr. πŸ“–βœ¨

okay but WHAT info can I actually get??

  • 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

like… the whole resume. iconic. πŸ‘‘

and what formats does she support??

  • 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...

no cap, she's booked and busy. 🌈

and what can I DO with it??

  • Read many video and audio file formats
  • View information in different formats (text, sheet, tree, HTML...)
  • Customise these viewing formats
  • Export information as text, CSV, HTML...
  • Graphical Interface, Command Line, or library versions available

pick your fighter, all three of them ate. πŸ“


πŸ’… OPTIONS πŸ’…

MediaInfo supports the following case-insensitive options β€” so type them however your heart desires, she's not gonna be weird about it. 🫢

  • --Help, -h β€” Display help and exit. short and sweet, queen behavior.
  • --Help-Inform β€” Display help for --Inform option
  • --Help-AnOption β€” Display help for "AnOption"
  • --Version β€” Display MediaInfo version and exit
  • --Full, -f β€” Full information Display (all internal tags) β€” the deep dive, the lore drop, every single tag πŸ’€
  • --Output=HTML β€” Full information Display with HTML tags
  • --Output=XML β€” Full information Display with XML tags
  • --Output=OLDXML β€” Full information Display with XML tags using the older MediaInfo schema
  • --Output=JSON β€” Full information Display using JSON
  • --Output=EBUCore β€” Full information Display with EBUCore compliant XML tags
  • --Output=EBUCore_JSON β€” Full information Display with EBUCore 1.8 compliant JSON
  • --Output=PBCore β€” Full information Display with PBCore compliant XML tags
  • --Output=PBCore2 β€” Full information Display with PBCore 2.0 compliant XML tags
  • --Inform=FMT β€” Template defined information display.

FMT is "[xxx;]Text", where xxx can be any one of General, Video, Audio, Text, Chapter, Image, or Menu. Text can be the template text, or a filename in the form of file:///path

See --Info-Parameters for available parameters in the text. Parameters must be surrounded by %.

  • --Info-Parameters β€” Display list of --Inform parameters
  • --Language=raw β€” Display non-translated unique identifiers (internal text)
  • --LogFile=LogFile β€” Save the output in LogFile

✨ EXAMPLES ✨

Display information about a video file

$ mediainfo foo.mkv

just… run it. watch her cook. πŸ”₯

Display aspect ratio

$ mediainfo --Inform="Video;%DisplayAspectRatio%" foo.mkv
$ mediainfo --Inform="Video;file://Video.txt" foo.mkv

Both forms are equivalent if Video.txt contains:

%DisplayAspectRatio%

same energy, different delivery. πŸ’–

Display aspect ration and audio format

(yes bestie, "ration" β€” that's exactly what the original says, I'm just the messenger πŸ™ˆ)
$ mediainfo --Inform="file://Text.txt foo.mkv

If Text.txt contains:

  • "Video;%DisplayAspectRatio%" Then the display aspect ratio is printed out.
  • "Audio;%Format%" Then the audio format is printed out.

so like, the file is basically a lil script of what you want printed. slay. πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

This manual page was written by Chow Loong Jin <hyperair@debian.org> for the Debian system (but may be used by others). Permissions is granted to copy, distribute, and/or modify this document under the terms of the GNU General Public License, Version 3 or any later version published by the Free Software Foundation.

On Debian systems, the full text of the GNU General Public License, Version 3 can be found in /usr/share/common-licenses/GPL-3.


and that's the whole thing bestie 🫢 this page is from MediaInfo 26.05, dated 2026-05-18, and it's filed under MEDIAINFO(1) β€” so go forth, read your files, and be the main character of your own media library. mwah. πŸ’–βœ¨πŸ§š

πŸ“¦ where this page comes from