FORUMS: list search recent posts

getting video specs using ffmpeg

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Peter Robertson
getting video specs using ffmpeg
on Jun 8, 2012 at 5:01:53 pm

Is it possible to use ffmpeg to get the specs of an input file (bitrate, size, pixel format, codec etc.)?

How would I do this?

Pedro

Pedro


Return to posts index

stephen dixon
Re: getting video specs using ffmpeg
on Jun 10, 2012 at 12:34:06 pm

ffprobe. It comes with ffmpeg, just like ffplay.

ffprobe /[path/to/your/video.mov

For extra laffs you can redirect the stderr to stdout and pipe it to grep and/or sed if you're using it as part of a larger application, eg:

ffprobe ~/mymovie.mov 2>&1 |grep Duration|sed "s/[A-z :]*\([0-9:.]*\).*/\1/"
00:00:50.66


The sed example above uses OSX's curious sed implementation, you may not need to escape the brackets.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]