mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-17 03:31:59 -05:00
feat:mpv
This commit is contained in:
93
dotfiles/.config/mpv/profiles.conf
vendored
Normal file
93
dotfiles/.config/mpv/profiles.conf
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
### Profiles ###
|
||||
|
||||
[Deband-Medium]
|
||||
deband-iterations=2
|
||||
deband-threshold=64
|
||||
deband-range=16
|
||||
deband-grain=24
|
||||
|
||||
[Deband-Strong]
|
||||
deband-iterations=3
|
||||
deband-threshold=64
|
||||
deband-range=16
|
||||
deband-grain=24
|
||||
|
||||
### Conditional Profiles ###
|
||||
|
||||
#[HDR]
|
||||
#profile-desc=HDR
|
||||
#profile-cond=hdr_metadata or (video-params/primaries == "bt.2020" and video-params/gamma == "pq")
|
||||
#target-trc=pq
|
||||
#target-peak=1000
|
||||
#d3d11-output-csp=pq
|
||||
#target-prim=bt.2020
|
||||
#hdr-compute-peak=yes
|
||||
#target-contrast=auto
|
||||
#video-output-levels=full
|
||||
#target-colorspace-hint=yes
|
||||
#d3d11-output-format=rgba32f
|
||||
|
||||
[SDR-Gamut]
|
||||
#profile-desc=gamut mapping for SDR content
|
||||
#profile-cond=get("video-params/primaries") ~= "bt.709" and get("video-params/gamma") == "bt.1886"
|
||||
#profile-restore=copy
|
||||
#gamut-mapping-mode=clip
|
||||
|
||||
[HDR -> SDR]
|
||||
#profile-desc=HDR ->SDR mapping parameters
|
||||
#tone-mapping=auto
|
||||
#tone-mapping-param=1.0
|
||||
#tone-mapping-max-boost=1.0
|
||||
#gamut-mapping-mode=auto
|
||||
#hdr-contrast-recovery=0.30
|
||||
#hdr-contrast-smoothness=3.5
|
||||
#hdr-compute-peak=auto
|
||||
#hdr-peak-percentile=99.995
|
||||
#hdr-peak-decay-rate=20
|
||||
#hdr-scene-threshold-low=1.0
|
||||
#hdr-scene-threshold-high=3.0
|
||||
#allow-delayed-peak-detect=no
|
||||
|
||||
[SDR -> HDR]
|
||||
#profile-desc=SDR -> HDR mapping parameters
|
||||
|
||||
linear-downscaling=no
|
||||
|
||||
[Downmix-Audio-5.1]
|
||||
profile-cond=get("audio-params/channel-count") >= 5 and get("audio-params/channel-count") < 7
|
||||
profile-restore=copy-equal
|
||||
volume-max=200
|
||||
af=lavfi="lowpass=c=LFE:f=120,volume=1.6,pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE"
|
||||
|
||||
[Downmix-Audio-7.1]
|
||||
profile-cond=get("audio-params/channel-count") >= 7
|
||||
profile-restore=copy-equal
|
||||
volume-max=200
|
||||
af=lavfi="lowpass=c=LFE:f=120,volume=1.6,pan=stereo|FL=0.5*FC+0.3*FLC+0.3*FL+0.3*BL+0.3*SL+0.5*LFE|FR=0.5*FC+0.3*FRC+0.3*FR+0.3*BR+0.3*SR+0.5*LFE"
|
||||
|
||||
[audio-filter]
|
||||
profile-desc=Enable the dynamic range adjustment filter when the audio channel is greater than 2, suitable for dual-channel devices
|
||||
profile-cond=get("audio-params/channel-count") > 2
|
||||
profile-restore=copy-equal
|
||||
af-pre=@dynaudnorm:lavfi=[dynaudnorm=g=5:f=250:r=0.9:p=0.5]
|
||||
|
||||
## General Anime Profile (Applies to any video in a folder called 'Anime') ##
|
||||
|
||||
[Anime]
|
||||
profile-cond=require 'mp.utils'.join_path(working_directory, path):match('\\Anime\\')
|
||||
profile-restore=copy-equal
|
||||
|
||||
deband=yes
|
||||
deband-iterations=2
|
||||
deband-threshold=35
|
||||
deband-range=20
|
||||
deband-grain=5
|
||||
|
||||
sub-scale=0.75
|
||||
|
||||
## Hides unwanted webtorrent entries in memo script ##
|
||||
|
||||
[Webtorrent-Entries]
|
||||
profile-cond=string.match(string.lower(string.gsub(require "mp.utils".join_path(get("working-directory", ""), get("path", "")), string.gsub(get("filename", ""), "([^%w])", "%%%1").."$", "")), "webtorrent")
|
||||
profile-restore=copy-equal
|
||||
script-opts-append=memo-enabled=no
|
||||
Reference in New Issue
Block a user