Since hardware accelerated video decoding in browsers is still a nightmare, i use mpv and yt-dlp to watch youtube.
no ads there either.
no ads there either.
Code:
#!/bin/zsh
#
YTDLP_OPTIONS=(
-4
-f "bv*+ba"
--proxy "http://xxxxxxxxx:xxxx"
--cookies ~/.config/yt-cook.txt
)
yt-dlp -q -o - "$@" ${YTDLP_OPTIONS} | mpv \
--fullscreen=yes \
--stream-buffer-size=536870912 \
--video-reversal-buffer=4096000000 \
--demuxer-max-bytes=10240000KiB \
--demuxer-readahead-secs=3600 \
--cache-secs=3600 \
--force-seekable=yes - 3<&0 <$TTY
Last edited by a moderator: