Monday, August 17, 2009

how to get information about a video file using ffmpeg

For ffmpeg, it's simple and easy. Simply:

ffmpeg -i yourvideo.avi

and it will print out some basic information about your video like such:


FFmpeg version SVN-r18866, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-nonfree --enable-libfaac
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.29. 0 / 52.29. 0
libavformat 52.32. 0 / 52.32. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on May 10 2009 23:45:03, gcc: 4.1.2
Input #0, avi, from 'yourvideo.avi':
Duration: 01:32:47.92, start: 0.000000, bitrate: 1057 kb/s
Stream #0.0: Video: msmpeg4, yuv420p, 352x288, 25 tbr, 25 tbn, 25 tbc
Stream #0.1: Audio: mp3, 44100 Hz, mono, s16, 112 kb/s
At least one output file must be specified

No comments: