K
K
Konstantin Dolinin2015-06-03 16:35:50
VLC
Konstantin Dolinin, 2015-06-03 16:35:50

How to set up Picture-in-Picture in VLC on Windows?

Something I can not understand how to make a mosaic / PiP in VLC under Windows.
In general, what is:
1) two monitors;
2) four IP cameras capable of streaming via RTSP;
3) PC with Windows 7.
It is necessary that the second monitor has video streams from four cameras at once.
I found this - https://wiki.videolan.org/Mosaic/ and this - https://www.linux.org.ru/forum/general/6461313?cid...
Based on this, I got this config (not worry, do not connect):

new cam1 broadcast origin
setup cam1 input rtsp://admin:[email protected]:554/live
setup cam1 output #duplicate{dst="mosaic-bridge{id=1,width=960,height=540}"}

new cam2 broadcast origin
setup cam2 input rtsp://admin:[email protected]:554/live
setup cam2 output #duplicate{dst="mosaic-bridge{id=2,width=960,height=540}"}

new cam3 broadcast origin
setup cam3 input rtsp://admin:[email protected]:554/live
setup cam3 output #duplicate{dst="mosaic-bridge{id=3,width=960,height=540}"}

new cam4 broadcast origin
setup cam4 input rtsp://admin:[email protected]:554/live
setup cam4 output #duplicate{dst="mosaic-bridge{id=4,width=960,height=540}"}

new mosaic broadcast origin
setup mosaic input fake://
setup mosaic option mosaic-width=1920
setup mosaic option mosaic-height=1080
setup mosaic option mosaic-rows=2
setup mosaic option mosaic-cols=2
setup mosaic option mosaic-position=1
setup mosaic option mosaic-order="1,2"
setup mosaic option fake-file="moz.png"
setup mosaic option fake-caching=20
setup mosaic option fake-width=1920
setup mosaic option fake-height=1080
setup mosaic option fake-fps="10"
setup mosaic option fake-deinterlace
setup mosaic output #transcode{deinterlace,sfilter=mosaic,vcodec=mp4v,vb=10000,acodec=none}:bridge-in{id-offset=100}:display

control cam1 play
control cam2 play
control cam3 play
control cam4 play
control mosaic play

And here is such a launch line (I took it from the shortcut I created, the working folder is C:\Program Files (x86)\VideoLAN\VLC\):
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --color -I="telnet" --vlm-conf="--mosaic-width=1920 --mosaic-height=1080 --mosaic-keep-picture --mosaic-rows=2 --mosaic-cols=2 --mosaic-position=1 --mosaic-order=1,2,3,4 mosaic.vlm.conf" --tcp-caching="1000"

But in the end I only get VLC in processes and nothing on the screen. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question