aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-07-26 16:23:17 -0500
committerToby Vincent <tobyv13@gmail.com>2022-07-26 16:24:08 -0500
commitacca0f8e80306f14362d36005c7e7db7449803c4 (patch)
treebdbb0a89352f01faafb7e1619e052150413cef44
parentd612ad9bfd8641142161d26a65300a658123dcb2 (diff)
feat(mpv): set up mpv and streamlink configs
-rwxr-xr-xmpv/.config/mpv/mpv.conf17
-rw-r--r--mpv/.config/yt-dlp/config3
-rw-r--r--streamlink/.config/streamlink/config.twitch4
-rwxr-xr-xwsl/.local/bin/wsl-installer.sh3
4 files changed, 21 insertions, 6 deletions
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