3

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

4
  • Maybe have a look at ffmpeg ? It has a offset option that might work. ffmpeg.org/ffmpeg.html#Main-options Commented Nov 29, 2015 at 0:07
  • @HaydenThring First I thought that it's a bingo but sadly, -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 :(
    – ikxx
    Commented Nov 29, 2015 at 19:23
  • what if you captured to disk, and then start the stream from that file some delay after the capture begins ? Commented Nov 29, 2015 at 22:30
  • That would be OK, but I don't have indefinite disk size. And it is difficult to determine at which point to start reading. For several cameras if I would start recording at midnight till the end of the day it would be a mess... In memory delay would be an optimal solution...
    – ikxx
    Commented Nov 29, 2015 at 22:56

1 Answer 1

1

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.

1
  • Welcome! Answers that don't include much more than to see a link are discouraged. If the link becomes unavailable, then the answer won't help people in the future. Could you summarize or paraphrase the contents of the tutorial here? Commented Feb 7, 2019 at 21:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.