-
Notifications
You must be signed in to change notification settings - Fork 36
TWITCH LIVE STREAM ADs #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Current temporary idea: I'll do some testing tonight, see what works, what doesn't. And hopefully push a release later tonight or tomorrow. |
Release v1.0.9 was just pushed out. This release add user customizable Streamlink arguments for live stream archives. By default the If you have Twitch Turbo or are subscribed to a Twitch channel, you may add an argument that allows you to pass your access token to receive an ad-free HLS playlist to archive. Retrieving your access token can be done by following Streamlink's documentation https://streamlink.github.io/cli/plugins/twitch.html#authentication. Once the token is obtained, add it in an argument like so: The arguments must be comma separated. If you do not have Twitch Turbo or are not subscribed to any channel then it is of no benefit to include your token. For more information regarding the Streamlink arguments setting, visit the wiki. This is currently the best solution with Twitch's update to embedding the ads directly into the HLS playlist. I'll try to keep this issue updated with new findings. |
With the Look for a similar line to what is shown below. This is for a channel that I am subscribed to.
For a channel that I am not subscribed to.
|
I think you can build in the streamlink-ttvlol plugin. With that the users can disable all ads. Is that an option? |
Issue
As of a few days ago Twitch has re-enabled embedding ads into the HLS stream. Previously Twitch experimented with this but turned it off. This change has caused issues with archiving live streams (VODs are unaffected to my knowledge).
To archive live streams, Ganymede uses streamlink which has an option to disable ads
--twitch-disable-ads
. As of a few days ago the enabling of embedding ads again has made some changes to this option. Now with this option, streamlink will cut out detected ad segments, resulting in a shorter video than what the broadcaster streamed. This causes issues with the video and chat sync. Once an ad gets cut out the chat and video are out of sync. Any live stream archived the past couple days will have this issue. VODs are unaffected.Temporary Solution
As a temporary solution I am pushing out a hotfix that will disable the
--twitch-disable-ads
option for live archives. With this option disabled, during an ad segment a "showing ads" image will be displayed.This is not a permanent and ideal solution but the video being cut and shorter than the chat duration is the biggest issue.
Long Term Solution
Streamlink posted an issue talking about the recent ad changes Twitch embedded ads / commercial ad break / purple screen (November 2022) streamlink/streamlink#4949. In this issue they state an authorization token can be passed if you have Twitch Turbo (I would think channel subs would work to?) to be served an ad-free HLS playlist. In the coming days, I will let users modify the streamlink params to include an authorization token if they have Twitch Turbo.
Wait until a workaround is found?
At this time I advise to download the streamer's VOD instead of performing live archives of their stream. I know this is not always possible due to streamers disabling VODs or having dual audio tracks.
Most Twitch adblocker extensions are not working due to this change. The only ones that I know work are proxy extensions which proxy the HLS playlist request to a country that does not have Twitch ad campaigns.
I will keep this issue updated with the latest information I find.
Have any questions, comments, or solutions? Post them below.
The text was updated successfully, but these errors were encountered: