Shows video from configured WebRTSP source to default output. Created as part of DIY project of doorbell cam monitor with optional motion detection.
- Raspberry Pi 3 or newer (or maybe some other 64bit ARM boards with ability to run SNAP packages)
- Raspberry Pi OS Lite 64bit (or mayber some other 64bit OS with ability to run SNAP packages and console only mode)
- Some h264 video stream source:
- IP Cam with RTSP protocol support
- IP Cam with ONVIF protocol support
- WebRTSP server like WebRTSP/ReStreamer
- WebRTSP Record client like WebRTSP/RecordStreamer
- Monitor connected to default HDMI output
- Run:
sudo snap install video-monitor --edge - To see application logs in realtime you can run
sudo snap logs video-monitor -f
sudoedit /var/snap/video-monitor/common/monitor.conf- To load updated config it's required to restart Snap:
sudo snap restart video-monitor
- Install app
- Open config file for edit (as described above) and replace content with something like
source: {
url: "rtsp://your_cam_ip_or_dns:port/path"
}
- Restart Snap:
sudo snap restart video-monitor
- Install app
- Open config file for edit (as described above) and replace content with something like
source: {
onvif: "http://ip.cam:8080/"
track-motion: true // to show video preview when motion is detected by ONVIF camera
motion-preview-time: 30 // minimum time to preview video after motion detected
}
- Restart Snap:
sudo snap restart video-monitor
- Install app
- Open config file for edit (as described above) and replace content with something like
source: {
// "webrtsp://" for plain WebSocket connection (ws://)
// "webrtsps://" for Secure WebSocket connection (wss://)
url: "webrtsps://ipcam.stream/%C5%A0trbsk%C3%A9%20pleso"
}
- Restart Snap:
sudo snap restart video-monitor - Install WebRTSP/ReStreamer
- Configure
WebRTSP/RecordStreamer:- Without motion detection
- With motion detection
and add
restream: trueto streamer configuration to make video stream accessable for Video Monitor when recording is active
- Install app
- Open config file for edit (as described above) and replace content with something like
record-server: {
token: "some-random-string"
}
- Restart Snap:
sudo snap restart video-monitor - Install WebRTSP/RecordStreamer
- Configure
WebRTSP/RecordStreamer: