restreamer icon indicating copy to clipboard operation
restreamer copied to clipboard

Youtube Live streaming doesn't recover on restart

Open rohitsud opened this issue 1 year ago • 6 comments

Describe the bug When restreamer restarts (due to the docker container being restarted), Youtube live streaming isn't automatically restarted. You have to go to the UI, manually toggle Youtube Live streaming off and on again to get it working.

To Reproduce Steps to reproduce the behavior:

  1. Create a Youtube Live stream using Scheduled stream mode (so that the stream doesn't terminate on no data).
  2. Start streaming using restreamer
  3. Restart your system (or the docker container with restreamer).
  4. Observe that Youtube stream is hung even though restreamer is streaming data to it.

Expected behavior Youtube stream should recover without having to toggle restreamer settings for Youtube to off and on.

Screenshots NA

Desktop (please complete the following information):

rohitsud avatar Jul 15 '23 01:07 rohitsud

I am seeing this too. I am trying to set up a 24/7 stream and I wake up to Restreamer showing "green" for YouTube but YouTube showing this:

image

JakeShirley avatar Sep 10 '23 18:09 JakeShirley

If you change it to a scheduled stream it will work

hanspeide avatar Sep 11 '23 20:09 hanspeide

If you change it to a scheduled stream it will work

It won't end the stream if you do that but it still hangs like the screenshot shows.

rohitsud avatar Sep 11 '23 21:09 rohitsud

@svenerbeck @ioppermann This is not completely a third-party issue. The issue is that restreamer breaks the video upload stream for more time that is allowed by Youtube and so Youtube doesn't recover the stream. It can be fixed in one of the two ways:

  1. Implement support for backup static stream when connection is broken. I believe this is on the TODO list.
  2. Restart stream when upload breaks (currently this is achieved by toggling the button to stream to Youtube OFF and then back ON).

The second approach works well in practice and I need to do this every 2-3 days on my 24/7 stream.

rohitsud avatar Sep 16 '23 18:09 rohitsud

Any updates on this? I'm having the same issue. The YouTube stream suddenly stops, Restreamer thinks it's still going (green toggle), it doesn't lose connection to the camera RTSP. I have to go to the UI, manually toggle YouTube Live off and on again to get it working. Is there any way to schedule an automatic switch off/on every X hours for a publication?

datarhei-core v16.16.0 (linux/arm64) - dry-brook-4517 restreamer-v2.11.0 YouTube Live v1.1

salvatorecimmino avatar Jul 23 '24 04:07 salvatorecimmino