How do you find video info (duration, width, height) for avi, mov, mpg, etc.?
I know with quicktimes, you can use the open quicktime libs & oqtinfo to get things like length of the movie (minutes, seconds length, not pixels), width, height, frame rate, etc.
Can you find this info for non-quicktimes? Can mplayer do it?
I plan on using the returned info in a script, so it needs to spit stuff out to a file or stdout without human interaction & without opening a viewer.
If it helps, what I'm really trying to do is grab a single frame from the middle of a video. I can do this with mplayer if I know the video length, but I don't know how to find the length of the video without simply timing it. Getting back the dimensions of the video would help too (though I can do that as a post process if necessary so it's not that important).