2024-07-03 02:32:07 +00:00
|
|
|
|
|
|
|
|
2024-03-16 19:52:37 +00:00
|
|
|
|
2024-06-25 01:48:32 +00:00
|
|
|
# screenshot
|
|
|
|
screenshot-template="%f_%p"
|
|
|
|
screenshot-compression=1..10
|
|
|
|
screenshot-compression-level=10
|
2024-03-16 19:52:37 +00:00
|
|
|
screenshot-format=png
|
2024-06-01 05:00:40 +00:00
|
|
|
screenshot-high-bit-depth=yes
|
2024-06-25 01:48:32 +00:00
|
|
|
screenshot-png-compression=10 # this requires a lot of cpu
|
2024-03-16 19:52:37 +00:00
|
|
|
screenshot-directory=/mnt/Data/mpv-screenshots/
|
|
|
|
|
2024-06-01 05:00:40 +00:00
|
|
|
input-cursor=no
|
|
|
|
# then we gonna need this:
|
|
|
|
# Keybinding to cycle through available audio dubs
|
|
|
|
ALT+a cycle audio
|
|
|
|
# Keybinding to cycle through available subtitles
|
|
|
|
ALT+s cycle sub
|
|
|
|
|
|
|
|
|
|
|
|
# youtube
|
|
|
|
|
|
|
|
ytdl-format=bestvideo[height<=?720p]+bestaudio/best
|
|
|
|
|
|
|
|
#####
|
|
|
|
|
2024-07-03 02:32:07 +00:00
|
|
|
|
2024-09-08 20:06:38 +00:00
|
|
|
#framedrop=yes
|
|
|
|
#display-fps=20
|
|
|
|
#fps=20
|
|
|
|
#vf-add=fps=20:round=near
|
2024-06-01 05:00:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
2024-03-16 19:52:37 +00:00
|
|
|
|
2024-07-03 02:32:07 +00:00
|
|
|
|
2024-03-16 19:52:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#sub-ass-styles='{\\pos(640,10)}'
|
|
|
|
|
|
|
|
Z add sub-delay +0.05
|
|
|
|
z add sub-delay -0.05
|
|
|
|
D add sub-delay -8900
|
|
|
|
|
|
|
|
|
2024-06-01 05:00:40 +00:00
|
|
|
|
2024-03-16 19:52:37 +00:00
|
|
|
|
|
|
|
gpu-api=vulkan
|
|
|
|
|
|
|
|
|
|
|
|
# Set cache to avoid lag
|
2024-06-10 01:02:20 +00:00
|
|
|
cache=yes
|
2024-03-16 19:52:37 +00:00
|
|
|
|
|
|
|
# Limit the amount of data demuxed (read from the file) ahead of playback
|
2024-06-10 01:02:20 +00:00
|
|
|
demuxer-max-bytes=700M
|
2024-06-01 05:00:40 +00:00
|
|
|
|
|
|
|
# shaders
|
2024-07-12 01:08:51 +00:00
|
|
|
#glsl-shader=~~/shaders/Anime4K_Deblur_Original.glsl
|
|
|
|
#glsl-shader=~~/shaders/ravu-r4.hook
|
2024-06-01 05:00:40 +00:00
|
|
|
|
|
|
|
# Set the desired window size
|
|
|
|
window-scale=2.0
|
|
|
|
|
|
|
|
# Force video to upscale to at least 2k
|
2024-07-12 01:08:51 +00:00
|
|
|
#vf=scale=w=2880:h=1620:flags=lanczos
|
2024-06-01 05:00:40 +00:00
|
|
|
|
|
|
|
# Set the desired window size (optional, adjust as needed)
|
2024-07-03 02:32:07 +00:00
|
|
|
geometry=2880x1620
|
2024-03-16 19:52:37 +00:00
|
|
|
|
2024-06-01 05:00:40 +00:00
|
|
|
# Enable video upscaling
|
2024-07-12 01:08:51 +00:00
|
|
|
#scale=ewa_lanczos
|
2024-03-16 19:52:37 +00:00
|
|
|
|
2024-06-01 05:00:40 +00:00
|
|
|
# Enable higher quality scaling when upscaling
|
2024-07-12 01:08:51 +00:00
|
|
|
#cscale=ewa_lanczos
|
2024-03-16 19:52:37 +00:00
|
|
|
|
2024-06-01 05:00:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# audio
|
|
|
|
# audio normalization
|
|
|
|
#af=lavfi=[dynaudnorm=f=75:g=25:p=0.55]
|
|
|
|
#lavfi=[loudnorm=I=-22:TP=-1.5:LRA=2]
|
|
|
|
|
|
|
|
# BGR
|
2024-06-10 01:02:20 +00:00
|
|
|
|
2024-07-03 02:32:07 +00:00
|
|
|
sub-font="Calex Code JP"
|
|
|
|
sub-antialiasing=yes
|
|
|
|
sub-text-outline=0.5
|
2024-06-01 05:00:40 +00:00
|
|
|
sub-font-size=35
|
|
|
|
sub-border-size=1.5
|
|
|
|
sub-color="#ffffff"
|
|
|
|
sub-border-color="#000000"
|
|
|
|
sub-align-y=24
|
2024-07-03 02:32:07 +00:00
|
|
|
sub-ass-override=force
|
|
|
|
sub-ass-force-style=FontName='Calex Code JP',FontSize=48,Outline=0.25,PrimaryColour=&H00FFFFFF&,OutlineColour=&H00000000&
|
|
|
|
|
2024-06-10 01:02:20 +00:00
|
|
|
|
2024-06-25 01:48:32 +00:00
|
|
|
|
2024-07-03 02:32:07 +00:00
|
|
|
|
|
|
|
|
2024-07-12 01:08:51 +00:00
|
|
|
#
|
2024-07-03 02:32:07 +00:00
|
|
|
|
|
|
|
cache-size=700000
|
|
|
|
cache-initial=20000
|
|
|
|
cache-pause=yes
|
|
|
|
demuxer-max-bytes=200000KiB
|
|
|
|
demuxer-readahead-secs=30
|
|
|
|
cache-backend=time
|
|
|
|
cache-time=300
|
|
|
|
cache=yes
|
|
|
|
cache-default=yes
|
|
|
|
#cache-seek-min=100
|
|
|
|
#cache-seek-max=1000
|
|
|
|
#cache-backbuffer=300
|
|
|
|
cache-size=1G!
|
|
|
|
cache-initial=50M
|
|
|
|
cache-min=20M
|
|
|
|
cache-seek-min=yes
|
|
|
|
cache-backend=yes
|
|
|
|
|
|
|
|
hwdec-codecs=all
|
|
|
|
vd-lavc-threads=32 # Adjust the number of threads based on your CPU
|
|
|
|
ad-lavc-threads=32
|
2024-07-12 01:08:51 +00:00
|
|
|
#framedrop=yes
|
|
|
|
|
|
|
|
|
|
|
|
# im a bit drowsy when the frame gets high
|
|
|
|
vf=framestep=4
|
|
|
|
|
|
|
|
|
|
|
|
# Frame skipping
|
|
|
|
framedrop=vo
|
|
|
|
|
|
|
|
# Display resample
|
|
|
|
video-sync=display-resample
|
|
|
|
|
|
|
|
# Adjust brightness and contrast
|
|
|
|
brightness=-10
|
|
|
|
contrast=-10
|
|
|
|
|
|
|
|
# Enable V-Sync
|
|
|
|
vsync=yes
|
|
|
|
|
|
|
|
# Enable interpolation
|
|
|
|
interpolation=yes
|
|
|
|
tscale=oversample
|
|
|
|
|
|
|
|
# Force 50 Hz refresh rate
|
|
|
|
refresh=50
|
2024-09-08 20:06:38 +00:00
|
|
|
|
|
|
|
|
2024-07-12 01:08:51 +00:00
|
|
|
|
2024-07-12 02:01:12 +00:00
|
|
|
# Enable audio buffering
|
2024-09-08 20:06:38 +00:00
|
|
|
audio-buffer=1000ms
|
2024-07-12 02:32:01 +00:00
|
|
|
# dont tie audio to video fps
|
2024-07-12 02:01:12 +00:00
|
|
|
no-sync=yes
|
2024-07-12 02:32:01 +00:00
|
|
|
audio-speed=1.0
|
|
|
|
async=yes
|
2024-09-08 20:06:38 +00:00
|
|
|
audio-threads=4
|
|
|
|
|
|
|
|
audio-pitch-correction=yes
|
|
|
|
vf=setpts=PTS/1
|
|
|
|
|
|
|
|
|
|
|
|
# 日本語
|
|
|
|
sub-lang=jpn,ja,jp,japanese,JA,JP,JPN,Japanese
|
|
|
|
sub-auto=no
|
|
|
|
audio-lang=jpn,ja,jp,japanese,JA,JP,JPN,Japanese
|
|
|
|
alang=jpn,ja,jp,japanese,JA,JP,JPN,Japanese
|
|
|
|
alang=ja,jp,jpn,japanese
|
|
|
|
slang=ja,jp,jpn,japanese
|
|
|
|
no-subtitles=no-japanese
|
|
|
|
no-audio=no-japanese
|
|
|
|
sub-forced-only=yes
|
|
|
|
# ------------------------------------------------
|
|
|
|
|
|
|
|
# test with hardware acceleration
|
|
|
|
ad=lavc:hwaccel=auto # faster audio decoding
|
|
|
|
vd=lavc:hwaccel=auto # video
|
|
|
|
vd-threads=32
|
|
|
|
cache-default=512
|
|
|
|
cache-initial=256
|
|
|
|
cache-seek=yes
|
|
|
|
cache-min=256
|
|
|
|
|
|
|
|
|
|
|
|
# increase volumn
|
|
|
|
script-opts=increase-volum.lua
|
|
|
|
|
|
|
|
# less bass
|
|
|
|
af=scaletempo=f=20:b=1.1,l=1.2 # Reduce bass, boost treble
|
|
|
|
af=add=haas # Enhance stereo imaging
|
|
|
|
af=lavcac # Apply loudness compensation
|
|
|
|
|
|
|
|
eq-pre=f=50:gw=1:b=-5 # Reduce low rumble
|
|
|
|
eq-pre=f=200:gw=1:b=-3 # Reduce mid-bass
|
|
|
|
eq-pre=f=4000:gw=1:b=1 # Boost high-mids
|
|
|
|
eq-pre=f=8000:gw=1:b=2 # Boost treble
|
|
|
|
# ---------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fallback-sub-folder=/home/hashirama/Downloads/bleach/subs/
|
|
|
|
|
|
|
|
|
|
|
|
speed=1.0
|