G:\Download\ffmpeg\ffmpeg-git-a254452-win32-static\bin>ffmpeg -i test.mp4
ffmpeg version N-32726-ga254452, Copyright (c) 2000-2011 the FFmpeg developers
built on Sep 19 2011 19:49:13 with gcc 4.6.1
configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena
ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --en
able-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 16. 1 / 51. 16. 1
libavcodec 53. 16. 0 / 53. 16. 0
libavformat 53. 12. 0 / 53. 12. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 2 / 2. 43. 2
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf53.12.0
Duration: 00:00:10.00, start: 0.000000, bitrate: 2540 kb/s
Stream #0.0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p, 1280x720
[SAR 1:1 DAR 16:9], 2539 kb/s, 10 fps, 10 tbr, 10 tbn, 20 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
At least one output file must be specified
前面是你用的ffmpeg的基本信息:
包括版本,编译时间,用的编译器,配置选项。
重点看绿色部分,这也是你会关心的东西:
duration告诉视频时长,这里是10秒, bitrate是码率。
video: 视频编码格式。 帧率是10fps。
在Ubuntu下安装FFmpeg