2024-03-16 19:52:37 +00:00
|
|
|
sub-font-size=30
|
|
|
|
sub-pos=13
|
2024-07-03 02:32:07 +00:00
|
|
|
|
|
|
|
|
2024-06-01 05:00:40 +00:00
|
|
|
sub-font="Calex Code JP"
|
2024-03-16 19:52:37 +00:00
|
|
|
sub-antialiasing=yes
|
|
|
|
sub-text-outline=0.5
|
|
|
|
|
|
|
|
ass-use-margins=yes
|
|
|
|
ass-top-margin=50
|
|
|
|
ass-bottom-margin=50
|
|
|
|
ass-left-margin=50
|
|
|
|
ass-right-margin=50
|
|
|
|
|
|
|
|
|
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-07-12 01:08:51 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
############## end of "drowsy" config.
|
|
|
|
|
2024-07-12 02:01:12 +00:00
|
|
|
# Enable audio buffering
|
|
|
|
audio-buffer=100ms
|
|
|
|
# dont tie audio to video fps (low fps can make the audio stutter)
|
|
|
|
no-sync=yes
|
|
|
|
|