From acca0f8e80306f14362d36005c7e7db7449803c4 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Tue, 26 Jul 2022 16:23:17 -0500 Subject: feat(mpv): set up mpv and streamlink configs --- mpv/.config/mpv/mpv.conf | 17 +++++++++++++---- mpv/.config/yt-dlp/config | 3 +++ streamlink/.config/streamlink/config.twitch | 4 ++-- wsl/.local/bin/wsl-installer.sh | 3 +++ 4 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 mpv/.config/yt-dlp/config diff --git a/mpv/.config/mpv/mpv.conf b/mpv/.config/mpv/mpv.conf index a7fdb44..a23fabc 100755 --- a/mpv/.config/mpv/mpv.conf +++ b/mpv/.config/mpv/mpv.conf @@ -6,6 +6,14 @@ profile-restore=copy-equal hwdec=auto-copy # vo=gpu +# Smoother video +video-sync=display-resample +interpolation +tscale=oversample + +# HD audio passthrough +audio-spdif=ac3,eac3,dts-hd,truehd + # Window save-position-on-quit=yes @@ -22,15 +30,16 @@ demuxer-max-back-bytes=1200M # Audio volume=60 +# Subtitles +sub-font-size=16 +sub-align-x=center +sub-align-y=bottom + [twitch] profile-cond=get("media-title", ""):find("twitch.tv/[^ /]+") ~= nil profile-restore=copy-equal -# border=no force-seekable=yes hr-seek=yes hr-seek-framedrop=yes demuxer-max-bytes=750k demuxer-max-back-bytes=1200M -sub-font-size=14 -sub-align-x=right -sub-align-y=top \ No newline at end of file diff --git a/mpv/.config/yt-dlp/config b/mpv/.config/yt-dlp/config new file mode 100644 index 0000000..04a163f --- /dev/null +++ b/mpv/.config/yt-dlp/config @@ -0,0 +1,3 @@ +--sub-langs=all +--cookies-from-browser=chromium +--embed-subs diff --git a/streamlink/.config/streamlink/config.twitch b/streamlink/.config/streamlink/config.twitch index 53f0235..4f21e14 100644 --- a/streamlink/.config/streamlink/config.twitch +++ b/streamlink/.config/streamlink/config.twitch @@ -1,5 +1,5 @@ player=mpv.exe -player-args=--load-osd-console +player-no-close title=twitch.tv/{author} - {game} - {title} retry-open=1 retry-streams=1 @@ -8,4 +8,4 @@ hls-live-edge=5 stream-segment-threads=4 twitch-disable-hosting twitch-disable-ads -twitch-low-latency \ No newline at end of file +twitch-low-latency diff --git a/wsl/.local/bin/wsl-installer.sh b/wsl/.local/bin/wsl-installer.sh index 23273d0..bdc50d0 100755 --- a/wsl/.local/bin/wsl-installer.sh +++ b/wsl/.local/bin/wsl-installer.sh @@ -20,6 +20,9 @@ mkln.sh "$@" "$HOME"/.gnupg/gpg-agent.conf "${WINHOME}"/AppData/Roaming/gnupg/gp mkln.sh "$@" "$HOME"/.gnupg/scdaemon.conf "${WINHOME}"/AppData/Roaming/gnupg/scdaemon.conf mkln.sh "$@" "$HOME"/.config/wezterm/wezterm.lua "${WINHOME}"/.config/wezterm/wezterm.lua mkln.sh "$@" "$HOME"/.config/alacritty/alacritty.yml "${WINHOME}"/AppData/Roaming/alacritty/alacritty.yml +mkln.sh "$@" "$HOME"/.config/yt-dlp/config "${WINHOME}"/AppData/Roaming/yt-dlp/config +mkln.sh "$@" "$HOME"/.config/mpv/mpv.conf "${WINHOME}"/AppData/Roaming/mpv/mpv.conf +mkln.sh "$@" "$HOME"/.config/streamlink/config.twitch "${WINHOME}"/AppData/Roaming/streamlink/config.twitch for f in "$HOME"/.config/alacritty/*; do case "$f" in -- cgit v1.2.3-70-g09d2