Regular streaming consume too much CPU
Posted: 08 Feb 2017 15:29
Hi all,
I am trying to run a video from http site: http://nana10live-lh.akamaihd.net/i/HD_ ... &rebase=on
It is working, but the CPU that the process takes is ~20%
Running a local file does not consume CPU at all (I guess it is the GPU that is doing the work for VLC decoding).
For me, it looks like a lot of CPU cycles go for the download of the stream). To verify that, I used the following config file:
new bg broadcast enabled
setup bg option image-duration=-1
setup bg input "http://nana10live-lh.akamaihd.net/i/HD_ ... &rebase=on"
setup bg output #transcode{sfilter=mosaic,vcodec=mp4v,vb=1024,scale=0.5}:bridge-in{id-offset=10000}:standard{access=http,mux=ogg,dst=127.0.0.1:8080}
control bg play
and opened the stream via http://127.0.0.1:8080
The first process now consumes ~20% CPU, but the second one takes only 0.7% CPU.
Originally, I was trying to use the mosaic option, but since it is consuming too much CPU (~ 50% for 4 videos), I start to debug it and found out that the problem occurs also for a direct vlc streaming from the video site.
Please assist,
Thx,
Yohay
I am trying to run a video from http site: http://nana10live-lh.akamaihd.net/i/HD_ ... &rebase=on
It is working, but the CPU that the process takes is ~20%
Running a local file does not consume CPU at all (I guess it is the GPU that is doing the work for VLC decoding).
For me, it looks like a lot of CPU cycles go for the download of the stream). To verify that, I used the following config file:
new bg broadcast enabled
setup bg option image-duration=-1
setup bg input "http://nana10live-lh.akamaihd.net/i/HD_ ... &rebase=on"
setup bg output #transcode{sfilter=mosaic,vcodec=mp4v,vb=1024,scale=0.5}:bridge-in{id-offset=10000}:standard{access=http,mux=ogg,dst=127.0.0.1:8080}
control bg play
and opened the stream via http://127.0.0.1:8080
The first process now consumes ~20% CPU, but the second one takes only 0.7% CPU.
Originally, I was trying to use the mosaic option, but since it is consuming too much CPU (~ 50% for 4 videos), I start to debug it and found out that the problem occurs also for a direct vlc streaming from the video site.
Please assist,
Thx,
Yohay