Linux command
mediainfo 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show media info
mediainfo [video.mp4]
Full information
mediainfo -f [video.mp4]
Output as JSON
mediainfo --Output=JSON [video.mp4]
Output as XML
mediainfo --Output=XML [video.mp4]
Show specific parameter
mediainfo --Inform="Video;%Width%x%Height%" [video.mp4]
Compare files
mediainfo [file1.mp4] [file2.mp4]
说明
mediainfo displays technical information about media files. It shows codec, bitrate, resolution, and metadata. The tool supports video, audio, and image formats. Essential for media file analysis.
参数
- -f
- Full information.
- --Output _FORMAT_
- Output format (XML, JSON, CSV).
- --Inform _TEMPLATE_
- Custom output template.
- --Version
- Show version.
- --help
- Display help information.
FAQ
What is the mediainfo command used for?
mediainfo displays technical information about media files. It shows codec, bitrate, resolution, and metadata. The tool supports video, audio, and image formats. Essential for media file analysis.
How do I run a basic mediainfo example?
Run `mediainfo [video.mp4]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f do in mediainfo?
Full information.