streaming with mosaic - cpu usage grows

About encoding, codec settings, muxers and filter usage
uli_soehnel
Blank Cone
Blank Cone
Posts: 15
Joined: 27 Oct 2005 17:23
Location: Germany

streaming with mosaic - cpu usage grows

Postby uli_soehnel » 30 May 2006 17:10

Hi all,

we test since a few month with streaming 4 VOB-Files with the mosaic-filter. All is working very fine, but within 1 hour cpu usage grows up to about 100 %. We use the following instructions, sent by a telnet interface:

new c1 broadcast enabled
setup c1 input z:\\001\\01.vob
setup c1 output #duplicate{dst=mosaic-bridge{id=1,height=112,width=150},select=video,select=noaudio}
new c2 broadcast enabled
setup c2 input z:\\002\\01.vob
setup c2 output #duplicate{dst=mosaic-bridge{id=2,height=112,width=150},select=video,select=noaudio}
new c3 broadcast enabled
setup c3 input z:\\003\\01.vob
setup c3 output #duplicate{dst=mosaic-bridge{id=3,height=112,width=150},select=video,select=noaudio}
new c4 broadcast enabled
setup c4 input z:\\004\\01.vob
setup c4 output #duplicate{dst=mosaic-bridge{id=4,height=112,width=150},select=video,select=noaudio}
new c5 broadcast enabled
setup c5 input y:\\001\\01.vob
setup c5 output #duplicate{dst=mosaic-bridge{id=1,height=112,width=150},select=video,select=noaudio}")
new c6 broadcast enabled
setup c6 input y:\\002\\01.vob
setup c6 output #duplicate{dst=mosaic-bridge{id=2,height=112,width=150},select=video,select=noaudio}")
new c7 broadcast enabled
setup c7 input y:\\003\\01.vob
setup c7 output #duplicate{dst=mosaic-bridge{id=3,height=112,width=150},select=video,select=noaudio}")
new c8 broadcast enabled
setup c8 input y:\\004\\01.vob
setup c8 output #duplicate{dst=mosaic-bridge{id=4,height=112,width=150},select=video,select=noaudio}")

new background broadcast enabled
setup background input fake:
setup background output #transcode{sfilter=mosaic,vcodec=mp2v,vb=500,scale=1}:bridge-in{delay=1000,id-offset=100}:standard{access=udp,mux=ts,url=239.255.0.1,sap,name="mosaic"'
control background play
control c1 play
control c2 play
control c3 play
control c4 play

:LOOP
control c1 stop
control c5 play
control c5 seek 15
SLEEP 10 Seconds
control c2 stop
control c6 play
control c6 seek 15
SLEEP 10 Seconds
control c3 stop
control c7 play
control c7 seek 15
SLEEP 10 Seconds
control c4 stop
control c8 play
control c8 seek 15
SLEEP 10 Seconds
control c5 stop
control c1 play
control c1 seek 15
SLEEP 10 Seconds
control c6 stop
control c2 play
control c2 seek 15
SLEEP 10 Seconds
control c7 stop
control c3 play
control c3 seek 15
SLEEP 10 Seconds
control c4 stop
control c8 play
control c8 seek 15
SLEEP 10 Seconds
:GOTO LOOP

Starting VLC with
vlc --color --extraintf telnet --ttl 12 --fake-file
c:\videolanclient\background400.png --fake-aspect-ratio "4:3"
--mosaic-width 400 --mosaic-height 300 --udp-caching 100
--mosaic-keep-picture --mosaic-rows 2 --mosaic-cols 2
--mosaic-position 1 --mosaic-vborder 0 --mosaic-hborder 0
--mosaic-xoffset 0 --mosaic-yoffset 0 --mosaic-order 1,2,3,4
--no-sout-audio

In the first minutes we have only about 10% of cpu usage, then it begins to increase. We use WinXP with a Pantium 3,8 Dual Core and VLC 085 final release.

Is this problem caused in the known #transform problem? And if yes, has anybody an idea how much time it takes until this will be solved?

Is there another possibility to prevent cpu usage increasing?

Thanks in advance for your help

Uli

Albert
Cone that earned his stripes
Cone that earned his stripes
Posts: 102
Joined: 15 Mar 2006 08:17

mosaic transcode

Postby Albert » 31 May 2006 08:45

Hello,
transcoding and mosaic together is a known bug. I have the same problem :-(
Albert

uli_soehnel
Blank Cone
Blank Cone
Posts: 15
Joined: 27 Oct 2005 17:23
Location: Germany

Postby uli_soehnel » 31 May 2006 10:24

Hi Albert,

perhaps you know it? My idea is to use 1 VLC process to transform the 4 VOB files from disc to a TS stream and send them for example to 4 unicast adresses. A second VLC process reads these streams as input and makes the mosaic. Because the inputs then are already TS2 streams there will be no need for transcoding. Is this possible?

Uli

uli_soehnel
Blank Cone
Blank Cone
Posts: 15
Joined: 27 Oct 2005 17:23
Location: Germany

Postby uli_soehnel » 31 May 2006 11:17

Hello again,

now I read a little bit more about the transcode. When I understand right, it is necessary to use #transcode to use the mosaic filter. Means this also, that mosaic cannot be used actually? Or is there another way to do it?

Uli

Albert
Cone that earned his stripes
Cone that earned his stripes
Posts: 102
Joined: 15 Mar 2006 08:17

mosaic transcode

Postby Albert » 02 Jun 2006 12:43

Hello,
you understand right - mosaic is a filter and you have to use transcoding.
I would like to do nearly the same thing - stream mosaic of 6 webcams.
I don´t know any other way - we have to wait for someone who rewrotes mosaic filter.
albert


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: Bing [Bot] and 5 guests