用 ffprobe 查看视频音频详细信息
转换或压缩前,先看清文件里的编码、码率、分辨率和时长。
运行 `ffprobe -hide_banner video.mp4` 即可列出每个流的详细信息。
01命令
命令
$ ffprobe -hide_banner video.mp402作用说明
重新编码视频之前,得先知道它里面是什么——H.264 还是 HEVC、音频是双声道还是 5.1、码率多少、时长多长。ffprobe 会逐个列出所有流的参数,比“快速查看”或“显示简介”详细得多。加 `-show_format -show_streams` 可以输出结构化信息,方便脚本处理。
03风险
!注意: ffprobe 随 ffmpeg 一起安装,纯只读操作,不会修改文件。
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- ffprobe Documentation依据: Documents ffprobe gathering multimedia stream information and printing it, with -hide_banner suppressing the build banner.
最后验证: 2026-09-18 · 分类: 媒体