Folder - stream latest file #588
Unanswered
georgejung
asked this question in
Questions
Replies: 1 comment
-
I have been successful in moving this along. Using a bash script with inotify to monitor a folder it can publish new files to the rtsp stream as they come in, and it seems to queue them well in the event one is playing while another one comes in.
The next challenges will be scaling from 1 camera and 1 stream up to 3 (maybe needing multiple instances of rtsp-simple-server?), and automating the script to start with the system (systemd?) and figure out logic for inotify to monitor 3 folders, or for it to be able to direct the files to the appropriate stream based on the folder they appear in. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I've got a proprietary camera setup that I can't tap into the RTSP feed (Arlo). Right now I have the clips being saved everytime there is an event (motion / sound). So I have a folder organized by camera, and date (though i can adjust the folder structure if need be), and new files keep getting added to the days folder.
What I would like to do it be able to take these clips and feed them into RTSP as they appear in the folder. That is to say everytime a new video file is added in the folder, it would be streamed to the RTSP feed. When the video is done the feed would stop, until a new video file is added when the streaming would start again.
This would allow me to integrate this RTSP feed into frigate for object detection in nearly real-time.
I see that I can stream a single file, but mine are seperated by event with new ones coming in all of the time. Fortunately they are all encoded the same. Any thoughts? Thanks
Beta Was this translation helpful? Give feedback.
All reactions