Andy Armstrong | 8 Feb 14:24
Gravatar

Get metadata then exit?

If I do

   $ ffmpeg -i somefile

it displays the duration and bitrate then exits with a non-zero status.

I'd like to use ffmpeg in this way to find the duration of a number of 
video files. I can scrape ffmpeg's output to get the information I need 
but I wonder if there's a 'proper' invocation which would make ffmpeg 
output the information and exit with 0 status?

--

-- 
Andy Armstrong, Hexten

Gmane