rtmp_stream_delayer icon indicating copy to clipboard operation
rtmp_stream_delayer copied to clipboard

Multiple Stream delay jobs support

Open vineetmultitv opened this issue 6 years ago • 3 comments

vineetmultitv avatar Apr 26 '19 13:04 vineetmultitv

Hi there, it seems to be a good idea. Just wondering if this setup can support multiple stream's delay jobs

vineetmultitv avatar Apr 26 '19 13:04 vineetmultitv

currently, as you cannot distinguish between a second stream or a reconnect (first stream is finished and second stream should only start after finishing and deleting the first).

You can do that by creating more endpoints like /delay2 (and possibly /live2), make them use a different record_path and make them start the script with different delayer_settings (with changed STREAM_PATH/STREAM_DESTINATION).

If you want that, you can do a pull request and add a few arguments to the script so it's easier to do that from nginx.conf without multiple configs. It's a good change I'd approve of :)

sistason avatar Apr 26 '19 14:04 sistason

It's now able to do that by having multiple locations in your nginx, recording to different directories and then starting a script per directory you want to delay streams in. Use the new cli-arguments to start with different options

sistason avatar May 14 '20 17:05 sistason