LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do you find video info (duration, width, height) for avi, mov, mpg, etc.? (https://www.linuxquestions.org/questions/linux-software-2/how-do-you-find-video-info-duration-width-height-for-avi-mov-mpg-etc-546916/)

BrianK 04-17-2007 08:53 PM

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).

BrianK 04-17-2007 09:21 PM

Found the answer here

Mithrilhall 04-17-2007 09:31 PM

Thanks BrianK, I've been looking for this for a while.


All times are GMT -5. The time now is 07:35 AM.