streaming cpu problem & user/pwd

About encoding, codec settings, muxers and filter usage
cable007
Blank Cone
Blank Cone
Posts: 24
Joined: 25 Mar 2008 09:43

streaming cpu problem & user/pwd

Postby cable007 » 26 Sep 2008 11:04

Hi all,

I have a cpu problem when I try to stream a live meeting in h264.
my server is a Xeon 2.8 GHz HT

I'm using a vlm conf file :
----------------------------------
new channel1 broadcast enabled
setup channel1 input udp://@:1234
setup channel1 output #duplicate{dst=mosaic-bridge{id=1,height=576,width=720},select=video,dst=bridge-out{id=1},select=audio}

new background broadcast enabled
setup background input fake:
setup background output #transcode{sfilter=mosaic,vcodec=h264,vb=1024,scale=1}:bridge-in{delay=400,id-offset=100}:standard{access=http,mux=ts,url=127.0.0.1:8080,sap,name="mosaic"}
setup background option sout-x264-sps-id=1000
setup background option sout-x264-aud
setup background option sout-x264-verbose
setup background option sout-x264-keyint=150
setup background option sout-x264-min-keyint=5

new channel2 broadcast enabled
setup channel2 input http://127.0.0.1:8080
setup channel2 output #duplicate{dst=std{access=http,mux=ts,dst=172.26.80.14:8081}}
setup channel2 option sout-http-user=test
setup channel2 option sout-http-pwd=test

control background play
control channel1 play
control channel2 play
---------------------------------------

then I launch :
vlc --color -I telnet --vlm-conf vlm.conf --ttl 40 --fake-file fond.jpg --fake-aspect-ratio "4:3" --mosaic-width 720 --mosaic-height 576 --udp-caching 5000 --mosaic-keep-picture --mosaic-rows 1 --mosaic-cols 1 --mosaic-position 1 --mosaic-order 1

---------------------------------------

I use a background image because if stream has a problem I display a warning message instead of VLC stops and user needs to restart again and again the stream and when stream is back, video appears... that works well.
When vcodec is mp4v, video is great, very good fps and cpu is 40%
When vcodec is h264, video is not ok, very low fps and cpu is about 90%
If stream sent from udp is stopped, so I display background image, in h264, cpu is already at 50%

Do you have an idea how to solve that ?

For your info, my server is : Ubuntu 8.04.1, kernel 2.6.24-19-server
VLC version : VLC media player 0.8.6e Janus


Other small thing, I use username/password to access stream, and from client (even with last 0.9.2), VLC shows by default in window authentication username, is it normal ? because in this case username is not secret...


Thanks

Regards

Nicolas

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 18 guests