[FIXED] Re: [MPlayer-cygwin] MPlayer stdin under Win32/slave mode

Bertrand Florat bertrand at florat.net
Thu Sep 28 23:41:41 CEST 2006


FYI, I finally fixed my problem (make a java frontend for mplayer under
windows). To sum up:
- slave mode doesn't seem to work from the console (using cmd console or
msys) but it isn't a problem for me.
- slave mode works perfectly when mplayer process is lauched from Java
but you have to send commands using out.print("mute\n"), not
println("mute") .
For an example, have a look at
http://jajuk.cvs.sourceforge.net/jajuk/jajuk/src/org/jajuk/players/MPlayerPlayerImpl.java?view=log

Cheers,

Bertrand

Bertrand Florat wrote:

>Hi folks,
>
>Does anyone managed use slave mode under win32 (well, I know it has
>already been discussed before but I didn't find any decicive response) ?
>I wrote a frontend that works perfectly under linux but not under
>Windows (the stdin issue).
>My problem: since stdout stream is readable, stdin can't be written: all
>types commands from console or from msys/sh.exe (sh -c mplayer -slave
>-quiet "whatever.mp3") are buffurized and displayed when closing mplayer
>.  Any idea ?
>
>Thanks, Bertrand
>
>PS: Note however that there is an ugly workaround to get mplayer
>callback information. I figured out reading sources of MPUI (a delphi
>mplayer frontend) that you can make a mplayer -slave whatever.mp3 > file
>(no -quiet option) and read this output in a loop from a separated
>thread for example...
>
>  
>


-- 
Bertrand FLORAT         
bertrand at florat.net
http://www.florat.net
PGP keyserver:  pgp.mit.edu  




More information about the MPlayer-cygwin mailing list