Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash trick of the day



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.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org