summaryrefslogtreecommitdiff
path: root/doc/ipcam-streaming.md
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-06-04 00:32:40 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-06-04 00:32:40 +0300
commitea0ac514650972fafef13726da2e6f74fdfe11cc (patch)
tree367ed2418c9f524be967111c22feb5aceb7ee67d /doc/ipcam-streaming.md
parent56305c8e8d217cd22224cfeb688c1d6fc2737269 (diff)
docs: update ipcam docs
Diffstat (limited to 'doc/ipcam-streaming.md')
-rw-r--r--doc/ipcam-streaming.md45
1 files changed, 37 insertions, 8 deletions
diff --git a/doc/ipcam-streaming.md b/doc/ipcam-streaming.md
index 7573811..ddc3156 100644
--- a/doc/ipcam-streaming.md
+++ b/doc/ipcam-streaming.md
@@ -1,10 +1,3 @@
-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
@@ -17,4 +10,40 @@ allow_writeable_chroot=YES
write_enable=YES
seccomp_sandbox=NO
-``` \ No newline at end of file
+```
+
+### HLS
+
+Let's assume IP cameras stream h264 via rtsp.
+
+- Create `/var/ipcamfs` directory.
+
+- Add to `/etc/fstab`:
+ ```
+ tmpfs /var/ipcamfs tmpfs mode=1755,uid=1000,gid=1000,size=350M 0 0
+ ```
+
+ You may want to adjust tmpfs size.
+
+- Run `mount /var/ipcamfs`.
+
+- Copy systemd unit file:
+ ```
+ cp /home/user/homekit/systemd/ipcam_rtsp2hls@.service /etc/systemd/system
+ ```
+
+- Create configuration directory:
+ ```
+ mkdir /etc/ipcam_rtsp2hls.conf.d
+ ```
+
+- Then for each `camname`:
+ - create `/etc/ipcam_rtsp2hls.conf.d/camname.conf` with following content:
+ ```
+ USER=suer
+ PASSWORD=password
+ IP=192.168.1.2
+ PORT=554
+ ARGS=
+ ```
+ - run `systemctl enable ipcam_rtsp2hls@camname` and `systemctl start ipcam_rtsp2hls@camname` \ No newline at end of file