Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
FORUMS:listlist (w/ descriptions)archivetagssearchhall of famerecent posts

Re: getting video specs using ffmpeg

COW Forums : FFmpeg

VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread


stephen dixonRe: getting video specs using ffmpeg
by 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.


Posts IndexRead Thread
Reply   Like  
Share on Facebook


Current Message Thread:
  • getting video specs using ffmpeg by Peter Robertson on Jun 8, 2012 at 5:01:53 pm
    • Re: getting video specs using ffmpeg by stephen dixon on Jun 10, 2012 at 12:34:06 pm




LOGIN TO REPLY



FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]