summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/ipcam-streaming.md14
-rw-r--r--systemd/ipcam_rtsp2hls@.service (renamed from systemd/ipcam-rtsp2hls@.service)4
-rwxr-xr-xtools/ipcam_rtsp2hls.sh (renamed from tools/ipcam-rtsp2hls.sh)0
3 files changed, 16 insertions, 2 deletions
diff --git a/doc/ipcam-streaming.md b/doc/ipcam-streaming.md
index 524e0e2..7573811 100644
--- a/doc/ipcam-streaming.md
+++ b/doc/ipcam-streaming.md
@@ -3,4 +3,18 @@ Let's assume IP cameras stream h264 via rtsp.
To `/etc/fstab`:
```
tmpfs /var/ipcamfs tmpfs mode=1755,uid=1000,gid=1000 0 0
+```
+
+For event-based FTP storage:
+```
+apt install vsftpd
+```
+
+`/etc/vsftpd.conf`:
+```
+chroot_local_user=YES
+allow_writeable_chroot=YES
+
+write_enable=YES
+seccomp_sandbox=NO
``` \ No newline at end of file
diff --git a/systemd/ipcam-rtsp2hls@.service b/systemd/ipcam_rtsp2hls@.service
index 5421847..244a192 100644
--- a/systemd/ipcam-rtsp2hls@.service
+++ b/systemd/ipcam_rtsp2hls@.service
@@ -6,8 +6,8 @@ After=network-online.target
Restart=always
User=user
Group=user
-EnvironmentFile=/etc/ipcam-rtsp2hls.conf.d/%i.conf
-ExecStart=/home/user/homekit/tools/ipcam-rtsp2hls.sh --name %i --user $USER --password $PASSWORD --ip $IP --port $PORT $ARGS
+EnvironmentFile=/etc/ipcam_rtsp2hls.conf.d/%i.conf
+ExecStart=/home/user/homekit/tools/ipcam_rtsp2hls.sh --name %i --user $USER --password $PASSWORD --ip $IP --port $PORT $ARGS
[Install]
WantedBy=multi-user.target
diff --git a/tools/ipcam-rtsp2hls.sh b/tools/ipcam_rtsp2hls.sh
index d52fb8a..d52fb8a 100755
--- a/tools/ipcam-rtsp2hls.sh
+++ b/tools/ipcam_rtsp2hls.sh