2007年11月26日 星期一

CentOS +vlc

Install vlc on a CentOS 4.5 box and a windows client.

It is possible to send voice data into a fifo (cat some-ogg-data > a-ogg-fifo), then config
vlc to stream a-ogg-fifo to somewhere.


If vlc stream the fifo file before another process (says, cat some-ogg-data > a-ogg-fifo, here) writes to the fifo, the streaming process will fail. (i.e. a short delay before vlc to make sure there is something in the fifo. or maybe there is a method to probe this, then fire up vlc)

btw, if 'cat' process doesn't generate the fifo quick enough, the vlc may stop. how to start the vlc again is another issue.

The sample vlc command looks like

vlc -I console \
--no-interact \
--extraintf telnet \
--no-show-intf \
-vvv \
-L \
/tmp/abc.ogg \
--no-video \
--sout "#transcode{acodec=vorb,ab=128}:standard{access=http,mux=ogg,dst=192.168.0.103:8080}"

NOTE:
If you like to run vlc without X-window (in Linux environment), it is necessary to switch interface of vlc into skinnable.

沒有留言: