take a look at the --retry-* arguments via cli. alternatively, add your streamlink
cmd within an infinite loop (e.g., while true; do ....; done
) in a script file using your language of choice , make it executable, and run it.
https://streamlink.github.io/install.html#linux-and-bsd
echo "deb http://deb.debian.org/debian buster-backports main" | sudo tee "/etc/apt/sources.list.d/streamlink.list" sudo apt update sudo apt -t buster-backports install streamlink
or sudo apt policy streamlink
to check for repo versions and then sudo apt install streamlink=version
Ask your responsible distro/package maintainers. These packages are not maintained by the software developers of Streamlink.
https://streamlink.github.io/install.html#pypi-package-and-source-code
> If a package is not available on your platform, or if it's out of date, Streamlink can be installed via pip, the Python package manager.
First off, he's not using the Twitch GUI as a Streamlink frontend, so all he has to do is set the --twitch-disable-ads
parameter.
https://streamlink.github.io/cli.html#cmdoption-twitch-disable-ads
And second, regarding updates, as you can read in the linked thread, the ad prevention is a workaround that sets a special request parameter when retrieving the streaming access token. Twitch is however in full control here and can change their system at any point in time, and they have done this plenty of times already. The last workaround was setting the player_type=frontpage
request parameter, because Twitch apparently doesn't run ads on their frontpage player, and this was the way they had implemented it, and Streamlink was able to copy that behavior. But once Twitch made further changes after they discovered that not just Streamlink but also various browser ad blockers were using this workaround, this stopped working, and this is the current state.
There is no ultimate solution, as I've explained plenty of times already in the Github issues, and all you can do if you don't want to see ads is filtering them out with the --twitch-disable-ads
parameter. This ad filtering has just been reworked in the 1.7.0
release of Streamlink and is working fine.
But as I've said, just read the linked thread, because all this information can be found there.
I don't know what the problem is, but the version in the Ubuntu repos is always old, install and keep Streamlink updated via pip instead.
sudo apt-get install python3-setuptools python3-pip sudo -H pip3 install -U streamlink
Youtube's API changes often and things can break so updating is important.
Also I think Youtube live streams are still limited to max 6 hours, so that will always force a restart.
These might be useful:
https://streamlink.github.io/cli.html#cmdoption-hls-live-restart
https://streamlink.github.io/cli.html#cmdoption-hls-start-offset
> The problem with MPV however is that it gets configured via command line parameters or via config files, and this may turn off new or inexperienced users.
https://mpv.io/manual/stable/
good luck, I won't answer any questions like this on reddit...
Just a FYI -for anyone who find this- you can just create a profile on the mpv.conf file https://mpv.io/manual/master/#files example:
[streamlink] vo=gpu hwdec=auto audio-device=wasapi/{eb874d4d-3608-4524-808c-9733d0a53f59} save-position-on-quit no-keepaspect no-border screen=0 snap-window
#"To end the profile, start another one or use the profile name default to continue with normal options."
and then call it in streamlink twitch gui > settings > player > Custom parameters: --profile=streamlink