ffprobe工具

ffprobe工具主要用于检测多媒体信息,如时长,视频分辨率、帧率、音频采样率、声道数、每个流信息等等。

  • -print_format: 指定信息输出方式,包括xml,json,ini,csv,flat
//用json方式输出信息
ffprobe -i input.mp4 -print_format json
  • -show_frames: 显示每帧数据信息,如pts,packet_size, duration, frame_type
ffprobe -i input.mp4 -show_frames
  • -show_streams:查看多媒体文件中的流信息
ffprobe -i input.mp4 -show_streams
  • -select_streams: 选择要显示的流,v代表video,a代表audio,s代表subtitle
//只显示视频流
ffprobe -i input.mp4 -select_streams v
//只显示音频流
ffprobe -i input.mp4 -select_streams a
//只显示subtitle
ffprobe -i input.mp4 -select_streams s
  • -show_packets 查询多媒体包信息:
    1.codec_type:多媒体类型,如视频包,音频包
    2.stream_index:流索引
    3.pts:presentation timestamp 显示时间值
    4.pts_time:根据不同格式计算过后的显示时间
    5.dts:解码时间decoding timestamp
    6.dts_time:根据不同格式计算过后的解码时间
    7.duration:多媒体包占用的时间值
    8.duration_time:根据不同格式计算过后的时间
    9.size:多媒体包的大小
    10.pos:多媒体包所在文件的偏移位置
    11.flags:多媒体包标记,关键包与非关键包的标记
ffprobe -i input.mp4 -show_packets
  • -show_format:查询多媒体的封装格式
ffprobe -i input.mp4 -show_format

关于ffprobe更多参数可以参考官方网站上的介绍。

相关推荐

  1. ffprobe工具

    2023-12-22 11:32:05       70 阅读
  2. MacOS快速安装FFmpeg、ffprobe、ffplay

    2023-12-22 11:32:05       38 阅读
  3. ffmpeg的ffprobe.exe查询修改视频信息

    2023-12-22 11:32:05       46 阅读
  4. 工具清单 - IDE工具

    2023-12-22 11:32:05       44 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-22 11:32:05       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-22 11:32:05       101 阅读
  3. 在Django里面运行非项目文件

    2023-12-22 11:32:05       82 阅读
  4. Python语言-面向对象

    2023-12-22 11:32:05       91 阅读

热门阅读

  1. Milvus实战:构建Q&A系统及推荐系统

    2023-12-22 11:32:05       72 阅读
  2. ros2/ros1中的cmakelists.txt文件解释

    2023-12-22 11:32:05       54 阅读
  3. 设计模式_行为型模式_观察者模式

    2023-12-22 11:32:05       62 阅读
  4. 如何看待“前端已死”

    2023-12-22 11:32:05       58 阅读
  5. 谁拿了最多奖学金【NOIP2005提高组】(c++)

    2023-12-22 11:32:05       60 阅读
  6. GO设计模式——18、迭代器模式(行为型)

    2023-12-22 11:32:05       66 阅读