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--Informoption--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--Informparameters--Language=rawβ Display non-translated unique identifiers (internal text)--LogFile=LogFileβ Save the output inLogFile
β¨ 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
- fedora 43: mediainfo 26.05-1.fc43 Β· BSD-2-Clause
- fedora 44: mediainfo 26.05-1.fc44 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms