torch2424 / live-stream-radio

24/7 live stream video radio station CLI / API 📹 📻
https://torch2424.github.io/live-stream-radio/
240 stars 64 forks source link

Way of automatically updating the rtmp stream key? #127

Open between2d opened 5 years ago

between2d commented 5 years ago

First off, you guys (especially @torch2424 and @AndreasWebdev ) have been amazing in all the effort you guys have put into this. Really grateful for everything you guys do!

I have some questions about keeping the stream going 24/7: 1) In order to keep the stream going 24/7 (for real) ideally I'd have a backup stream going to the same rtmp, right? I could do this with a(nother) VDS right? 2) I think one of my main problems if that the youtube rtmp stream key changes (what appears to be randomly). How are other 24/7 music streams able to keep streaming to what seems to be infinitely? Is there a way to automate the key/pass changes? Maybe through some sort of AUTH in the youtube api?

Thanks

torch2424 commented 5 years ago

First off, you guys (especially @torch2424 and @AndreasWebdev ) have been amazing in all the effort you guys have put into this. Really grateful for everything you guys do!

Thank you! :smile: Super stoked to see this and means a ton! :+1: I'm sure @AndreasWebdev Will be super stoked to see this as well :smile:

In order to keep the stream going 24/7 (for real) ideally I'd have a backup stream going to the same rtmp, right? I could do this with a(nother) VDS right?

Oooo. So to be honest, I haven't done any "real" 24/7 load proxying fancy stuff for my streams to be honest :cry: So I don't have much advice here.

I think one of my main problems if that the youtube rtmp stream key changes (what appears to be randomly). How are other 24/7 music streams able to keep streaming to what seems to be infinitely? Is there a way to automate the key/pass changes? Maybe through some sort of AUTH in the youtube api?

Huh your rtmp stream key is changing? I've been using the same one for my current stream for like months. :thinking: That being said, I know some of the more popular streams, like Chilled Cow go down for short amounts, as it says they do in the description (or at least it did last time I checked).

That being said, would be super open to a PR to enable this in the API or, make it returnable from the JS config :smile:

Thanks!

LauraWebdev commented 5 years ago

Hey there, very exciting to see me mentioned in here :)

But I'm not only here to be excited, so, about your issue. Are you trying to stream to any RMTP server or YouTube specifically. If you do stream to YouTube, what you have to do is create a YouTube Livestream "Event" (basically a pre-setup and planned stream). You setup title, description and thumbnail and use the RMTP key provided in there. Since you created a specific event, the key won't change for this event.

@torch2424 if I don't forget it, I'll think of a PR for this, I have an idea or two in my mind already (though it's 2am for me now, oof)