According to ChatGPT
what is streamlink
Streamlink is a command-line program that lets you watch online video streams in your own media player (like mpv or VLC) instead of a web browser.
ChatGPT seems to think there is such a pkg, but I can't find it.
Anyone heard of it?
According to ChatGPT
what is streamlink
Streamlink is a command-line program that lets you watch online video streams in your own media player (like mpv or VLC) instead of a web browser.
ChatGPT seems to think there is such a pkg, but I can't find it.
Anyone heard of it?
# pkg install py311-pip
pip install --user git+https://github.com/streamlink/streamlink.git
pip install --upgrade --user git+https://github.com/streamlink/streamlink.git
pip install --upgrade --force-reinstall --user git+https://github.com/streamlink/streamlink.git
#!/usr/bin/env bash
rm -rv .cache/streamlink
killall streamlink
killall mpv
/home/paul/.local/bin/streamlink --config $HOME/.config/streamlink/config.filmon --player-continuous-http -O $1 worst | ffmpeg -re -i - -c copy -f mpegts - | cvlc --volume=10 --http-reconnect -- -
exit 0
And an example of one of the scripts I use:
Code:#!/usr/bin/env bash rm -rv .cache/streamlink killall streamlink killall mpv /home/paul/.local/bin/streamlink --config $HOME/.config/streamlink/config.filmon --player-continuous-http -O $1 worst | ffmpeg -re -i - -c copy -f mpegts - | cvlc --volume=10 --http-reconnect -- - exit 0
NB - you don't necessarily need to use ffmpeg as an intermediate pipe (just something I was messing around with for a particular use case). Just pipe the streamlink output directly to your player of choice.
#!/usr/bin/env bash
rm -rv .cache/streamlink
killall -9 streamlink
killall -9 vlc
killall -9 python
$HOME/.local/bin/streamlink --ffmpeg-fout "mpegts" --ffmpeg-copyts --player-continuous-http -O $1 worst | cvlc --http-reconnect -- -
exit 0