Media URLs Recorder to WebRTSP server
- Run:
sudo snap install webrtsp-record-streamer --edge
; - To see application logs in realtime you can run
sudo snap logs webrtsp-record-streamer -f
;
sudoedit /var/snap/webrtsp-record-streamer/common/record-streamer.conf
;- To load updated config it's required to restart Snap:
sudo snap restart webrtsp-record-streamer
;
- Install rtsp-to-webrtsp on some VPS/VDS/Dedicated;
- Configure
rtsp-to-webrtsp
as described here; - Install
webrtsp-record-streamer
Snap package (as described above) on some device (you can use something like Raspberry Pi) on network where IP Cam is accessible directly; - Open config file for edit (as described above) and replace content with something like
target: {
host: "example.com" // IP or DNS of host were rtsp-to-webrtsp is installed
port: 5554 // or 5555 if TLS is enabled (highly recommended)
uri: "DVR" // use the same name as was used in rtsp-to-webrtsp's config
token: "some-random-string" // use the same string as used in rtsp-to-webrtsp's config
}
source: {
url: "rtsp://your_cam_ip_or_dns:port/path"
}
stun-server: "stun://stun.l.google.com:19302"
- Restart Snap:
sudo snap restart webrtsp-record-streamer
;
- Install rtsp-to-webrtsp on some VPS/VDS/Dedicated;
- Configure
rtsp-to-webrtsp
as described here; - Install
webrtsp-record-streamer
Snap package (as described above) on some device (you can use something like Raspberry Pi) on network where IP Cam is accessible directly; - Open config file for edit (as described above) and replace content with something like
target: {
host: "example.com" // IP or DNS of host were rtsp-to-webrtsp is installed
port: 5554 // or 5555 if TLS is enabled (highly recommended)
uri: "DVR" // use the same name as was used in rtsp-to-webrtsp's config
token: "some-random-string" // use the same string as used in rtsp-to-webrtsp's config
}
source: {
onvif: "http://dns_or_ip_for_cam_with_onvif_support:port/"
track-motion-event: true // true if it's required to stream only if motion is detected by IP Cam
motion-record-time: 10 // specify how many seconds it's required to stream after last motion detected by IP Cam
}
stun-server: "stun://stun.l.google.com:19302"
- Restart Snap:
sudo snap restart webrtsp-record-streamer
;