Mosaic - two vids on one
Posted: 09 May 2014 12:07
Hi!
I'm trying to transform two videos into one with this config:
command:
but i get errors like this:
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%.
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
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
Code: Select all
[0xb5302f68] [0xb5302f68] mux_ts mux warning: packet with too strange dts (dts=214800837870,old=0,pcr=214785697570)
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%.