ffmpeg查看视频参数信息方法

ffmpeg有linux版和windows版,我测试的是centos 6.5 64位版本,用ffmpeg查看视频详细信息是非常简单的一件事情,一句命令搞定;“ffmpeg -i 视频文件地址”
在centos 6.5系统中我用CD切换到了视频当前所在目录,所以查看命令是

ffmpeg -i test.mkv

输出结果:

root@5yun:/home/download# ffmpeg -i   test.mkv
ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
  configuration:
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    COMPATIBLE_BRANDS: iso6avc1mp41
    MAJOR_BRAND     : dash
    MINOR_VERSION   : 0
    ENCODER         : Lavf57.25.100
  Duration: 00:26:54.36, start: 0.007000, bitrate: 5622 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1080x1920 [SAR 1:1 DAR 9:16], 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
    Metadata:
      HANDLER_NAME    : VideoHandler
      DURATION        : 00:26:54.312000000
    Stream #0:1(eng): Audio: opus, 48000 Hz, mono, fltp (default)
    Metadata:
      DURATION        : 00:26:54.361000000
At least one output file must be specified
点赞