LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-17-2011, 04:42 AM   #1
dashko
LQ Newbie
 
Registered: Jun 2010
Location: Slovakia, Bratislava
Distribution: Gentoo
Posts: 9

Rep: Reputation: 1
mplayer length of audio/video


Hi,

i was wondering if there is a way to find out length of audio/video using mplayer and print it to output.

Something like this
# mplayer --print-length-to-output video.avi
154.4

What do you think?
I was not able to find out how to do that using mplayer. Thanks for answers.

Last edited by dashko; 11-17-2011 at 04:46 AM. Reason: specifin
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-17-2011, 04:47 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
as per the manpage, use the -identify option.
 
2 members found this post helpful.
Old 11-17-2011, 05:28 AM   #3
dashko
LQ Newbie
 
Registered: Jun 2010
Location: Slovakia, Bratislava
Distribution: Gentoo
Posts: 9

Original Poster
Rep: Reputation: 1
Thumbs up

Quote:
Originally Posted by acid_kewpie View Post
as per the manpage, use the -identify option.
Thanks a lot, it works!

mplayer -vo null -ao null -frames 0 -identify test.avi | grep ID_LENGTH
 
  


Reply

Tags
length, mplayer


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
audio and video not syncing with mplayer. dr_zayus69 Linux - Software 1 01-12-2006 04:22 PM
MPlayer Audio/Video out of sync koyi Slackware 3 09-24-2005 06:23 PM
No Video/Audio using MPlayer vaneeri Red Hat 7 10-15-2004 12:35 AM
mplayer streams audio but not video Chuck23 Fedora 2 09-20-2004 12:53 PM
Getting MPlayer to display/indicate overall video length fr0zen Linux - Software 7 05-11-2004 12:05 PM


All times are GMT -5. The time now is 04:42 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