Windows 用 ffprobe 查看视频元数据

ffprobe 是 ffmpeg 工具集中常被忽略的一半,能以脚本友好的格式输出编码、分辨率和时长。

Windows视频命令行FFmpeg低风险
运行 ffprobe 配合 -show_entries 和 -of default=noprint_wrappers=1,只输出需要的字段。

01命令

命令
$ ffprobe -v error -show_entries format=duration,bit_rate:stream=codec_name,width,height -of default=noprint_wrappers=1 video.mp4

02作用说明

ffprobe 随每个 ffmpeg 安装包附带,但知名度远低于 ffmpeg,而它回答"这个文件是什么编码/码率"比任何图形界面都准确。-show_entries 可以只挑选需要的字段(format=duration、stream=codec_name),-of json 则输出结构化结果方便脚本处理。加 -v error 可以屏蔽多余日志。

03风险

风险低风险
使用条件ffprobe comes bundled with any ffmpeg install (winget install Gyan.FFmpeg)

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • FFmpeg Documentation
    FFmpeg · vendor-doc · 2026-09-17
    依据: Main FFmpeg documentation; ffprobe is distributed as part of the same toolset.
  • ffprobe Documentation
    FFmpeg · vendor-doc · 2026-09-17
    依据: Documents ffprobe's -show_entries, -show_format and -show_streams options for extracting media metadata in machine-readable output.

最后验证: 2026-09-17 · 分类: 媒体