Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques getting video specs using ffmpeg

  • Stephen Dixon

    June 10, 2012 at 12:34 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.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy