datarhei / restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.
https://docs.datarhei.com/restreamer/
Apache License 2.0
3.77k stars 436 forks source link

Youtube Live streaming doesn't recover on restart #587

Open rohitsud opened 1 year ago

rohitsud commented 1 year ago

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):

JakeShirley commented 12 months ago

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

hanspeide commented 12 months ago

If you change it to a scheduled stream it will work

rohitsud commented 12 months ago

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 commented 11 months ago

@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.

salvatorecimmino commented 1 month ago

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

xavierjulie commented 6 days ago

Same issue for me. The YouTube stream suddenly stops, Restreamer thinks it's still going (green toggle), it doesn't lose connection to the camera RTSP. Any update ?