neolink
neolink copied to clipboard
Rtsp stream and at the same time locally record video files
I'm able to rtsp the vídeo stream genearted on a E1 camera, I would like to have an option to simultaneously stream the vídeo and locally save it to some files.
I tried using ffmpeg to acomplish this but the file is saved with poor Quality due to packet loss Even if the RTSP neolink server and the ffmpeg are running on the same Raspberry.
I think that since Neolink uses gstreamer it would require less overhead to use gstreamer yo acomplish this
It's certainly possible and I actually sometimes alter the source code to do this just to test the output prior to sending over rtsp. But it's not officially setup to do it. I'll add making it offical to my, to-do list (which is getting quite long now so if you can code rust PRs, would be welcome :).
With regards to the ffmpeg. Make sure you use -rtsp_transport tcp
to avoid any packet loss. (might need the newer ffmpeg binaries for this)
I'd love to see this! following
Out of curiosity: do y'all want to do this because it's a quick and dirty way to get a sample file from the camera, or because you want an NVR? I would probably be in favor of a save-video
subcommand to support the former, however I would hesitate to try to make Neolink into an NVR - there are packages for that already :)