Skip to content

Instantly share code, notes, and snippets.

@mauron85
Last active January 18, 2020 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauron85/495d71a0000315c9471ae6e780ad686c to your computer and use it in GitHub Desktop.
Save mauron85/495d71a0000315c9471ae6e780ad686c to your computer and use it in GitHub Desktop.
Camera surveillance using vlc mosaic
#EXTM3U
#EXTINF:0,rtsp://camera1.lan/h264Preview_01_sub
rtsp://guest:guest123@camera1.lan/h264Preview_01_sub
#EXTINF:0,rtsp://camera2.lan/h264Preview_01_sub
rtsp://guest:guest123@camera2.lan/h264Preview_01_sub
#EXTINF:0,rtmp://camera1.lan/bcs/channel0_main.bcs
rtmp://camera1.lan/bcs/channel0_main.bcs?channel=0&stream=0&user=guest&password=guest123
#EXTINF:0,rtmp://camera2.lan/bcs/channel0_main.bcs
rtmp://camera2.lan/bcs/channel0_main.bcs?channel=0&stream=0&user=guest&password=guest123
#EXTINF:0,rtmp://camera1.lan/bcs/channel0_sub.bcs
rtmp://camera1.lan/bcs/channel0_sub.bcs?channel=0&stream=1&user=guest&password=guest123
#EXTINF:0,rtmp://camera1.lan/bcs/channel0_ext.bcs
rtmp://camera1.lan/bcs/channel0_ext.bcs?channel=0&stream=2&user=guest&password=guest123
#EXTINF:0,rtmp://camera2.lan/bcs/channel0_ext.bcs
rtmp://camera2.lan/bcs/channel0_ext.bcs?channel=0&stream=2&user=guest&password=guest123
cvlc --vlm-conf mosaic.vlm.conf --mosaic-width=1280 --mosaic-height=480 --mosaic-keep-picture --mosaic-rows=1 --mosaic-cols=2 --mosaic-position=1 --mosaic-order="1,2"
new channel1 broadcast enabled
setup channel1 input rtsp://guest:guest123@192.168.89.145/h264Preview_01_sub
setup channel1 output #duplicate{dst=mosaic-bridge{id=1,height=480,width=640},select=video,dst=mosaic-bridge{id=1}}
new channel2 broadcast enabled
setup channel2 input rtsp://guest:guest123@192.168.89.146/h264Preview_01_sub
setup channel2 output #duplicate{dst=mosaic-bridge{id=2,height=480,width=640},select=video,dst=mosaic-bridge{id=2}}
new mosaic broadcast enabled
setup mosaic input file:///home/finch/Videos/camera/camera-mosaic.jpg
setup mosaic option image-duration=-1
setup mosaic option image-fps=25
setup mosaic option mosaic-rows=1
setup mosaic option mosaic-cols=2
setup mosaic option mosaic-position=1
setup mosaic output #transcode{sfilter=mosaic,vcodec=mp4v,acodec=none,fps=15,scale=1}:display
control channel1 play
control channel2 play
control mosaic play
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment