Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-17-2007, 08:53 PM   #1
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
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).
Old 04-17-2007, 09:21 PM   #2
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Found the answer here
Old 04-17-2007, 09:31 PM   #3
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Rep: Reputation: 30
Thanks BrianK, I've been looking for this for a while.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion of mpg,avi,mov,wmv formats to flv manu82 Linux - Software 6 07-30-2008 04:31 AM
Which Video player can I .avi.mpg.....? schneemann SUSE / openSUSE 11 01-08-2006 12:56 PM
problems with viewing video (mpg, avi...) blackphiber Linux - Laptop and Netbook 11 12-12-2004 12:09 PM
How do you create a movie file (avi, mov, mpg, etc)? BrianK Programming 3 02-10-2004 09:34 AM
Trouble getting .avi .mov .mov files to run redman13 Linux - Newbie 4 11-09-2003 01:46 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration