mpv 詳細配置文件

mpv 配置文件 基礎使用
雖然個人是因為命令行和占用資源小選擇使用mpv,其實他還是一個高畫質播放器。說起來畫質實在是很微不足道的東西啊,對于我這種主要看動畫片的人來說。普通視頻網站上的清晰度,youtube 480p以上就能接受的,相對來說更需要音質而不是畫質。音質和畫質都需要設備支持。但是音質主要還是耳機這方面吧。另一方面視頻網站給的音頻碼率也都比較小,所以實際上并沒有太高要求。

? 大屏幕才更需要高畫質,放大以后畫質的缺陷就比較明顯,一般的筆記本屏幕我覺得就無所謂。

01.配置文件路徑

windows下默認的配置文件位置是 %APPDATA%/mpv/mpv.conf

如果需要按用戶進行區分,那么可以用C:\users\USERNAME\AppData\Roaming\mpv\mpv.conf這個目錄

另外還有一種就是:

也可以通過環境變量的方式進行指定,相對來說,還是直接在mpv目錄下創建比較方便。

02.配置文件

?

主要進行了如下的配置

  • 記住上次播放位置

  • 內存緩存

  • 使用硬解

  • 一些畫質增強的選項

參考了vcb論壇分享的配置文件http://bbs.vcb-s.com/thread-2730-1-1.html,不過我把后面按分辨率加載的配置給注釋掉了,如果要用的話需要安裝一個autoprofile.lua的腳本

因為之前一直用potplayer,畫質方面其實沒有太高要求,目前發現有一個不方便的點就是i快捷鍵可以顯示很多狀態信息,原先用potplayer是tab鍵。mpv不知道怎么調成有各種顏色的信息,因為白色相對于視頻的顏色辨識度相對來說比較低。

實測,從任務管理器中看到這個配置下mpv 的gpu消耗是potplayer 默認配置的3倍。看一個720p的視頻,我的老式筆記本的gtx960m就占用20%左右

#==============================配置文件優先級==============================
# 高優先級
priority=high



#==============================使用習慣相關==============================
# 如果需要記憶上次播放的位置,去掉下面這行的注釋。不能與SVP共存,使用SVP必須把此項設為no。
save-position-on-quit
# 注意,需要mpv.conf所在文件夾有用戶寫入權限,或者用watch-later-directory=路徑來手動指定。
# mpv.conf放APPDATA里是不會有問題的,有問題的是放mpv安裝目錄但mpv安裝目錄本身需要管理員權限

# 播放結束后不退出
keep-open=yes

#始終處于最前階段。配合ontop-playback.lua可以使得暫停之后解除保持最前端。
ontop

#打開的默認音量,范圍-1-1000,默認值100
volume=100 

#最大音量設置,范圍100-1000,默認130
--volume-max=130

#no-border   消除播放器邊框

autofit-larger=100%x95%                 # resize window in case it's larger than W%xH% of the screen

cursor-autohide-fs-only                 # 只在全屏模式隱藏鼠標

cursor-autohide=1000                    # 1秒后自動隱藏鼠標

# 想看log就取消這行的注釋。mpv.log會保存到桌面
#log-file="~~desktop/mpv.log"

msg-module                              # prepend module name to log messages
msg-color                               # color log messages on terminal
# term-osd-bar                            # display a progress bar on the terminal
# pause                                   # no autoplay



#########
# Cache #
#########

cache=yes
demuxer-max-bytes=400MiB
demuxer-max-back-bytes=150MiB


#==============================畫質相關選項==============================

# 軟解
hwdec=no

profile=gpu-hq

### gpu-api的選擇?
## macOS:  只有opengl可選
## Linux:  vulkan或者opengl,推薦vulkan
## Windows:vulkan、d3d11及opengl都可選。三者理論上vulkan性能最好,但依然推薦d3d11。
## 通過d3d11 api,目前mpv已支持windows的10 bit輸出和HDR colorspace的設定。
## HDR metadata pass on正在跟進,獨占全屏正在跟進。
#----------------------------------------
### 使用d3d11 (mpv對于windows的默認。顯卡注意開自適應電源模式)
gpu-api=d3d11
# 通過d3d11-adapter可以設定mpv使用哪塊顯卡。詳見文檔:https://mpv.io/manual/master/#options-d3d11-adapter

# may help with 4K videos
vd-lavc-dr=yes
opengl-pbo=yes

# 如果要插其他視頻濾鏡,比如deint或者SVP,就要去掉下面這行的注釋
# hr-seek-framedrop=no
# "ReClock" replacement

video-sync=display-resample
video-sync-max-video-change=5

# smooth motion
interpolation

temporal-dither
dither-size-fruit=7
# 默認6。會稍微延緩mpv啟動
# 有興趣也可以測試下error diffusion算法



# interpolation使用的算法。詳見https://mpv.io/manual/master/#options-tscale
# 一些討論見 https://github.com/mpv-player/mpv/issues/2685
# 目前的默認為mitchell。總體而言mitchell更平滑(當然不好和SVP插幀比),但會有模糊。oversample沒有模糊,但不平滑(基本還原24幀的樣子)
# 具體選擇哪個請依據自身需求來
tscale=oversample


icc-profile-auto  # 啟用校色
icc-3dlut-size=256x256x256
# 默認64x64x64。會稍微延緩mpv啟動

# 在mpv.conf所在目錄下建一個 shaders_cache 空文件夾,以存放編譯好的GPU shaders,加速啟動。
# 注意!如果不放APPDATA下,確保該文件夾有用戶寫入權限。
gpu-shader-cache-dir="~~/shaders_cache"


# 為了應對VFR,禁用刷新率切換
# 下面這個腳本選項主要是個autospeedwin(自動調節顯示器的刷新率)用的
#script-opts=autospeed-nircmd=true,autospeed-speed=false,autospeed-nircmdc="C:\nircmd-x64\nircmdc.exe",autospeed-monitor=0,autospeed-dwidth=1920,autospeed-dheight=1080,autospeed-bdepth=32,autospeed-rates="23;24;25;29;30;50;59;60",autospeed-exitrate=60,autospeed-minspeed=0.9,autospeed-maxspeed=1.1,autospeed-osd=true,autospeed-osdtime=10,autospeed-osdkey=y,autospeed-estfps=false,autospeed-spause=4
# 注意需要自己下載nircmdc,然后在autospeed-nircmdc里給出絕對路徑。或者把nircmdc.exe所在位置加到PATH里
# autospeed-monitor=0是主顯示器,1、2、3……是其他副顯示器
# dwidth dheight bdepth 寬高和位深
# autospeed-rates="23;24;25;29;30;50;59;60",autospeed-exitrate=60 顯示器支持的刷新率和退出時應返回的刷新率。23指23.976
# autospeed-spause=4 自動暫停的時間,秒為單位


#==============================音頻相關選項==============================


# WASAPI音頻輸出(Windows)
# 其他系統請相應更改音頻輸出方式
ao=wasapi
# 需要獨占音頻則去掉注釋。開啟會使得其他程序沒聲音。
#audio-exclusive=yes

# 如果雙聲道系統播放多聲道影片時有的聲道聲音沒出現,嘗試強制設定為雙聲道
#audio-channels=stereo
# 規格化:
#audio-normalize-downmix=yes
# 多聲道音軌downmix成雙聲道時,如果覺得背景音過響,角色臺詞聲音小,嘗試看看這個:https://github.com/mpv-player/mpv/issues/6563

audio-file-auto=fuzzy
#audio-file-paths=audio
alang=jpn,ja,eng,en
#aid=1
# 暫時無法根據其他的metadata選擇軌道,mpv又默認偏好外掛軌道,常常選到我不想要的音軌
# 有類似情況的話就用aid=1始終選擇第一條音軌再自己手動調吧
# 設計者也是這么推薦的:https://github.com/mpv-player/mpv/issues/967#issuecomment-94744964


#==============================字幕相關選項==============================
sub-auto=fuzzy
sub-file-paths=subs
slang=chi,zh-CN,sc,chs
#sid=1
# 字幕顯示出來和xy-subfilter不一樣?嘗試啟用下面的設置
# 關乎字幕是否隨視頻拉伸
#sub-ass-vsfilter-aspect-compat=no
# 關乎字幕模糊的設定
#sub-ass-vsfilter-blur-compat=no
# 即使都用上了也不一致?那不是這兩個選項的問題,重新注釋掉這兩行,回帖問吧。(多半是vsfilter/libass其中一個的bug)

# 根據視頻是否是HDR以及視頻aspect ratio決定是否啟用blend-subtitles的profile
# 目前HDR->SDR建議關閉blend-subtitles,見https://github.com/mpv-player/mpv/issues/6368
# 如果hdr-compute-peak將來繼續改進可能可以兼容blend-subtitles
[HDR_or_21:9]
profile-desc=cond:(p["video-params/primaries"]=="bt.2020" or p["video-params/aspect"]>=2.0)
blend-subtitles=no
# 使字幕輸出在黑邊上
sub-ass-force-margins=yes

[SDR_and_16:9]
profile-desc=cond:(p["video-params/primaries"]~="bt.2020" and p["video-params/aspect"]<2.0)
blend-subtitles=yes
sub-ass-force-margins=no

#==============================截屏相關選項==============================
screenshot-format=png
screenshot-tag-colorspace=yes
screenshot-high-bit-depth=yes

# --screenshot-directory           String (default: ) [file]
#  --screenshot-format              Choices: jpg jpeg png webp (default: jpg)
#  --screenshot-high-bit-depth      Flag (default: yes)
#  --screenshot-jpeg-quality        Integer (0 to 100) (default: 90)
#  --screenshot-jpeg-source-chroma  Flag (default: yes)
#  --screenshot-png-compression     Integer (0 to 9) (default: 7)
#  --screenshot-png-filter          Integer (0 to 5) (default: 5)
#  --screenshot-tag-colorspace      Flag (default: no)
#  --screenshot-template            String (default: mpv-shot%n)
#  --screenshot-webp-compression    Integer (0 to 6) (default: 4)
#  --screenshot-webp-lossless       Flag (default: no)
#  --screenshot-webp-quality        Integer (0 to 100) (default: 75)


#=============================按分辨率配置相關選項==============================
## 以下根據分辨率和視頻幀率設置不同的升/降階算法,以期獲得在能不掉幀的情況下達到最好的效果

## 創建一個基于gpu-hq,用于將一些參數回歸到默認的profile:
# [high_quality]
# profile=gpu-hq
# ## !!! 使用  fbo-format=rgba16hf  可能能提高效率
# fbo-format=rgba32f
# ## !!! 使用  fbo-format=rgba16hf  可能能提高效率
# vd-lavc-threads=0

# # 1080 * 1.414213 / 4 = 381.8
# [low] # 240p 360p,啟用兩次倍增以達到4倍.
# profile-desc=cond:(p["video-params/w"]<=678 and p["video-params/h"]<=381)
# profile=high_quality
# glsl-shaders-clr
# glsl-shaders-append="~~/shaders/KrigBilateral.glsl"
# glsl-shaders-append="~~/shaders/nnedi3-nns32-win8x4.hook"
# glsl-shaders-append="~~/shaders/nnedi3-nns32-win8x4.hook"

# # 1080 / 16 * 9 = 607.5
# [SD] # 480p 576p
# profile-desc=cond:((p["video-params/w"]<1080 and p["video-params/h"]<608) and (p["video-params/w"]>678 or p["video-params/h"]>381))
# profile=high_quality
# glsl-shaders-clr
# glsl-shaders-append="~~/shaders/KrigBilateral.glsl"
# glsl-shaders-append="~~/shaders/nnedi3-nns64-win8x4.hook"

# # 1080 * 1.414213 / 2 = 763.7
# [HD30] # 640p 720p 30fps
# profile-desc=cond:((p["video-params/w"]<1358 and p["video-params/h"]<764) and (p["video-params/w"]>=1080 or p["video-params/h"]>=608) and p["estimated-vf-fps"]<31)
# profile=high_quality
# glsl-shaders-clr
# glsl-shaders-append="~~/shaders/KrigBilateral.glsl"
# glsl-shaders-append="~~/shaders/nnedi3-nns32-win8x4.hook"

# [HD60] # 640p 720p 60fps
# profile-desc=cond:((p["video-params/w"]<1358 and p["video-params/h"]<764) and (p["video-params/w"]>=1080 or p["video-params/h"]>=608) and p["estimated-vf-fps"]>=31)
# profile=high_quality
# glsl-shaders-clr
# glsl-shaders-append="~~/shaders/KrigBilateral.glsl"
# glsl-shaders-append="~~/shaders/SSimSuperRes.glsl"
# # SSimSuperRes推薦關閉sigmoid-upscaling。所以在其他不用SSSR的profile中都要重新設為yes(通過重新設定一遍profile=gpu-hq)
# sigmoid-upscaling=no

# [KrigBilateral] # 另一個profile的例子
# profile=high_quality
# glsl-shaders-clr
# glsl-shaders-append="~~/shaders/KrigBilateral.glsl"

# [FHD] # 1080p
# profile-desc=cond:((p["video-params/w"]<=1920 and p["video-params/h"]<=1080) and (p["video-params/w"]>=1358 or p["video-params/h"]>=764))
# profile=KrigBilateral

# [2K30] # 1440p
# profile-desc=cond:((p["video-params/w"]<=2560 and p["video-params/h"]<=1440) and (p["video-params/w"]>1920 or p["video-params/h"]>1080) and p["estimated-vf-fps"]<31)
# profile=KrigBilateral

# # 4K videos
# [4K30] # low fps: use SSIM to downscale
# profile-desc=cond:((p["video-params/w"]>2560 or p["video-params/h"]>1440) and p["estimated-vf-fps"]<31)
# profile=high_quality
# glsl-shaders-clr
# glsl-shaders-append="~~/shaders/SSimDownscaler.glsl"
# # SSimDownscaler要求。需要在其他profile中重新設為yes(通過重新設定一遍profile=gpu-hq)
# linear-downscaling=no

# [UHD60] # high fps: use no glsl-shaders
# profile-desc=cond:((p["video-params/w"]>1920 or p["video-params/h"]>1080) and p["estimated-vf-fps"]>=31)
# glsl-shaders-clr
# # 如果是1080p屏幕播放4K,可以使用https://gist.github.com/bjin/15f307e7a1bdb55842bbb663ee1950ed
# # glsl-shaders-append="~~/shaders/acme-0.5x.hook"
# # 可以繞過chroma upscaling,并且把之后顏色轉換的計算量從4K級降到1080p級。
# fbo-format=auto
# vd-lavc-threads=16
# # 4K HEVC HDR 60fps軟解壓力很大,默認vd-lavc-threads=0自動識別邏輯核數,分配核數+1個線程,但往往不夠,不能將CPU性能壓榨到極限,強行分配更多線程數以提高軟解性能。
# # 或者直接開硬解,如果顯卡支持的話
# hwdec=yes

? 視頻選項方面的選項我不是很熟悉,所以參考了vcb-s壓制組的科普文檔,下面把原文貼上來

https://vcb-s.com/archives/7594

建議添加的配置命令
mpv 的默認渲染設置非常保守。如果你的顯卡性能不是太差(近幾年的集成顯卡一般都已足夠),建議啟用一套預設的高質量渲染設置,方法是在 mpv.conf 中寫上這么一行:

profile=gpu-hq

注意,使用高質量渲染設置可能會大大降低筆記本的電池續航時間,在近些年的高分辨率屏幕上(例如“視網膜顯示屏”的 MacBook)尤其明顯。

mpv 默認不對視頻進行色彩管理。即使你沒有使用校色儀對屏幕進行過校色,對于原生色域接近某一標準色域(如 sRGB 或 DCI-P3 D65)的屏幕來說,開啟色彩管理仍然可以獲得更準確的顏色,因此,我建議始終將色彩管理開啟:

icc-profile-auto

設置將字幕渲染到視頻源分辨率并隨視頻一起縮放并進行色彩管理,這樣可以保證字幕的分辨率與畫面始終一致(避免“畫面模糊字幕高清”的情況),并保證字幕中“屏幕字”的顏色與畫面一致:

blend-subtitles=video

如果你有中高端獨立顯卡,想進一步提高畫面拉伸質量,可以將畫面拉伸算法更改為 EWA Lanczos(即 madVR 中所謂 Jinc):

scale=ewa_lanczossharp

在很多時候,我們的顯示器刷新率不是片源幀率的整數倍(例如顯示器刷新率通常為 60 Hz 而動畫通常為 23.976 fps),此時在默認設置下會因每一幀實際在屏幕上的呈現時間不均等而造成卡頓感(俗稱 3:2 pull down judder)。因此,建議啟用 interpolation 來消除這個問題(此功能非常類似于 madVR 中的 smooth motion):

video-sync=display-resample
interpolation
tscale=oversample

以上是我認為具有普適性的一些選項。其他可以定制的地方還有很多,具體可以參考官方的文檔對于上百個設置的解釋說明。此外,mpv 提供了第三方用戶腳本支持,可以實現更多的功能(例如設置 profile 針對不同片源類型進行不同的處理),以及第三方 user shader 來實現更多的畫面處理(例如 NNEDI3、RAVU 等等)。

相比在圖形界面中用鼠標勾勾點點,手寫配置文件的方式固然不太符合普通用戶的習慣,但是“一旦接受了這種設定”,你會逐漸體會到命令行的便利與靈活。

關于 mpv 的配置方法可以另外參考:

VCB-Studio 論壇上 cczzhh 的帖子,附有詳細的注釋和說明

mpv 開發者 hassn 的個人 mpv 配置

mpv 開發者 Argon- 的個人 mpv 配置

補充
關于雙顯卡筆記本的設置
如果你使用的是集成顯卡 + NVIDIA 獨立顯卡的 Windows 筆記本,默認設置下 mpv 只會調用集成顯卡來進行渲染計算,性能有限。如果你希望利用高性能獨立顯卡,則需要到 NVIDIA 控制面板 – 3D 設置 – 管理 3D 設置 – 程序設置下,添加 mpv.exe,并將首選圖形處理器改為“高性能 NVIDIA 處理器”,并按照上面一樣將電源管理模式改為“自適應”。

如果你使用的是雙顯卡的 MacBook Pro,可以通過在配置文件中增加這樣一行來強制 mpv 使用獨立顯卡:

cocoa-force-dedicated-gpu=yes

IINA 使用 mpv 配置文件
IINA 可以直接讀取 mpv 的配置文件來共享設置,在偏好設置 – 高級選項卡底部勾選“使用配置目錄”即可,默認的 ~/.config/mpv 即為 mpv 的默認配置文件所在目錄。值得注意的是,小部分 mpv 設置是對 IINA 不起作用的,詳見這里。

你也可以直接在 IINA 的高級選項卡下直接添加 mpv 的設置,只要將上文提到的設置里每一行 = 左右兩邊的內容分別填進“選項”和“值”中即可。

下面貼一份mpv的一位開發者Argon-個人使用的配置作為參考

# vim: syntax=config


###########
# General #
###########

input-ipc-server=/tmp/mpvsocket         # listen for IPC on this socket
#load-stats-overlay=no                   # use local stats.lua
#save-position-on-quit                  # handled by a script

no-border                               # no window title bar
msg-module                              # prepend module name to log messages
msg-color                               # color log messages on terminal
term-osd-bar                            # display a progress bar on the terminal
use-filedir-conf                        # look for additional config files in the directory of the opened file
pause                                   # no autoplay
keep-open                               # keep the player open when a file's end is reached
autofit-larger=100%x95%                 # resize window in case it's larger than W%xH% of the screen
cursor-autohide-fs-only                 # don't autohide the cursor in window mode, only fullscreen
input-media-keys=no                     # enable/disable OSX media keys
cursor-autohide=1000                    # autohide the curser after 1s
prefetch-playlist=yes
force-seekable=yes

screenshot-format=png
screenshot-png-compression=8
screenshot-template='~/Desktop/%F (%P) %n'

hls-bitrate=max                         # use max quality for HLS streams

[ytdl-desktop]
profile-desc=cond:dedicated_gpu()
ytdl-format=bestvideo[height<=?2160]+bestaudio/best

[ytdl-laptop]
profile-desc=cond:not dedicated_gpu()
ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9][protocol!=http_dash_segments]+bestaudio/best

[default]


#########
# Cache #
#########

cache=yes
demuxer-max-bytes=400MiB
demuxer-max-back-bytes=150MiB


#############
# OSD / OSC #
#############

osd-level=1                             # enable osd and display --osd-status-msg on interaction
osd-duration=2500                       # hide the osd after x ms
osd-status-msg='${time-pos} / ${duration}${?percent-pos: (${percent-pos}%)}${?frame-drop-count:${!frame-drop-count==0: Dropped: ${frame-drop-count}}}\n${?chapter:Chapter: ${chapter}}'

osd-font='Source Sans Pro'
osd-font-size=32
osd-color='#CCFFFFFF'                   # ARGB format
osd-border-color='#DD322640'            # ARGB format
#osd-shadow-offset=1                    # pixel width for osd text and progress bar
osd-bar-align-y=0                       # progress bar y alignment (-1 top, 0 centered, 1 bottom)
osd-border-size=2                       # size for osd text and progress bar
osd-bar-h=2                             # height of osd bar as a fractional percentage of your screen height
osd-bar-w=60                            # width of " " "


#############
# Subtitles #
#############

demuxer-mkv-subtitle-preroll=yes        # try to show embedded subs when seeking even when no index information is present
demuxer-mkv-subtitle-preroll-secs=2

sub-auto=fuzzy                          # external subs don't have to match the file name exactly to autoload
sub-file-paths-append=ass               # search for external subs in these relative subdirectories
sub-file-paths-append=srt
sub-file-paths-append=sub
sub-file-paths-append=subs
sub-file-paths-append=subtitles

embeddedfonts=yes                       # use embedded fonts for SSA/ASS subs
sub-fix-timing=no                       # do not try to fix gaps (which might make it worse in some cases)
sub-ass-force-style=Kerning=yes         # allows you to override style parameters of ASS scripts
sub-use-margins
sub-ass-force-margins

# the following options only apply to subtitles without own styling (i.e. not ASS but e.g. SRT)
sub-font="Source Sans Pro Semibold"
sub-font-size=36
sub-color="#FFFFFFFF"
sub-border-color="#FF262626"
sub-border-size=3.2
sub-shadow-offset=1
sub-shadow-color="#33000000"
sub-spacing=0.5


#############
# Languages #
#############

slang=enm,en,eng,de,deu,ger             # automatically select these subtitles (decreasing priority)
alang=ja,jp,jpn,en,eng,de,deu,ger       # automatically select these audio tracks (decreasing priority)


#########
# Audio #
#########

audio-file-auto=fuzzy                   # external audio doesn't has to match the file name exactly to autoload
audio-pitch-correction=yes              # automatically insert scaletempo when playing with higher speed
volume-max=200                          # maximum volume in %, everything above 100 results in amplification
volume=100                              # default volume, 100 = unchanged


################
# Video Output #
################

# Active VO options are set conditionally and require my slightly modified 
# `scripts/auto-profiles.lua` as well as `scripts/auto-profiles-functions.lua`. 
# More information about auto-profiles in general: https://github.com/wiiaboo/mpv-scripts/blob/master/auto-profiles.lua
# on_battery() and dedicated_gpu() are my own functions in `scripts/auto-profiles-functions.lua`
# and might need to be adjusted for your system/setup.

# Defaults for all profiles
tscale=oversample                      # [sharp] oversample <-> linear (triangle) <-> catmull_rom <-> mitchell <-> gaussian <-> bicubic [smooth]
opengl-early-flush=no
opengl-pbo=no                          # "yes" is currently bugged: https://github.com/mpv-player/mpv/issues/4988
icc-profile-auto
icc-contrast=1000                      # silence some warning because the profile is bad
hwdec=no

[high-quality]
profile-desc=cond:is_high(get('width', 0), get('height', 0), get('estimated-vf-fps', 0))
# hanning with this radius is broken on OSX due to OpenGL driver bug
#scale=ewa_hanning
#scale-radius=3.2383154841662362
scale=ewa_lanczossharp
cscale=ewa_lanczossoft
dscale=mitchell
scale-antiring=0
cscale-antiring=0
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes
#glsl-shaders-append="~/.mpv/shaders/KrigBilateral.glsl"
glsl-shaders-append="~/.mpv/shaders/ravu-lite-r4.hook"
glsl-shaders-append="~/.mpv/shaders/ravu-lite-r4.hook"
glsl-shaders-append="~/.mpv/shaders/ravu-lite-r4.hook"

[mid-quality]
profile-desc=cond:is_mid(get('width', 0), get('height', 0), get('estimated-vf-fps', 0))
scale=spline36
cscale=bicubic
dscale=mitchell
scale-antiring=1.0
cscale-antiring=1.0
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes
glsl-shaders-set=""

[low-quality]
profile-desc=cond:is_low(get('width', 0), get('height', 0), get('estimated-vf-fps', 0))
scale=bilinear
cscale=bilinear
dscale=bilinear
scale-antiring=0
cscale-antiring=0
dither-depth=no
correct-downscaling=no
sigmoid-upscaling=no
deband=no
glsl-shaders-set=""

[4K-lavc-threads]
profile-desc=cond:get('width', -math.huge) >= 3840
vd-lavc-threads=32

[4K-lavc-threads-inverted]
profile-desc=cond:get('width', math.huge) < 3840
vd-lavc-threads=0


###################################
# Protocol Specific Configuration #
###################################

[protocol.https]
cache=yes
user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:57.0) Gecko/20100101 Firefox/58.0'

[protocol.http]
cache=yes
user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:57.0) Gecko/20100101 Firefox/58.0'
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 230,578評論 6 544
  • 序言:濱河連續發生了三起死亡事件,死亡現場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發現死者居然都...
    沈念sama閱讀 99,701評論 3 429
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 178,691評論 0 383
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,974評論 1 318
  • 正文 為了忘掉前任,我火速辦了婚禮,結果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 72,694評論 6 413
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發上,一...
    開封第一講書人閱讀 56,026評論 1 329
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 44,015評論 3 450
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 43,193評論 0 290
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當地人在樹林里發現了一具尸體,經...
    沈念sama閱讀 49,719評論 1 336
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 41,442評論 3 360
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發現自己被綠了。 大學時的朋友給我發了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 43,668評論 1 374
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 39,151評論 5 365
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質發生泄漏。R本人自食惡果不足惜,卻給世界環境...
    茶點故事閱讀 44,846評論 3 351
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 35,255評論 0 28
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 36,592評論 1 295
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 52,394評論 3 400
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 48,635評論 2 380