Sun, 23 Apr 2006

poor's man "streaming" server

for the impatient:

computer1$ pv <yourfilename> | nc -l -p 9812

computer2$ nc computer_1_address 9812 | mplayer -


for the others:

goal: you want to see a video stored on a remote computer, without transferring it locally. also without the fuss of fancy streaming servers and apache mods.
simple solution: fire up the wonderful pv (pipe viewer) in conjunction with netcat on the streaming computer, then, watch the remote video thru mplayer piped with nc.
there's a downside: you can't seek back and forward, but you can pause of course!

Posted at: 19:36 | permalink permalink | add to del.icio.us add to del.icio.us | comments Comments (0)

Name: [required]


E-mail:


Homepage:


Comment: [required]