mediainfo
1.1、mediainfo简介

mediainfo是用来获取图像音频视频相关信息的工具。

mediainfo官网:https://mediaarea.net

1.2、通过包管理器安装mediainfo
操作系统包管理器安装命令
Windowsscoopscoop install mediainfo
WindowsChocolateychoco install -y mediainfo-cli
macOSHomeBrewbrew install media-info
GNU/LinuxLinuxBrewbrew install media-info
aptsudo apt-get install -y mediainfo
CentOSyumsudo yum install -y mediainfo
dnfsudo dnf install -y mediainfo
openSUSEzyppersudo zypper install -y mediainfo
Alpine Linuxapksudo apk add mediainfo

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm mediainfo
Gentoo LinuxPortagesudo emerge mediainfo
1.3、mediainfo命令

mediainfo命令的使用格式如下:

mediainfo [options] <filePath | URL>

示例:

mediainfo 小苹果高清完整版本.rmvb
mediainfo https://s3.amazonaws.com/x265.org/video/Tears_400_x265.mp4

运行效果: