diff --git a/cameras.sh b/cameras.sh new file mode 100644 index 0000000..98d7282 --- /dev/null +++ b/cameras.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# first stream +ffplay -window_title "Stream 1" -x 960 -y 1080 -left 0 -top 0 rtsp://admin:pwd@10.0.1.4:554/ISAPI/Streaming/Channels/102 & + +# second stream +ffplay -window_title "Stream 2" -x 960 -y 1080 -left 960 -top 0 rtsp://admin:pwd@10.0.1.5:554/ISAPI/Streaming/Channels/102 & diff --git a/vlc_mosaic.vlm b/vlc_mosaic.vlm deleted file mode 100644 index ae16a4e..0000000 --- a/vlc_mosaic.vlm +++ /dev/null @@ -1,49 +0,0 @@ -# Runs on windows by command -> vlc --vlm-conf path_to_file.vlm - -# Background options -newnew6 bg broadcast enabled -# bg junew6lain black background jpg image -setup bg input "C:\Users\full_path_to\back.jpg" -setup bg option image-duration=-1 -setup bg output #transcode{sfilter=mosaic{width=1920,height=960,cols=3,rows=2,position=1,order="1,2,3,4,5,6",keep-aspect-ratio=enabled,keep-picture=1,mosaic-align=5},vcodec=mp4v,vb=2000,fps=15}:duplicate{dst=display} - -# Input options -new 1 broadcast enabled -# RTSP string for HIKVISION cameras -setup 1 input "rtsp://admin:pass@0.0.0.0:554/ISAPI/Streaming/Channels/102" -setup 1 option dshow-size="640x480" -setup 1 output #duplicate{dst=mosaic-bridge{id=1,width=640,height=480},select=video,dst=bridge-out{id=0}} - -new 2 broadcast enabled -setup 2 input "rtsp://admin:pass@0.0.0.0:554/ISAPI/Streaming/Channels/102" -setup 2 option dshow-size="640x480" -setup 2 output #duplicate{dst=mosaic-bridge{id=2,width=640,height=480},select=video,dst=bridge-out{id=1}} - -new 3 broadcast enabled -setup 3 input "rtsp://admin:pass@0.0.0.0:554/ISAPI/Streaming/Channels/102" -setup 3 option dshow-size="640x480" -setup 3 output #duplicate{dst=mosaic-bridge{id=3,width=640,height=480},select=video,dst=bridge-out{id=2}} - -new 4 broadcast enabled -setup 4 input "rtsp://admin:pass@0.0.0.0:554/ISAPI/Streaming/Channels/102" -setup 4 option dshow-size="640x480" -setup 4 output #duplicate{dst=mosaic-bridge{id=4,width=640,height=480},select=video,dst=bridge-out{id=3}} - -new 5 broadcast enabled -setup 5 input "rtsp://admin:pass@0.0.0.0:554/ISAPI/Streaming/Channels/102" -setup 5 option dshow-size="640x480" -setup 5 output #duplicate{dst=mosaic-bridge{id=5,width=640,height=480},select=video,dst=bridge-out{id=4}} - -new 6 broadcast enabled -setup 6 input "rtsp://admin:pass@0.0.0.0:554/ISAPI/Streaming/Channels/102" -setup 6 option dshow-size="640x480" -setup 6 output #duplicate{dst=mosaic-bridge{id=6,width=640,height=480},select=video,dst=bridge-out{id=5}} - -# Launch everything -control bg play -control 1 play -control 2 play -control 3 play -control 4 play -control 5 play -control 6 play \ No newline at end of file