diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-05-24 22:16:33 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-05-24 22:16:35 +0300 |
commit | 00427d1b252474abde7de40588688ec2cea99185 (patch) | |
tree | 44f8aa2c1d24da2ed8c08c396e0ecfc57108c2a9 | |
parent | b8aa98899f14d90326bd10259aa69a0b4d6a139e (diff) |
ipcam changes
-rw-r--r-- | doc/ipcam-streaming.md | 14 | ||||
-rw-r--r-- | systemd/ipcam_rtsp2hls@.service (renamed from systemd/ipcam-rtsp2hls@.service) | 4 | ||||
-rwxr-xr-x | tools/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 |