LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-17-2007, 09:53 PM   #1
BrianK
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, 10:21 PM   #2
BrianK
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, 10:31 PM   #3
Mithrilhall
Member
 
Registered: Feb 2002
Location: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

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


Reply


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 05:31 AM
Which Video player can I .avi.mpg.....? schneemann Suse/Novell 11 01-08-2006 01:56 PM
problems with viewing video (mpg, avi...) blackphiber Linux - Laptop and Netbook 11 12-12-2004 01:09 PM
How do you create a movie file (avi, mov, mpg, etc)? BrianK Programming 3 02-10-2004 10:34 AM
Trouble getting .avi .mov .mov files to run redman13 Linux - Newbie 4 11-09-2003 02:46 PM


All times are GMT -5. The time now is 09:01 PM.

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