Mosaic - two vids on one

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
e-San
Blank Cone
Blank Cone
Posts: 15
Joined: 11 Dec 2013 10:23

Mosaic - two vids on one

Postby e-San » 09 May 2014 12:07

Hi!

I'm trying to transform two videos into one with this config:

Code: Select all

new channel1 broadcast enabled setup channel1 input v4l2:///dev/video0 setup channel1 output #duplicate{dst=mosaic-bridge{id=1,height=144,width=180},select=video,dst=bridge-out{id=1}} new channel2 broadcast enabled setup channel2 input v4l2:///dev/video1 setup channel2 output #duplicate{dst=mosaic-bridge{id=2,height=144,width=180},select=video,dst=bridge-out{id=2},select=audio} new background broadcast enabled setup background input /home/san/background.png setup background option image-duration=-1 setup background option image-fps=16/1 setup background output #bridge-in{delay=400,id-offset=100}:transcode{fps=16,vcodec=h264,venc=x264{preset=fast,profile=baseline,keyint=30,bframes=0,ref=1,nocabac,deinterlace}}:standard{access=http,mux=ts,dst=:8090/va,name="mosaic"} control background play control channel1 play control channel2 play
command:

Code: Select all

vlc --intf=dummy --vlm-conf mosaic.vlm --mosaic-width=1240 --mosaic-height=480 --mosaic-keep-picture --mosaic-rows=1 --mosaic-cols=2 --mosaic-position=1 --mosaic-order=1,2 -v
but i get errors like this:

Code: Select all

[0xb5302f68] [0xb5302f68] mux_ts mux warning: packet with too strange dts (dts=214800837870,old=0,pcr=214785697570)
And i receive two videos in VLC (separate windows) - one is black (background) and another with video from one camera.

What am i doing wrong?

edit. and the cpu is overloaded, but when i open separately two cameras it's load is about 50-60%.

e-San
Blank Cone
Blank Cone
Posts: 15
Joined: 11 Dec 2013 10:23

Re: Mosaic - two vids on one

Postby e-San » 13 May 2014 09:32

bump?


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 6 guests