[MPlayer-users] mencoder for streaming

Patrick Reynolds reynolds at cs.duke.edu
Tue Feb 25 22:04:15 CET 2003

Is there any way to have mencoder write to a socket or FIFO, rather than
to a file?  I want to capture a TV signal on one computer using mencoder,
stream it by HTTP, and play it on another computer.  Doesn't work.
mencoder seems to depend on ftell and ftello, which don't work on sockets
or FIFOs (for obvious reasons).

My kludge to get this to work is to have mencoder write to a file and have
a separate CGI sleep for one second and then stream (tail -f) that file.
This isn't really proper streaming: I have to have enough disk space free
to buffer the entire stream.

I don't care about being able to seek on the receiving system, so the
index doesn't have to be right.  Seems like this should work without
needing to write the file to disk...


More information about the MPlayer-users mailing list