LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-04-2006, 02:50 AM   #1
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Rep: Reputation: 30
mplayer getting track info


Is there any way I can query mplayer through the command line, to find out the current track it is playing and the track's status (playing, paused etc.). The documentation mentions using
<CODE>get_property <property></CODE>
but I can find and more information about it.

Can anyone help?

Thanks
 
Old 08-04-2006, 07:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
that option is for slave mode on mplayer, "mplayer -slave something.mp3" once playing you can then type the slave commands in the console and get the data back.
 
Old 08-04-2006, 07:34 AM   #3
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Original Poster
Rep: Reputation: 30
Hi acid_kewpie

I'm piping commands to mplayer in slave mode. I was hoping by leaving out that info someone might mentions a general way of getting track data in mplayer that would give me a clue where to look. At the moment I'm using a variable to keep track of the mplayer status, but it's too open loop. If something goes wrong with mplayer my variable is incorrect. I haven't been able to find any further info on the get_property function. Even slave.txt from the mplayer site just says to use it, but doesn't give any properties you can call.
 
Old 08-04-2006, 08:47 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hmm, yes i can't find anything about it really either. i'd suggest you download the latest tarball, unpack it and just grep the whole source tree for get_property and see what owns up. More than likely you'll have a c switch statement listing all possible options for it.
 
Old 08-04-2006, 09:07 AM   #5
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Original Poster
Rep: Reputation: 30
That can wait till next week
 
Old 08-11-2006, 03:50 AM   #6
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Original Poster
Rep: Reputation: 30
Hmmm, well I can only find a couple of insignificant references to it.
 
  


Reply



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
Mplayer "Can't open VGM info!" Xswitch SUSE / openSUSE 0 05-25-2006 11:24 AM
Possible to store track/title info when converting from MP3 to CD Audio? JBailey742 Linux - Software 3 05-03-2006 06:52 PM
info problem "info: dir: No such file or directory" EAD Linux - Software 0 03-22-2006 02:16 PM
Convert an info file(bash.info.gz) to a single html file Darwish Linux - Software 2 09-24-2005 06:51 AM
help me track down a spammer kidestranged Linux - Security 14 04-29-2004 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:18 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration