[MPlayer-users] redirect output

Jason Pepas j.pepas at mail.utexas.edu
Mon Nov 25 05:24:02 CET 2002


i think I have it figured out:

# mplayer and mencoder using named pipes:
mkfifo foo.fifo
mplayer test.avi -dumpstream -dumpfile foo.fifo
cat foo.fifo | mplayer -

# works with mencoder too:
mkfifo foo.fifo
mplayer test.avi -dumpstream -dumpfile foo.fifo
cat foo.fifo | mencoder - -ovc copy -oac copy -o out.avi

# play video over the network:
# on machine bob:
socat TCP4-LISTEN:9999 - | mplayer -
# on machine alice:
socat PIPE:foo.fifo TCP4:bob:9999
mplayer test.avi -dumpstream -dumpfile foo.fifo

# capture tv on one machine and compress on another:
# on machine bob:
socat TCP4-LISTEN:9999 - | mencoder - -ovc lavc -oac mp3lame -o cap.avi
# on machine alice:
socat PIPE:foo.fifo TCP4:bob:9999
mplayer -tv on:driver=v4l:input=0:width=320:height=240:outfmt=i420 -vc rawi420 
-dumpstream -dumpfile foo.fifo 

-jason pepas




More information about the MPlayer-users mailing list