Page 1 of 1

Interface a 3rd party script with SMPlayer and/or mplayer

PostPosted: Thu Sep 09, 2010 10:31 am
by yann.p
Hello,

I have a small DIY LCD screen with some buttons connected to my serial port and I would like to control mplayer and display some information on the LCD.

To send command to mplayer I've added the following argument "-input file=/tmp/fifo" in SMPlayer configuration. Then my script writes commands to the named pipe and it's working fine.

My problem is to get information from mplayer. If I send "get_time_pos" for example, the value is printed on mplayer's stdout. But I cannot read it as mplayer is run through SMPlayer.

Do you have any idea? Maybe I can interface my script directly with SMPlayer but I could not find any documentation on how to do so.

Regards,
Yann.