Bin gestern durch Zufall und mehrere Umwege auf dieses tolle Tutorial gestoßen. Besten Dank dafür
Da ich die feed Einbindung bzw. die Positionierung der einzelen feeds doch etwas umständlich finde, habe ich nach einer anderen Lösung dafür gesucht, das irgendwie zu automatisieren...
Hab da ein wirklich brauchbares script gefunden: https://github.com/SvenVD/rpisurv
Je nachdem wieviele Cams ihr habt, passt sich hier alles automatisch an. Wie das installiert wird (auch für laien) ist dort super erklärt.
sudo nano /etc/rpisurv.conf
Einfügen (minimale Konfiguration):
#THIS IS A YAML FILE, INDENTATION IS IMPORTANT. ALSO DO NOT USE TABS FOR INDENTATION, BUT USE SPACES
#THE FOLLOWING ARE EXAMPLES WITH ALL OPTIONS EXPLAINED, REMOVE OR ADAPT THEM WITH YOUR REAL CONFIG
essentials:
#rpisurv will rotate over the following screens in the order they are configured here, if you only define one screen no rotation$
#If you enable this option no auto rotation will happen, but you will still be able to select a screen by pressing and holding a$
#Defaults to False
#disable_autorotation: False
screens:
#Start config for example screen one, this is the minimal config. This will show a 2x2 if all streams are connectable,
#otherwise rpisurv, by default, rearranges the screen to only show the connectable streams. To disable the latter set disabl$
#Force this screen to be shown by pressing and holding F1 or keypad 0
- camera_streams:
- url: "rtsp://user:pass@192.168.1.25:554/live2.sdp"
- url: "rtsp://user:pass@192.168.1.24:554/live2.sdp"
- url: "rtsp://user:pass@192.168.1.26:554/live2.sdp"
- url: "rtsp://user:pass@192.168.1.23:554/live2.sdp"
# - url: "http://live2weltcms-lh.akamaihd.net/i/Live2WeltCMS_1@444563/master.m3u8"
- url: "https://www.stadt-bergneustadt.de/fileadmin/webcam/image.jpg"
#To specify this url is not a camera stream but an image stream please set imageurl to true for this url
imageurl: true
- url: "http://wetter.heit-tech.de/webcam/aktuell.jpg"
#To specify this url is not a camera stream but an image stream please set imageurl to true for this url
imageurl: true
#!!!Normal users do not need to edit this section!!!
advanced:
update_stats: False
#These are fallbacks if autodetection fails;
#Normally you do not need to configure these
fallbacks:
resolution:
width: "1920"
height: "1080"
Alles anzeigen
Speichern:
Windows: STRG + x oder Mac: Control x (zum Speichern)
Feed restarten:
systemctl restart rpisurv
Zusätzlich läuft auf dem PI 3 B+ noch Motion + MotionEye als NVR. Welcher bei Bewegungserkennung Bilder und Videos aufzeichnet (Zusätzlich werden Bilder auf die Dropbox gepackt - optional).
Link: https://github.com/ccrisan/motion…all-On-Raspbian
Auslastung finde ich für den PI 3 B+ ganz okay - siehe 2. Bild.