Skip to content

Instantly share code, notes, and snippets.

@l-t-s
Last active July 12, 2025 12:12
Show Gist options
  • Save l-t-s/c2c89dda7b5d3ab4cefe9ebea0201ae1 to your computer and use it in GitHub Desktop.
Save l-t-s/c2c89dda7b5d3ab4cefe9ebea0201ae1 to your computer and use it in GitHub Desktop.
@loligans
Copy link

loligans commented Mar 21, 2022

The configuration is now saved in:
Windows: %APPDATA%\streamlink\config
MacOS: ${HOME}/Library/Application Support/streamlink/config
Linux: ${XDG_CONFIG_HOME:-${HOME}/.config}/streamlink/config

Aside from the above, the configuration properties still work as of Feb, 2022.

You might be able to pass an OAuth token to gain access to your subscribed channels Ad Free by doing the below:

To retrieve the OAuth token read this GitHub Discussion: streamlink/streamlink#4400 (comment)

Here is a summary of the discussion (in case link dies):

1. Log in on Twitch.tv in your web browser
2. Press F12, go to the networks tab
3. Click on any of the gql.twitch.tv HTTP requests
4. Copy the value of the Authorization request header, which is OAuth YOUROAUTHTOKEN
5. Set the --twitch-api-header "Authorization=OAuth YOUROAUTHTOKEN" CLI parameter+value

@AsLi-IN
Copy link

AsLi-IN commented Jul 12, 2025

Note : pip install --user -U git+https://github.com/bastimeyer/streamlink.git@plugins/twitch/low-latency No longer works since the user has merged his PR and deleted the branch.
Directly use pip install --user -U git+https://github.com/streamlink/streamlink.git
While using the above, make sure you save the config file inside C:\Users\username\AppData\Roaming\streamlink
Also, the latest changes require you to remove the double quotation marks from the player path.
Here's how the updated file should look

default-stream=best
twitch-low-latency
#twitch-disable-ads # current version can't do this and low latency simultaneously
hls-live-edge=1
player-args=--cache-secs=0.5
player=\PATH\TO\ZE\mpv.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment