High-resilience SRT/RTMP stream recording with mobile devices
Hey there, first of all I'm not entirely sure I'm in the correct place so excuse me if I'm wrong here.
I am trying to setup something that records incoming video/audio streams where the most important thing is to actually record as much as possible. Be it network hiccups (since the expected transmitter is mobile phones), processing hiccups (sync issues) up to physical destruction of the phone. Basically the number one priority is to capture as much as possible even if that creates artefacts. The goal is to create "indestructible evidence" even if someone takes or destroys the phone.
I spend the last 6 hours to lose my sanity over mediaMTX as it simply refuses to record audio properly (it receives it evident by it working over WebRTC but it doesn't save it). When audio is slightly out of sync it just drops it too. In general it seems way too fragile and sensitive for my intended use case or I'm just skill issued. The configurable chunky-ness is nice though as it limits how much can be lost in case of transmission termination.
I'm thinking nginx-rtmp maybe but I have PTSD from when I did things with it a decade ago but maybe it's just still the best workhorse for this application and with docker it's way less painful I imagine. Although from what I gathered SRT is better for this than RTMP or did I get this wrong (more resilient against network issues but seemingly more delay)? Or am I looking too far into streaming software when I really want some sort of DVR/NVR solution?
Can anyone recommend something in that regard, not only for the server side aspect but also the transmitting part in the form of iOS and Android apps since the goal is to start streaming as fast as possible in stressful situations. So ideally without requiring intervention on connection drop, just retry aggressively.
As I'm personally on iOS I tried Moblin which is more geared towards IRL streamers but it seems to do the job quite well, they need resilience afterall, and it can also automatically start recording locally as a secondary backup. Startup is quick and going live requires "just" 2 button presses, only downside is that I can't modify the reconnect timeout. Larix Broadcaster is often mentioned and has one-click go-live but they changed to an imho unacceptable pricing model and don't really appear to do anything that Moblin can't.
Thanks for any pointers in advance