Bash trick of the day
Kristian Hermansen
kristian.hermansen at gmail.com
Sun Mar 25 23:11:01 EDT 2007
On 3/25/07, Robert La Ferla <robertlaferla at comcast.net> wrote:
> Voila - You can watch a tv stream remotely.
Ahh, but can you can do the same with /dev/dsp? And more importantly,
can you mux the streams together in real time? I would be interested
to know how vlc/mplayer/xine are able to mux separate audio/video
streams. Ideas?
Also, I would rather use a pipe, as I don't see how mplayer would not
exit immediately on not having input there. Plus, a pipe would buffer
everything for you :-)
Streaming Client:
$ mkfifo /tmp/video
$ nc -n -l -p 9999 > /tmp/video
Streaming Server:
$ cat /dev/video | nc -n 1.2.3.4 9999
Streaming Client:
$ vlc /tmp/video
--
Kristian Hermansen
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list