PDA

View Full Version : mplayer -slave + c++ help



t3hi3x
October 3rd, 2007, 04:21 AM
i'm currently working on a c++ project that i want to use mplayer with. i have seen where you can use mplayer -slave to use it as a backend for other applications. basically i want to play a stream and once it gets to a certain point in the stream then play another one. the c++ stuff wont bee to hard on this as it is just comparing numbers.

i was wondering if anyone has ever used mplayer -slave in their programs before. playing it is no big deal, but i need to read how far a long it is on the song. the documentation says it reads from stdin, but that seems complicated, and if this is the case how to input commands into the stdin?

Thanks.

Here is the doc on the mplayer slave http://www.mplayerhq.hu/DOCS/tech/slave.txt

t3hi3x
October 5th, 2007, 04:43 AM
bumpy-ity bump