[MPlayer-dev-eng] mplayer slave mode question

Kevron Rees kev000 at email.com
Tue Aug 28 00:45:17 CEST 2007


 >>From pygme's homepage(http://pygme.sourceforge.net):
>>
>> "There's no way one can get information from audio and video files
>> without duplicating the work already being done in mplayer."
>>
>>Is this true? I've run into the same issue in my c++ program using
>> fork() and pipe().
>>
>> and suggestions on how we can fix this issue?
>
>-identify?

>From my experience, I can successfully pipe commands to mplayer through
mplayer's stdin.  I can also create a pipe from mplayer's stdout but
whenever I retrieve info from mplayer via that fd, I get blocking and my
program locks up.  I haven't found any code that has two way
communication with mplayer.  Most frontends just seem to issue system()
commands or a single popen("mplayer", "w") pipe.

To work around this problem, I want to be able to pipe mplayer's stdout
to a file in which I can just purge anytime I want new data.  However, I
don't know how I can do this.  Mplayer doesn't have a -stdout=foo.txt
does it?

Kev



-- 
We've Got Your Name at http://www.mail.com !
Get a FREE E-mail Account Today - Choose From 100+ Domains




More information about the MPlayer-dev-eng mailing list