An easy way for Channels DVR to watch YouTube Live vids

Ah OK, yeah, that makes sense. Would be cool if we could enable it on a channel-by-channel basis. Because it would be great for a channel with shows like the TWiT Network, but I wouldn't want it for a 24/7 livestream of lo-fi music.

Did you get TWiT working with the Kister method?
Thought he said it would only work with You Tube live feeds.
TWiT works fine w/hlstube.

Edit: NM I see you're using their You Tube feed with this

1 Like

sure, that's not difficult. It's kind of backwards from the default behavior for tvc-guide-placeholders, but it works by appending a ph=X parameter where X is the length of time you want in seconds -- so ph=3600 to get Channels' default behavior (1 hour blocks), ph=7200 to get 2 hour blocks, or ph=1800 to get 30 minute blocks, etc.

so like https://kister.net/mpl/yt2m3u8?v=F2NreNEmMy4,c=60000,ph=3600

note- It'll take some time for the guide to update if you're adding the ph=X to an existing channel for the first time. You can hurry it by using Settings -> Guide Database -> Maintenance -> Fetch Guide Updates

3 Likes

Hey, wow, that's fantastic! I set it up for 2-hour blocks for the livestream of TWiT, and it's working great! I really appreciate that.

https://kister.net/mpl/yt2m3u8?v=F2NreNEmMy4,c=60000,ph=7200

1 Like

is it possible to choose resolution?
360p, 480p?

2 Likes

I made a new r= parameter, like:
https://kister.net/mpl/yt2m3u8?v=mhJRzQsLZGg,r=360p

Things wont work if you specify a resolution that Youtube isn't streaming in, so I also made a middle-man that can show you the available resolutions. In a regular web browser, use the detail= parameter like https://kister.net/mpl/yt2m3u8?detail=mhJRzQsLZGg -- it'll print out which are available.

1 Like

https://kister.net/mpl/yt2m3u8?w=mhJRzQsLZGg,r=360p not work.

but https://kister.net/mpl/yt2m3u8?w=mhJRzQsLZGg working.
Advice?

i will try on some softwares, but what i do is i test every stream on vlc and than on others.
Are link is pernament?

I've found they're "permanent" so long as YouTube's vid_id in the URL doesn't change. Some livestreams do go down after a few weeks (or months) and then return later with a new URL. When that happens, those vid_id's would have to be updated in the URL in your Custom Channels setup.

In the past with HLStube I'd found some livestreams that were accessible via "www.youtube.com/channel/CHANNEL_ID/live" but that didn't always work, and wasn't available for all channels. Now I can't seem to even find any examples of such to test with the Kister Method, so this point may be moot.

1 Like

Huh?
You're already watching one of them.
https://www.youtube.com/@twit/live

That /live redirect only works for youtube accounts that have a single Live stream.
Doesn't work on others like SkyNews, SpaceX, etc. that have more than one.

Ah, thanks. Must be my mistake, or the syntax changed, because I was trying: http://www.youtube.com/channel/@twit/live

Regardless, I don't think the Kister Method can work with the corrected https://www.youtube.com/@twit/live address either anyway, as the Kister Method's syntax specifically requires a vid_id in the URL.

Cool, thanks. It’s working great.

Now I dare you to make it easier a create a gui on your site with selectable variables and settings! :wink::grin:

1 Like

is there a possibility to add something and streams to be automatically mute?
Strange, i try streams on omxplayer on raspberry pi, it worked for a couple of minutes, and then just turn off.

1 Like

No

I never knew about that. I obviously have no experience with it, but it should be super simple to support. I added a hack to make @ usernames work just like vid_id, except the script will automatically add /live to the end.

https://kister.net/mpl/yt2m3u8?v=@twit

Brand new code, I don't know how it will behave when twit is not streaming/live.

2 Likes

Some of the confusion stems from a different thread where @Steffi_333 had been trying to address an issue with FAR more frequent timeouts (like every few hours.) That thread was closed as it wasn't about Channels DVR. Youtube to m3u - #3 by Stefi_333

Still not about Channels DVR. As you were told by one of the developers and administrator of this forum, this is off-topic, and your questions about other applications belong elsewhere. Please don't get this thread locked too :pray:

Wow, this is awesome! Thanks so much. I'll give it a shot and see how it goes. Super cool, I'm learning a lot from this and appreciate you sharing.

I :heart: The Kister Method.

Nice! It works.

2 Likes

Ok, its not about Channels Dvr, i understand.
I dont get my threat locked, my opinion is that is you.
But ok, i understand, thanks!!!

Any ideas why this request to twit is failing?
2023/02/28 23:52:08.062967 [ERR] Failed to start stream for ch13: M3U: Could not fetch playlist: kister.net: get https://kister.net/mpl/yt2m3u8?w=@twit: 429 Too Many Requests
2023/02/28 23:52:08.166412 [HLS] Couldn't generate stream playlist for ch13-dANY-ip192.168.1.10: M3U: Could not fetch playlist: kister.net: get https://kister.net/mpl/yt2m3u8?w=@twit: 429 Too Many Requests
2023/02/28 23:52:08.166412 [HLS] Stopping transcoder session ch13-dANY-ip192.168.1.10

1 Like