Skip to content

Instantly share code, notes, and snippets.

View emotion3459's full-sized avatar
🐢

evan emotion3459

🐢
View GitHub Profile
@emotion3459
emotion3459 / hdr-toggle.lua
Last active January 17, 2026 00:43
Toggles HDR automatically. Depends on https://github.com/dyphire/mpv-display-plugin.
local function toggle_hdr_display(target)
local hdr_status = mp.get_property_native("user-data/display-info/hdr-status")
if hdr_status and hdr_status ~= target then
mp.commandv("script-message", "toggle-hdr-display", target)
end
end
local function auto_switch(name, value)
if not value then return end

AVS (REALFINDER):

AVSMeter 3.0.9.0 (x64), (c) Groucho2004, 2012-2021
AviSynth+ 3.7.5 (r4289, 3.7, x86_64) (3.7.5.0)

Number of frames:                    10001
Length (hh:mm:ss.ms):         00:02:46.850
Frame width:                           720
Frame height:                          480
Framerate:                          59.940 (60000/1001)
STAGE JETPACK HAVSFUNC
INIT clip Input
input_type InputType
tff TFF