Skip to content

Commit

Permalink
脚本: thumbfast 重启杜比视界的实验性支持
Browse files Browse the repository at this point in the history
关联 fe49e5d
  • Loading branch information
hooke007 committed Oct 23, 2023
1 parent 8ddcf86 commit ed8c27b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions portable_config/scripts/thumbfast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,9 @@ if quality == 0 then
end
if options.sw_threads >= 3 then
quality = 2
-- https://github.com/mpv-player/mpv/issues/11993
-- if options.sw_threads >= 5 then
-- quality = 3
-- end
if options.sw_threads >= 6 then
quality = 3
end
elseif options.sw_threads == 1 then
quality = 1
end
Expand All @@ -335,7 +334,7 @@ local function quality_fin()
vf_str = vf_str_pre..":flags=bicublin,format=fmt=gbrapf32,zscale=t=linear:npl=203,tonemap=tonemap=hable:desat=0.0,zscale=p=709:t=709:m=709,"..vf_str_suffix
end
elseif quality == 3 then
vf_str = "libplacebo=w="..effective_w..":h="..effective_h..":colorspace=bt709:color_primaries=bt709:color_trc=bt709:tonemapping=hable:format=bgra"
vf_str = "lavfi=[libplacebo=w="..effective_w..":h="..effective_h..":colorspace=bt709:color_primaries=bt709:color_trc=bt709:tonemapping=hable:format=bgra]"
end
return vf_str
end
Expand Down

0 comments on commit ed8c27b

Please sign in to comment.