[MPlayer-users] Running in a slave mode and reading from a fifo
Joey Parrish
joey.parrish at gmail.com
Tue Apr 24 17:08:49 CEST 2007
On 4/23/07, Marcos Iuato <iuato at samurai.com.br> wrote:
> Joey Parrish escreveu:
> > On 4/23/07, Marcos Iuato <iuato at samurai.com.br> wrote:
> >> Is it possible having mplayer reading from a pipe and to be controlled
> >> in a slave mode?
> > Yes. Slave mode should use stdin, and the video data must come from a
> > named pipe (FIFO). If you're using linux, man mkfifo. (IIRC)
> From mplayer documentation:
> "MPlayer can read from stdin (not named pipes). This can for example be
> used to play from FTP:
>
> wget ftp://micorsops.com/something.avi -O - | mplayer -"
This is not what I'm saying. I'm saying:
mkfifo /path/to/fifo
wget ftp://micorsops.com/something.avi -O /path/to/fifo &
mplayer -slave /path/to/fifo
The fifo is written to by wget, read from by mplayer, all as if it
were a file. See man mkfifo (as I already mentioned).
--Joey
More information about the MPlayer-users
mailing list