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
-itsoffset
works only on inputs that are read from files. It has no effect on streams. Furthermore it does work if you set-re
option but-re
option is not ment to be used on streams and ffmpeg has problems following the stream with-re
option i.e. frames are dropped and not correctly ordered :(