Does anyone know of a tool that would allow me to get the properties of any media file, in a parseable way? Something similar to what ImageMagick's "identify" does for images:

$ identify libre.jpg 
libre.jpg JPEG 512x512 512x512+0+0 8-bit DirectClass 102KB 0.010u 0:00.009

A Perl, Ruby or Python library would do as well.

link|improve this question
feedback

1 Answer

up vote 2 down vote accepted

ffprobe from FFmpeg can do this:

ffprobe -show_format foo.avi

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.

link|improve this answer
Thanks, that helps but unfortunately the geometry properties of the stream are not part of the standard, parseable output. I guess I can parse stderr to get those but I hoped there'd be a way to do that in a stricter way. – niXar Sep 22 '11 at 12:22
1  
Ah, -show_streams does just that. Thanks. – niXar Sep 22 '11 at 12:23
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.