[MPlayer-users] Video outpu device: FIFO or PPM files
Nicolas George
nicolas.george at normalesup.org
Sat Aug 25 18:35:40 CEST 2007
Please, do not top-post. See. http://en.wikipedia.org/wiki/Top-posting for
details.
L'octidi 8 fructidor, an CCXV, Johann Horvat a écrit :
> Thanks, I got this working perfect:
>
> mplayer http://server.com/demo.mp4 -vo tga
>
> but is it possible to "redirect" the outputfiles into a fifo?
Not as such, no. The problem is that -vo tga, or -vo png or -vo pnm produce
individual files, not a single continuous stream. FIFOs are for continuous
streams.
That is why I advised you to use yuv4mpeg or rawvideo: the output is one
stream, and can be sent in a FIFO directly.
If you really want mplayer to produce individual files for you, you can use
the step-FIFOs trick: create a FIFO named 00000001.tga, start mplayer, it
will be blocked opening it. Then create 00000002.tga, and process
00000001.tga. Mplayer will continue and be blocked in 00000002.tga now. When
you are finished with 00000001.tga, you close it, and rename it to
00000003.tga, and go on.
But really, using yuv4mpeg or rawvideo is easier: you can convert it to
known image formats using just shell scripts.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20070825/928d5836/attachment.pgp>
More information about the MPlayer-users
mailing list