LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   [ubuntu] How to check what mplayer is playing from other console. (https://www.linuxquestions.org/questions/linux-software-2/%5Bubuntu%5D-how-to-check-what-mplayer-is-playing-from-other-console-758615/)

s.maciek 09-30-2009 02:53 AM

[ubuntu] How to check what mplayer is playing from other console.
 
Hello

I have a simple one question.
How can I check what mplayer is playing ( artist, title, album, year, comment, etc. ) from other console.
I want to use it in conky config 'coz I am using mplayer to listen music at most, so its important to me.

Can I do it with d-bus ?? I read those info from amarok by

Code:

qdbus
Hope u will help me.
Thx in advance.
Greets, M.

WildPossum 09-30-2009 03:34 AM

If I understand what your asking for:

Quickest way (at the CLI level) is to do a "pstree" or "ps aux|grep mplayer" to see if the process is working and then even "fuser -vum /dev/dvd" to see if any process has hold of the DVD. - of course after ssh'ing into the other remote machine your interested in. Alternatively, read the doco, sometimes mplayer may use a specific port for status things (a lot like mythtv does) where you maybe able to get the information you seek.


Hope this assists you.
Cheers WP.

s.maciek 09-30-2009 06:18 AM

:)
 
Almost ...

Simply - I start *.mp3 on mplayer at the console number 1 and it keeps playing. Then I open console number 2 and then I check with command(s) what mplayer in console number one is playing. The result I am interested in are tags ( would be the best ) or just file name.

Greets, M.


All times are GMT -5. The time now is 05:38 AM.