How to stream video with delay I need some kind of rtsp buffer to delay video. I have a live cam and i need to start recording video on some event. But I need 10-15 seconds before that event too. Idea is to read from camera, use the delay buffer and stream delayed video to another port. Then to start recording from delayed stream on event. So i tried VLC but it can delay displayed video :sout-display-delay=15000 as mentioned here, and NOT the streamed one :sout-delay-id=1 :sout-delay-delay:15000 (Using VLC 1.1.9 cause VLC 2.2.1 breaks if you only mention delay :( )

I used this command for example

vlc -vvv rtsp://10.0.0.5:554/live.sdp :sout=#duplicate{dst=rtp{sdp=rtsp://:8554/live.sdp},delay-id=0,delay-delay=15000} :sout-keep


Any other thoughts, applications, experiences?

Ivan
You could try using OBS streaming software (which is free), and then check out this tutorial for how to add delay to your stream. Basically you go into the advanced settings of OBS and go to the delay settings. There you can choose to add a delay of your choosing. 

You can also record from the software too. Hope that helps.