input stream+capture -> mosaic -> stream to multiple clients

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
walidvb
New Cone
New Cone
Posts: 4
Joined: 24 Apr 2012 20:55

input stream+capture -> mosaic -> stream to multiple clients

Postby walidvb » 24 Apr 2012 22:03

Hi guys!

I have been struggling for the last 5 hours trying to get each steps working, and I have a lot of trouble.
My goal: I have one computer streaming a video to me(using VLC as well), one device to capture a video. I want to put both videos side-by-side, take audio from one of them(or from a third source), and stream that to clients(optimal would be to a webpage, could also be to multiple clients, and if necessary to one single client, but that would be worst case).

I have tried a lot of combinations of the vlm.conf as seen on examples, but it just doesn't seem to want to work.

Here is a copy of what I believe should work(as I said, I made various tries):

Code: Select all

new channel1 broadcast enabled setup channel1 input kite.mpg setup channel1 output #duplicate{dst=mosaic-bridge{id=1,height=384,width=512},select=video,dst=bridge-out{id=1},select=audio} new channel2 broadcast enabled setup channel2 input kite.mpg setup channel2 output #duplicate{dst=mosaic-bridge{id=2,height=384,width=512},select=video,dst=bridge-out{id=2},select=audio} new background broadcast enabled setup background input mire1.png setup background output #transcode{sfilter=mosaic,vcodec=mp4v,vb=10000,scale=1}:bridge-in{delay=400,id-offset=100}:standard{access=udp,mux=ts,url=239.255.12.42,sap,name="mosaic"} control background play control channel1 play control channel2 play


,the command I use to start it:

Code: Select all

vlc --color --vlm-conf vlm.conf --mosaic-width=1024 --mosaic-height=768 --mosaic-keep-picture --mosaic-rows=1 --mosaic-cols=2 --mosaic-position=1 --mosaic-order=1,2
,and last, the output:

Code: Select all

VLC media player 2.0.1 Twoflower (revision 2.0.1-0-gf432547) [0x103079c80] main interface error: no suitable interface module [0x10020a1e0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. Fontconfig error: Cannot load default config file Fontconfig error: Cannot load default config file [mpeg4 @ 0x1028d6420] removing common factors from framerate [0x100601240] main mux error: cannot add this stream [0x100601240] main mux error: cannot add this stream
I need to get this working in the next couple of days, and right now I can't get anything to work! Did some tries on the streaming part as well, no luck there either.
I think I'm missing something basic, but I really can't see what exactly... Read several tutorials and links about possible configurations, again, nothing solved this.
More specifically, I'm having a hard time understanding what exactly what dst=bridge-out means? I think that might be the key?
I'm running on Mac OS X, VLC 2.0.1

Thanks a lot for your help!

walidvb
New Cone
New Cone
Posts: 4
Joined: 24 Apr 2012 20:55

Re: input stream+capture -> mosaic -> stream to multiple cli

Postby walidvb » 03 May 2012 14:38

Hi guys!

It seems I have done a little progress, even though i'm still far from what i need, and i need it fast. I have now found another examples that at least returns less errors, but still doesn't work. Basically, I can play the background(be it a video or an image), but it won't play or display the videos.

Code: Select all

new bg broadcast enabled loop setup bg option sub-filter=mosaic setup bg input "mire1.png" setup bg output #bridge-in{offset=100}:display setup bg option file-caching=2000 # Mosaic options setup bg option mosaic-alpha=255 setup bg option mosaic-height=600 setup bg option mosaic-width=500 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=1 setup bg option mosaic-cols=2 setup bg option mosaic-order=Channel1,Channel2, setup bg option mosaic-delay=0 setup bg option mosaic-keep-picture # Input options new Channel1 broadcast enabled setup Channel1 input "kite.mpg" setup Channel1 output #duplicate{dst=mosaic-bridge{id=Channel1,width=250,height=300},select=video,dst=bridge-out{id=0},select=audio} new Channel2 broadcast enabled setup Channel2 input "kite.mpg" setup Channel2 output #duplicate{dst=mosaic-bridge{id=Channel2,width=250,height=300},select=video,dst=bridge-out{id=1},select=audio} # Launch everything control Channel1 play control bg play control Channel2 play # end of mosaic batch
Here is what I get:

Code: Select all

vlc --vlm-conf vlm.conf --http-host localhost --http-port 8080 VLC media player 2.0.1 Twoflower (revision 2.0.1-0-gf432547) [0x10308d960] main interface error: no suitable interface module [0x10020a1d0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. Fontconfig error: Cannot load default config file Fontconfig error: Cannot load default config file [0x10d4a44d0] main audio output error: option mute does not exist [0x117f13a80] main audio output error: option mute does not exist Fontconfig error: Cannot load default config file Fontconfig error: Cannot load default config file Fontconfig error: Cannot load default config file Segmentation fault: 11
I would really appreciate some help on this, as I am spending a lot of time trying this and that, with no progress whatsoever.

Thanks again, and I'll keep updating this post! :)


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 24 guests