{
    "mode": "man",
    "parameter": "mediainfo",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/mediainfo/1/json",
    "generated": "2026-05-30T06:07:03Z",
    "synopsis": "mediainfo [-Options...] FileName1 [Filename2...]\nmediainfo --Inform=FMT FileName\nmediainfo-gui [-Options...] FileName1 [Filename2...]\nmediainfo-gui --Inform=FMT FileName",
    "sections": {
        "NAME": {
            "content": "MediaInfo - command line utility to display information about audio/video files\n\nMediaInfo-Gui - graphical utility to display information about audio/video files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "mediainfo [-Options...] FileName1 [Filename2...]\nmediainfo --Inform=FMT FileName\nmediainfo-gui [-Options...] FileName1 [Filename2...]\nmediainfo-gui --Inform=FMT FileName\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "MediaInfo supplies technical and tag information about a video or audio file\n\nWhat information can I get from MediaInfo?\n\n- General: title, author, director, album, track number, date, duration...\n- Video: codec, aspect, fps, bitrate...\n- Audio: codec, sample rate, channels, language, bitrate...\n- Text: language of subtitle\n- Chapters: number of chapters, list of chapters\n\nWhat format does MediaInfo support?\n\n- Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2, MPEG-4, DVD (VOB)...\n- Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...\n- Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF...\n- Subtitles: SRT, SSA, ASS, SAMI...\n\nWhat can I do with it?\n\n- Read many video and audio file formats\n- View information in different formats (text, sheet, tree, HTML...)\n- Customise these viewing formats\n- Export information as text, CSV, HTML...\n- Graphical Interface, Command Line, or library versions available\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "MediaInfo supports the following case-insensitive options:\n\n--Help, -h\nDisplay help and exit\n",
            "subsections": [
                {
                    "name": "--Help-Inform",
                    "content": "Display help for --Inform option\n",
                    "long": "--Help-Inform"
                },
                {
                    "name": "--Help-AnOption",
                    "content": "Display help for \"AnOption\"\n",
                    "long": "--Help-AnOption"
                },
                {
                    "name": "--Version",
                    "content": "Display MediaInfo version and exit\n\n--Full, -f\nFull information Display (all internal tags)\n",
                    "long": "--Version"
                },
                {
                    "name": "--Output=HTML",
                    "content": "Full information Display with HTML tags\n",
                    "long": "--Output",
                    "arg": "HTML"
                },
                {
                    "name": "--Output=XML",
                    "content": "Full information Display with XML tags\n",
                    "long": "--Output",
                    "arg": "XML"
                },
                {
                    "name": "--Inform=FMT",
                    "content": "Template defined information display.\n\nFMT is \"[xxx;]Text\", where xxx can be any one of General, Video, Audio, Text, Chapter,\nImage, or Menu. Text can be the template text, or a filename in the form of file:///path\n\nSee --Info-Parameters for available parameters in the text. Parameters must be surrounded\nby \"%\".\n",
                    "long": "--Inform",
                    "arg": "FMT"
                },
                {
                    "name": "--Info-Parameters",
                    "content": "Display list of --Inform parameters\n",
                    "long": "--Info-Parameters"
                },
                {
                    "name": "--Language=raw",
                    "content": "Display non-translated unique identifiers (internal text)\n\n--LogFile=LLooggFFiillee\nSave the output in LogFile\n",
                    "long": "--Language",
                    "arg": "raw"
                }
            ]
        },
        "EXAMPLES": {
            "content": "",
            "subsections": [
                {
                    "name": "Display information about a video file",
                    "content": "$ mediainfo foo.mkv\n"
                },
                {
                    "name": "Display aspect ratio",
                    "content": "$ mediainfo --Inform=\"Video;%DisplayAspectRatio%\" foo.mkv\n$ mediainfo --Inform=\"Video;file://Video.txt\" foo.mkv\n\nBoth forms are equivalent if Video.txt contains:\n%DisplayAspectRatio%\n"
                },
                {
                    "name": "Display aspect ration and audio format",
                    "content": "$ mediainfo --Inform=\"file://Text.txt foo.mkv\n\nIf Text.txt contains:\n\n- \"Video;%DisplayAspectRatio%\"\nThen the display aspect ratio is printed out.\n\n- \"Audio;%Format%\"\nThen the audio format is printed out.\n"
                }
            ]
        },
        "AUTHOR": {
            "content": "This manual page was written by Chow Loong Jin <hyperair@debian.org> for the Debian system\n(but may be used by others). Permissions is granted to copy, distribute, and/or modify this\ndocument under the terms of the GNU General Public License, Version 3 or any later version\npublished by the Free Software Foundation.\n\nOn Debian systems, the full text of the GNU General Public License, Version 3 can be found in\n/usr/share/common-licenses/GPL-3.\n\n\n\nMediaInfo 0.7.52                             2022-04-03                                 MEDIAINFO(1)",
            "subsections": []
        }
    },
    "summary": "MediaInfo - command line utility to display information about audio/video files  MediaInfo-Gui - graphical utility to display information about audio/video files",
    "flags": [
        {
            "flag": "",
            "long": "--Help-Inform",
            "arg": null,
            "description": "Display help for --Inform option"
        },
        {
            "flag": "",
            "long": "--Help-AnOption",
            "arg": null,
            "description": "Display help for \"AnOption\""
        },
        {
            "flag": "",
            "long": "--Version",
            "arg": null,
            "description": "Display MediaInfo version and exit --Full, -f Full information Display (all internal tags)"
        },
        {
            "flag": "",
            "long": "--Output",
            "arg": "HTML",
            "description": "Full information Display with HTML tags"
        },
        {
            "flag": "",
            "long": "--Output",
            "arg": "XML",
            "description": "Full information Display with XML tags"
        },
        {
            "flag": "",
            "long": "--Inform",
            "arg": "FMT",
            "description": "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 \"%\"."
        },
        {
            "flag": "",
            "long": "--Info-Parameters",
            "arg": null,
            "description": "Display list of --Inform parameters"
        },
        {
            "flag": "",
            "long": "--Language",
            "arg": "raw",
            "description": "Display non-translated unique identifiers (internal text) --LogFile=LLooggFFiillee Save the output in LogFile"
        }
    ],
    "examples": [
        "$ mediainfo foo.mkv",
        "$ mediainfo --Inform=\"Video;%DisplayAspectRatio%\" foo.mkv",
        "$ mediainfo --Inform=\"Video;file://Video.txt\" foo.mkv",
        "Both forms are equivalent if Video.txt contains:",
        "%DisplayAspectRatio%",
        "$ 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."
    ],
    "see_also": []
}