twitch2tuner icon indicating copy to clipboard operation
twitch2tuner copied to clipboard

Add streamlink config, and utilize yt-dlp in place of youtube-dl

Open mil1i opened this issue 1 year ago • 3 comments

I can keep playing with this some. But right now, both streamlink and yt-dlp appear to be working for me without ads. I've only tested yt-dlp a little bit without ads, as it's late right now.

But effectively:

  • Add ~/.config/streamlink/config and ~/.config/streamlink/config.twitch which will bypass ads and set best default values for streaming twitch.
  • Utilize yt-dlp in place of youtube-dl
  • Adds known headers for yt-dlp to inform twitch that the client is an "ad free client".

So far, both seem to work initially. Skip pre-roll ads when starting a stream and starts very quick. The issue I currently see with both is that when twitch attempts to show a mid-roll ad the stream briefly freezes and so far requires "restarting" (or pressing play, from my client at least) to resume it.

I've been testing from Firefox browser + Apple TV (tvOS) Plex app. I tested from macOS Plex Desktop app as well, but it failed to play with any setting.

Unsure at the moment how to resolve the mid-roll ads breaking the stream. Need to dig more.

mil1i avatar Jul 26 '23 05:07 mil1i

Also try updating your branch with the latest master to fix the CI run.

micahmo avatar Jul 26 '23 13:07 micahmo

I tested a bit more this morning. I must have gotten lucky last night as I got hit with a bunch of "ad"/"commercial" breaks today.

Running into it to freezing the stream a bunch and having to restart it. Which unfortunately makes it a pain to use. So I want to continue playing around. Probably shouldn't merge these especially if the freezing doesn't happen for you or anyone else.

I just wanted to use this to drop Turbo subscription, and still be able to watch Twitch without getting hit by ad breaks every 10 minutes.

mil1i avatar Jul 26 '23 13:07 mil1i

I want to continue playing around. Probably shouldn't merge these especially if the freezing doesn't happen for you or anyone else.

Sure, no problem! Feel free to play around and see if it gets into a state you'd be comfortable merging. If not, you're of course welcome to keep using your branch, and we can keep it here for reference. Thanks for taking the time to work on this!

micahmo avatar Jul 26 '23 14:07 micahmo