From 879e0a7a1c472b644fd4a55130e6aaa05693690e Mon Sep 17 00:00:00 2001 From: xyz Date: Sat, 17 Jul 2021 09:07:56 -0700 Subject: ytdl, hardware acc --- .config/mpv/mpv.conf | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 .config/mpv/mpv.conf (limited to '.config/mpv') diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf new file mode 100644 index 00000000..8399e494 --- /dev/null +++ b/.config/mpv/mpv.conf @@ -0,0 +1,139 @@ +ytdl-format=bestvideo[height<=?900][fps<=?60][vcodec!=?vp9]+bestaudio/best + +# Example mpv configuration file +# +# Warning: +# +# The commented example options usually do _not_ set the default values. Call +# mpv with --list-options to see the default values for most options. There is +# no builtin or example mpv.conf with all the defaults. +# +# +# Configuration files are read system-wide from /usr/local/etc/mpv.conf +# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override +# system-wide settings, all of which are overridden by the command line. +# +# Configuration file settings and the command line options use the same +# underlying mechanisms. Most options can be put into the configuration file +# by dropping the preceding '--'. See the man page for a complete list of +# options. +# +# Lines starting with '#' are comments and are ignored. +# +# See the CONFIGURATION FILES section in the man page +# for a detailed description of the syntax. +# +# Profiles should be placed at the bottom of the configuration file to ensure +# that settings wanted as defaults are not restricted to specific profiles. + +################## +# video settings # +################## + +# Start in fullscreen mode by default. +#fs=yes + +# force starting with centered window +#geometry=50%:50% + +# don't allow a new window to have a size larger than 90% of the screen size +#autofit-larger=90%x90% + +# Do not close the window on exit. +#keep-open=yes + +# Do not wait with showing the video window until it has loaded. (This will +# resize the window once video is loaded. Also always shows a window with +# audio.) +#force-window=immediate + +# Disable the On Screen Controller (OSC). +#osc=no + +# Keep the player window on top of all other windows. +#ontop=yes + +# Specify high quality video rendering preset (for --vo=gpu only) +# Can cause performance problems with some drivers and GPUs. +#profile=gpu-hq + +# Force video to lock on the display's refresh rate, and change video and audio +# speed to some degree to ensure synchronous playback - can cause problems +# with some drivers and desktop environments. +#video-sync=display-resample + +# Enable hardware decoding if available. Often, this does not work with all +# video outputs, but should work well with default settings on most systems. +# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs +# may or may not help. +hwdec=auto-safe + +################## +# audio settings # +################## + +# Specify default audio device. You can list devices with: --audio-device=help +# The option takes the device string (the stuff between the '...'). +#audio-device=alsa/default + +# Do not filter audio to keep pitch when changing playback speed. +#audio-pitch-correction=no + +# Output 5.1 audio natively, and upmix/downmix audio with a different format. +#audio-channels=5.1 +# Disable any automatic remix, _if_ the audio output accepts the audio format. +# of the currently played file. See caveats mentioned in the manpage. +# (The default is "auto-safe", see manpage.) +#audio-channels=auto + +################## +# other settings # +################## + +# Pretend to be a web browser. Might fix playback with some streaming sites, +# but also will break with shoutcast streams. +#user-agent="Mozilla/5.0" + +# cache settings +# +# Use a large seekable RAM cache even for local input. +#cache=yes +# +# Use extra large RAM cache (needs cache=yes to make it useful). +#demuxer-max-bytes=500M +#demuxer-max-back-bytes=100M +# +# Disable the behavior that the player will pause if the cache goes below a +# certain fill size. +#cache-pause=no +# +# Store cache payload on the hard disk instead of in RAM. (This may negatively +# impact performance unless used for slow input such as network.) +#cache-dir=~/.cache/ +#cache-on-disk=yes + +# Display English subtitles if available. +#slang=en + +# Play Finnish audio if available, fall back to English otherwise. +#alang=fi,en + +# Change subtitle encoding. For Arabic subtitles use 'cp1256'. +# If the file seems to be valid UTF-8, prefer UTF-8. +# (You can add '+' in front of the codepage to force it.) +#sub-codepage=cp1256 + +# You can also include other configuration files. +#include=/path/to/the/file/you/want/to/include + +############ +# Profiles # +############ + +# The options declared as part of profiles override global default settings, +# but only take effect when the profile is active. + +# The following profile can be enabled on the command line with: --profile=eye-cancer + +#[eye-cancer] +#sharpen=5 -- cgit v1.2.3-70-g09d2 From aa05407dff66230d7aaf563b12f21f79fa0bc052 Mon Sep 17 00:00:00 2001 From: xyz Date: Sat, 17 Jul 2021 09:27:00 -0700 Subject: del ytdl-format --- .config/mpv/mpv.conf | 2 -- 1 file changed, 2 deletions(-) (limited to '.config/mpv') diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index 8399e494..a2b5387f 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -1,5 +1,3 @@ -ytdl-format=bestvideo[height<=?900][fps<=?60][vcodec!=?vp9]+bestaudio/best - # Example mpv configuration file # # Warning: -- cgit v1.2.3-70-g09d2 From 953b30d46b0a3236962ea6d6679c29a58c642791 Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 18 Jul 2021 01:47:35 -0700 Subject: sub --- .config/mpv/mpv.conf | 2 ++ 1 file changed, 2 insertions(+) (limited to '.config/mpv') diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index a2b5387f..dfbfc8e3 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -1,3 +1,5 @@ +sub-auto=fuzzy + # Example mpv configuration file # # Warning: -- cgit v1.2.3-70-g09d2 From e29687f4d7aeca453c26316ab15a0815094a07ce Mon Sep 17 00:00:00 2001 From: xyz Date: Wed, 21 Jul 2021 06:57:33 -0700 Subject: edit slang --- .config/mpv/mpv.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/mpv') diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index dfbfc8e3..92cfc780 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -113,7 +113,7 @@ hwdec=auto-safe #cache-on-disk=yes # Display English subtitles if available. -#slang=en +slang=zh-Hans,zh-CN,zh-Hant,zh-SG,zh-TW,zh-HK,en,en-US,en-GB # Play Finnish audio if available, fall back to English otherwise. #alang=fi,en -- cgit v1.2.3-70-g09d2 From 2a9e142352830452c3a7c6ae4a358881026c3181 Mon Sep 17 00:00:00 2001 From: xyz Date: Mon, 2 Aug 2021 10:39:24 -0700 Subject: change yt-dl path --- .config/mpv/mpv.conf | 1 + 1 file changed, 1 insertion(+) (limited to '.config/mpv') diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index 92cfc780..a0159473 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -1,4 +1,5 @@ sub-auto=fuzzy +script-opts=ytdl_hook-ytdl_path=yt-dlp # Example mpv configuration file # -- cgit v1.2.3-70-g09d2 From 3850ed414a82f585b1c003938af946417440f386 Mon Sep 17 00:00:00 2001 From: xyz Date: Wed, 25 Aug 2021 19:11:59 -0700 Subject: mpv conf af=scaletempo2 --- .config/mpv/mpv.conf | 2 ++ 1 file changed, 2 insertions(+) (limited to '.config/mpv') diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index a0159473..67ee3ed8 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -1,5 +1,7 @@ sub-auto=fuzzy script-opts=ytdl_hook-ytdl_path=yt-dlp +#af=rubberband=pitch-scale=0.981818181818181 +af=scaletempo2 # Example mpv configuration file # -- cgit v1.2.3-70-g09d2 From 92ace3ee74db01ed275eed382fff093195b5162f Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 29 Aug 2021 22:09:03 -0700 Subject: mpv config use rubberband instead --- .config/mpv/mpv.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.config/mpv') diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index 67ee3ed8..f9dd01d4 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -1,7 +1,10 @@ sub-auto=fuzzy script-opts=ytdl_hook-ytdl_path=yt-dlp -#af=rubberband=pitch-scale=0.981818181818181 -af=scaletempo2 +# scaletempo and scaletempo2 are super buggy +# I don't understand rubberband tho, steal from: +# https://www.rockyourcode.com/til-how-to-watch-youtube-videos-with-mpv-and-keyboard-shortcuts/ +# https://github.com/mpv-player/mpv/issues/7792 +af=rubberband=pitch-scale=0.981818181818181 # Example mpv configuration file # -- cgit v1.2.3-70-g09d2