AxisWebcams

19th March 2015 at 10:24pm
VlcMosaic
  1. http://alex.mamchenkov.net/2014/11/27/vlc-mosaic-multiple-rstp-streams/
  2. https://wiki.videolan.org/Mosaic/
  3. https://support.cs.wwu.edu/index.php/Webcams
  4. http://superuser.com/questions/632054/stream-multiple-displays-using-one-vlc-instance
  5. http://stackoverflow.com/questions/14557963/mosaic-from-mjpeg-sources-in-vlc
cvlc -q \
    --vlm-conf mosaic.conf \
    --mosaic-width=640 \
    --mosaic-height=480 \
    --mosaic-order=webcam1,webcam2,webcam3,webcam4

mosaic.conf

del all

new bg broadcast enabled
setup bg input /var/www/background.jpg
setup bg option image-duration=-1
setup bg option image-fps=4/1
setup bg option mosaic-width=640
setup bg option mosaic-height=480
setup bg option mosaic-rows=2
setup bg option mosaic-cols=2
setup bg option mosaic-position=1
setup bg option mosaic-keep-picture=1
setup bg option mosaic-order=webcam1,webcam2,webcam3,webcam4
setup bg output #transcode{sfilter=mosaic,vcodec=MJPG,vb=8000,scale=1,acodec=none}:bridge-in{delay=400,id-offset=100}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=0.0.0.0:5554/mosaic.mjpeg}

new   webcam1 broadcast enabled
setup webcam1 input  "http://username:password@webcam1.example.com/mjpg/video.mjpg"
setup webcam1 output #mosaic-bridge{id=webcam1,width=320,height=240}

new   webcam2 broadcast enabled
setup webcam2 input  "http://username:password@webcam2.example.com/mjpg/video.mjpg"
setup webcam2 output #mosaic-bridge{id=webcam2,width=320,height=240}

new   webcam3 broadcast enabled
setup webcam3 input  "http://username:password@webcam3.example.com/mjpg/video.mjpg"
setup webcam3 output #mosaic-bridge{id=webcam3,width=320,height=240}

new   webcam4 broadcast enabled
setup webcam4 input  "http://username:password@webcam4.example.com/mjpg/video.mjpg"
setup webcam4 output #mosaic-bridge{id=webcam4,width=320,height=240}

control webcam1 play
control webcam2 play
control webcam3 play
control webcam4 play
control bg play