Hi, what I'm achieving to do is display an IP camera on the dashboard and store a prefix buffer video when I need, but starting some seconds before my trigger.
Thanks to all support inside the forum I'm able to display the IP camera via exec/daemon node without problem, with command like this:
ffmpeg -f rtsp -i "rtsp://admin:firstname.lastname@example.org:554/12.264" -f image2pipe pipe:1
For storing a prefixed length video I use a command like this:
ffmpeg -rtsp_transport tcp -i "rtsp://admin:email@example.com:554/12.264"" -c:v copy -t 60 -r 5 -s 640x480
But in this way I force to have two processes for the same camera. Ok, I could use daemon node and pass the stram as stdin like
-f image2pipe -i pipe:0
and save the output as mp3. But in this way I can record from that moment on. Instead, I would like to register starting 10 seconds before.
Practically, what I'm trying to do is:
- catch a stream video from an IP camera and endless display it on dashboard;
- temporary save it in a buffer (without saving it on the disk);
- on my trigger, save a 60 seconds video but starting 10 seconds before my trigger.
I even thought of temporary saving the exec/daemon output with a join node and release them as unique buffer message. I've tried several way and encoding, but the file I get is always unreadable.
I hope to have been clear enough Thanks a lot