Decided to mount recordings/Streaming
directory as a 4GB tmpfs by putting this in /etc/fstab
:
tmpfs /mnt/sda1/recordings/Streaming tmpfs nodev,nosuid,noexec,nodiratime,size=4096M 0 0
Any potential issues?
Decided to mount recordings/Streaming
directory as a 4GB tmpfs by putting this in /etc/fstab
:
tmpfs /mnt/sda1/recordings/Streaming tmpfs nodev,nosuid,noexec,nodiratime,size=4096M 0 0
Any potential issues?
Yes, you'll lose your recording indexes after each reboot and remote streaming will be less efficient.
Seems there are other issues as well:
2021/12/02 10:06:51.825768 [ERR] Generating video index for file-3499 failed: cannot write data to tempfile "/mnt/sda1/Channels/recordings/Streaming/m3u8/3499/stream.m3u81642968261": write /mnt/sda1/Channels/recordings/Streaming/m3u8/3499/stream.m3u81642968261: no space left on device
When you do unsupported things, expect random results and errors.
To clean up the streaming cache:
$ curl -X DELETE localhost:8089/dvr/cache
Doesn't affect the currently playing stream, nice.
Please don’t put the Streaming directory on a tmpfs.
You are right. I don't think RPis are made for transcoding ;(
Have you tried the 64bit OS?
It’s one of our most used platforms and has many people using it remotely with transcoding.
Yeah, that's what I am running. I think I need to find the kit and install fans.
I wonder why the dvr-server itself(not ffmpeg) works so hard when recording/streaming. Have you done any flame graphs/profiling?