設定(mpv)
預設設定檔儲存在
%APPDATA%/mpv/
~/.config/mpv/
也可在和mpv相同目錄底下新增portable_config覆蓋預設設定
底下會有
fonts/
用於字母的字體檔案
scripts/
擴充功能(mpv)
shaders/
shader
script-opts
儲存擴充功能的額外設定用的資料夾
mpv.conf
通用使用者設定
input.conf
按鍵設定
詳細設定
https://github.com/mpv-player/mpv/blob/master/DOCS/man/mpv.rst#configuration-files
可新增/開啟~/.config/mpv/mpv.conf進行修改
在~/.config/mpv/doc內有提供範例檔案
code:mpv.conf
vo=gpu
profile=gpu-hq
glsl-shaders="~~/shaders/LumaSharpenHook.glsl;~~/shaders/SSimSuperRes.glsl;"
glsl-shaders-append="~~/shaders/ravu-lite-r3.hook"
gpu-api=vulkan
scale=ewa_lanczossharp
cscale=ewa_robidouxsharp
dscale=ewa_robidouxsharp
video-sync=display-resample
interpolation=yes
tscale=oversample
dither-depth=auto
hr-seek = yes
deband
減少色帶現象
scale
影片尺寸與螢幕顯示尺寸不同時使用的放大方式
dither
抖動
刻意加上雜訊濾鏡,藉此消除視覺瑕疵
音量標準化
Audio normalization - Wikipedia
2018-05-20 Audio Loudness Normalization With FFmpeg
code:mpv.conf
# 音量標準化 改善人聲過小或音量不均時的狀況
# https://github.com/mpv-player/mpv/issues/3979
# https://github.com/mpv-player/mpv/issues/6563
# 解釋 https://superuser.com/questions/323119/how-can-i-normalize-audio-using-ffmpeg
# 下面兩者擇一:
# af=lavfi=dynaudnorm=g=5:f=250:r=0.9:p=0.5
af = lavfi=loudnorm=I=-16:TP=-3:LRA=4
# DYNAUDNORM: https://ffmpeg.org/ffmpeg-filters.html#dynaudnorm
#
# 動態音量標準化,這套過濾器會將聲音輸入添增至某一目標大小(例如 0dBFS)。
# 並在以往"單純"的標準化演算法之上,此動態音量標準化會再__動態地__
# 重新調整聲音輸入的增益係數。使得較為"安靜"的部份能獲得更多的增益,
# 同時讓較為"響亮"的部份免於互調失真或削波失真。換句話說,動態音量標準化
# 可以讓聲音安靜與響亮的部份"均勻化",讓整體聲音有同樣的大小。然而要注
# 意的是,動態音量標準化__並不會__套用"動態範圍壓縮",聲音檔案的__每個部份__
# 都會保留 100% 的動態範圍。
# LOUDNORM: https://ffmpeg.org/ffmpeg-filters.html#loudnorm
#
# 使用 EBU R128 響度測量進行標準化,有動態標準化與線性標準化模式。
# 支援 1-pass (可用於串流與檔案) 和 2-pass (僅限檔案) 模式。
resample
Mathematically Evaluating mpv's Resampling Algorithms
shader
User Scripts · mpv-player/mpv Wiki · GitHub
Anime4K
GitHub - bloc97/Anime4K: A High-Quality Real Time Upscaler for Anime Video
GitHub - bjin/mpv-prescalers: prescalers for mpv, as user shaders
ArtCNN_C4F32/ArtCNN_C4F16
ArtCNN_C4F32_Chroma
Artoriuz/glsl-chroma-from-luma-prediction: CfL as a GLSL shader
設定
mpv