Hello!
I'm use vlc to retranslate tv stream from udp multicast to http.
My configs:
/usr/local/vlc-1.0.3/bin/cvlc --vlm-conf=/root/tv/vlc.vlm
vlc.vlm:
new channel6650 broadcast enabled
setup channel6650 input 'udp://@xxx'
setup channel6650 output #std{access=http,mux=ts,dst=yyy:6650}
control channel6650 play
new channel6651 broadcast enabled
setup channel6651 input 'udp://@xxx1'
setup channel6651 output #std{access=http,mux=ts,dst=yyy:6651}
control channel6651 play
new channel6652 broadcast enabled
setup channel6652 input 'udp://@xxx2'
setup channel6652 output #std{access=http,mux=ts,dst=yyy:6652}
control channel6652 play
I'm see one problem.
VLC work stable during ~ 12-24 hours and then begin to use much memory(~1-2GB) and CPU (70%).
Then I'm done that test: use 3 VLC process for every channel.
/usr/local/vlc-1.0.3-mopt/bin/cvlc --daemon 'udp://@xxx' --sout='#std{access=http,mux=ts,dst=yyy:6650}'
/usr/local/vlc-1.0.3-mopt/bin/cvlc --daemon 'udp://@xxx1' --sout='#std{access=http,mux=ts,dst=yyy:6651}'
/usr/local/vlc-1.0.3-mopt/bin/cvlc --daemon 'udp://@xxx2' --sout='#std{access=http,mux=ts,dst=yyy:6652}'
2 VLC process work stable, but one of them has so promlem.
After ~12 hours of work:
top :
29723 tv 20 0 3539m 1.7g 548 S 3 89.1 47:44.08 vlc
29433 tv 20 0 638m 7140 568 S 2 0.4 49:43.27 vlc
29350 tv 20 0 638m 7268 568 S 2 0.4 48:12.50 vlc
TV channel on this process stop work, when process begin to use much memory and CPU.
Every of 3 process has same problem after some hours.
Restarting of process don't solve my problem (TV streaming watch many clients, and restarting vlc force they to recconect).
I'm use: Intel(R) Pentium(R) D CPU 2.80GHz, 3GB RAM.
uname -a
Linux iptv3 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:45:36 UTC 2009 x86_64 GNU/Linux
VLC-1.0.3
./configure --prefix=/usr/local/vlc-1.0.3 --enable-dvb --disable-mad --disable-avcodec --disable-avformat --disable-swscale \
--disable-postproc --disable-a52 --disable-glx --disable-qt4 --disable-skins2 --enable-optimize-memory
I'm have 6 servers. Problem exists on all of them.
I'm try so test:
On input vlc put http stream (not udp).
/usr/local/vlc-1.0.3/bin/cvlc --vlm-conf=/root/tv/vlc.vlm
vlc.vlm:
new channel6650 broadcast enabled
setup channel6650 input 'http://xxx:6650'
setup channel6650 output #std{access=http,mux=ts,dst=yyy:6650}
control channel6650 play
new channel6651 broadcast enabled
setup channel6651 input 'http://xxx:6651'
setup channel6651 output #std{access=http,mux=ts,dst=yyy:6651}
control channel6651 play
new channel6652 broadcast enabled
setup channel6652 input 'http://@xxx:6652'
setup channel6652 output #std{access=http,mux=ts,dst=yyy:6652}
control channel6652 play
So, VLC work stable during some weeks! And don't need to restart.
How I may to solve problem with udp streaming on input?