Please, need help for a mosaic ...

About encoding, codec settings, muxers and filter usage
Arafel
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Feb 2007 11:10
Location: Nice
Contact:

Please, need help for a mosaic ...

Postby Arafel » 20 Feb 2007 12:08

Hello the world! ;)

first of all, i'm sorry for my poor english (french guy) but i'll try to be understandable ... ;)

I'm trying to create a mosaic from different video flows. That"s working, but with only 4 pictures, the CPU usage is 100% and pictures are freezing, jerking etc... (DAMNED!) that's pretty strange, because i saw some people putting 20 pictures on a mosaic with VLC and that's workig good...

So ... if someone here can help me to resolve my problem... that should be very nice! :)

by the way, the computer is an old PIV 2.4Ghz with 1Go RAM and the graphic card is an ASUSTeck with an nVidia 4600 chipset and 128Mo of memory and of course with a linux fedora core 6 and VLC 0.8.6.a-1 (livna repo)

here is my mosaic.sh :

Code: Select all

vlc -I telnet -V display --no-skip-frames --no-drop-late-frames --ttl 12 --udp-caching 900 --no-audio --vlm-conf /home/Arafel/vlc/mosaic.conf -vvv
And my vlm (mosaic.conf)

Code: Select all

# Comment the following line if you don't want to reset your VLM configuration del all # Background options new bg broadcast enabled setup bg input "fake:" option "fake-file=/home/Arafell/vlc/black.png" setup bg option sub-filter=mosaic # setup bg output #bridge-in{offset=100}:display setup bg output #transcode{vcodec=mp4v,vb=3072,scale=1,sfilter=mosaic}:bridge-in{offset=100}:duplicate{dst=display,dst=std{access=udp{ttl=12},mux=ts,dst=239.255.10.10:1234,sap,name="bg"}} option sout-all # Mosaic options setup bg option mosaic-alpha=255 setup bg option mosaic-height=288 setup bg option mosaic-width=360 setup bg option mosaic-align=5 setup bg option mosaic-xoffset=10 setup bg option mosaic-yoffset=10 setup bg option mosaic-vborder=5 setup bg option mosaic-hborder=10 setup bg option mosaic-position=1 setup bg option mosaic-rows=2 setup bg option mosaic-cols=2 setup bg option mosaic-order=Chan1,Chan2,Chan3,Chan4 setup bg option mosaic-delay=0 setup bg option mosaic-keep-picture # Input options new Chan1 broadcast enabled setup Chan1 input "udp://@239.255.10.1:10001" option "access-filter=timeshift" setup Chan1 output #duplicate{dst=mosaic-bridge{id=Chan1,width=175,height=141},select=video,dst=bridge-out{id=0},select=audio} new Chan2 broadcast enabled setup Chan2 input "udp://@239.255.10.1:10002" option "access-filter=timeshift" setup Chan2 output #duplicate{dst=mosaic-bridge{id=Chan2,width=175,height=141},select=video,dst=bridge-out{id=1},select=audio} new Chan3 broadcast enabled setup Chan3 input "udp://@239.255.10.1:10003" option "access-filter=timeshift" setup Chan3 output #duplicate{dst=mosaic-bridge{id=Chan3,width=175,height=141},select=video,dst=bridge-out{id=2},select=audio} new Chan4 broadcast enabled setup Chan4 input "udp://@239.255.10.1:10004" option "access-filter=timeshift" setup Chan4 output #duplicate{dst=mosaic-bridge{id=Chan4,width=175,height=141},select=video,dst=bridge-out{id=3},select=audio} # Launch everything control bg play control Chan1 play control Chan2 play control Chan3 play control Chan4 play # end of mosaic batch
I partially used the great http wizzard and the wiki ( http://wiki.videolan.org/Mosaic )

what else ... ?

If you have any question, just ask...

and i thank you by advence...



Arafel

Arafel
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Feb 2007 11:10
Location: Nice
Contact:

Postby Arafel » 20 Feb 2007 14:29

Sorry I forgot ...

i have always this message :

Code: Select all

[00000324] [Média: bg] stream_out_transcode private debug: late picture skipped (645817) [00000324] [Média: bg] stream_out_transcode private debug: late picture skipped (607060) [00000324] [Média: bg] stream_out_transcode private debug: late picture skipped (568291) [00000324] [Média: bg] stream_out_transcode private debug: late picture skipped (529456) [00000324] [Média: bg] stream_out_transcode private debug: late picture skipped (490513) [00000324] [Média: bg] stream_out_transcode private debug: late picture skipped (451689)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 22 Feb 2007 22:18

The 20 pics mosaic was achieved on a dual xeon 2.6GHz server, and it was streaming mpeg2 video, not mpeg4 (which is harder to encode).

I can't see what's wrong with your setup.
Maybe the timeshift filter, this definitively shouldn't be added to the inputs' configuration. and don't use the --no-{skip,drop-late}-frames options, if they need to be skipped once in a while it'll be better than completely crashing (although that only applies to mpeg2 video i believe).
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Arafel
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Feb 2007 11:10
Location: Nice
Contact:

Postby Arafel » 23 Feb 2007 11:13

Ok i just tested all these tips, and that"s working better ... now i just loose some frames ans that's dropping a lot... and i still have this :

Code: Select all

00000476] [Média: bg] mosaic private debug: too late picture for Chan2 (224444) [00000476] [Média: bg] mosaic private debug: too late picture for Chan1 (773970) [00000476] [Média: bg] mosaic private debug: too late picture for Chan4 (316132) [00000476] [Média: bg] mosaic private debug: too late picture for Chan2 (346645) [00000484] [Média: bg] main private warning: vout synchro warning: pts != current_date (-80000) [00000341] [Média: bg] main private warning: late buffer for mux input (84918) [00000324] [Média: bg] stream_out_transcode private debug: late picture skipped (96038) [00000324] [Média: bg] stream_out_transcode private debug: late picture skipped (57338) [00000324] [Média: bg] stream_out_transcode private debug: late picture skipped (18380) [00000343] [Média: bg] mosaic private debug: too late picture for Chan1 (857682) [00000343] [Média: bg] mosaic private debug: too late picture for Chan4 (399844) [00000343] [Média: bg] mosaic private debug: too late picture for Chan2 (430357) [00000476] [Média: bg] mosaic private debug: too late picture for Chan1 (720411) [00000476] [Média: bg] mosaic private debug: too late picture for Chan4 (421984) [00000476] [Média: bg] mosaic private debug: too late picture for Chan2 (452497) [00000001] main private debug: removing all interfaces [00000311] main interface debug: thread 3065699216 joined (interface/interface.c:258) ....


i think that my testing computer is not enough powerful i'll try in a core2duo in a few minutes and i'll let you know :)


thanks a lot for your help :)

Arafel
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Feb 2007 11:10
Location: Nice
Contact:

Postby Arafel » 23 Feb 2007 12:13

Yeah let's rock!!!


With a core2duo it's working ... (comme le dirait thierry roland : "Comme papa dans maman!"

thanks again for your precious help! you're doing a real good job ... VLC is magic! ;)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 23 Feb 2007 22:50

De rien :)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Arafel
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Feb 2007 11:10
Location: Nice
Contact:

Postby Arafel » 26 Feb 2007 10:42

t'imagines pas à quel point tu m'as aidé n'empèche!

en cas, du 10 mars au 16 mars je suis à paris pour la RHCE, si ca te dit qu'on s'en jette quelques uns derriere le gozier ... j'en serais... honnoré... ;)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: Google [Bot] and 2 guests