[MPlayer-dev-eng] Example of how to use the -slave option in mplayer

pl p_l at tfz.net
Fri Dec 28 17:53:17 CET 2001


On Fri, Dec 28, 2001 at 03:07:37PM +0100, Alex Beregszaszi wrote:
> On Thu, Dec 27, 2001 at 07:08:27PM -0500, Kevin Fowlks wrote:

> > Does anyone have an example of how to send data to the stdin of mplayer when
> > you
> > use the -slave option. I'm new to programming in the linux enviroment. If
> > some can give an
> > example in C or perl that would be great.
> 
> It's in the docs (manpage).

In C: f=popen(...); fprintf(f, ...);
In Perl: open(F, "| mplayer -slave ..."); print F "...";

+ commands in the manpage ("stop\n" ...)

-- 
Best regards,
  pl



More information about the MPlayer-dev-eng mailing list