ffmpeg ffprobe查看视频文件编码格式

输入
/opt/ffmpeg/ffprobe file.mp4 -show_streams -select_streams v -print_format json 
输出
{ 
    "streams": [ 
     { 
      "index": 0, 
      "codec_name": "h264", 
      "codec_long_name": "H.264/AVC/MPEG-4 AVC/MPEG-4 part 10", 
      "profile": "Main", 
      "codec_type": "video", 
      "codec_time_base": "1/180000", 
      "codec_tag_string": "avc1", 
      "codec_tag": "0x31637661", 
      "width": 640, 
      "height": 480, 
      "has_b_frames": 2, 
      "sample_aspect_ratio": "1:1", 
      "display_aspect_ratio": "4:3", 
      "pix_fmt": "yuv420p", 
      "level": 40, 
      "color_range": "tv", 
      "color_space": "smpte170m", 
      "color_transfer": "bt709", 
      "color_primaries": "smpte170m", 
      "chroma_location": "left", 
      "refs": 4, 
      "is_avc": "1", 
      "nal_length_size": "4", 
      "r_frame_rate": "30/1", 
      "avg_frame_rate": "90465/3016", 
      "time_base": "1/90000", 
      "start_pts": 0, 
      "start_time": "0.000000", 
      "duration_ts": 36192000, 
      "duration": "402.133333", 
      "bit_rate": "788651", 
      "bits_per_raw_sample": "8", 
      "nb_frames": "12062", 
      "disposition": { 
       "default": 1, 
       "dub": 0, 
       "original": 0, 
       "comment": 0, 
       "lyrics": 0, 
       "karaoke": 0, 
       "forced": 0, 
       "hearing_impaired": 0, 
       "visual_impaired": 0, 
       "clean_effects": 0, 
       "attached_pic": 0 
      }, 
      "tags": { 
       "creation_time": "2036-02-06 06:28:16", 
       "language": "und", 
       "handler_name": "VideoHandler" 
      } 
     } 
    ] 
} 
  • 0
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值