Skip to content
Discussion options

You must be logged in to vote
local mp = require 'mp'
local options = require 'mp.options'

local supported_rates = {
    120.000, 119.944, 119.880, 100.000, 89.984,
    60.000, 59.981, 59.968, 59.940, 50.000,
    30.000, 29.970, 25.000, 24.000, 23.976
}

local opts = {
    monitor = "HDMI-1",
    resolution = "3840x2160",
    gdctl = "gdctl",
    default_rate = "60.000",
    hotkey = "r",
}
options.read_options(opts, "gdctl_refresh")

local last_rate = nil

local function video_enabled()
    local vid = mp.get_property_native("vid")
    local video = mp.get_property_native("video")

    -- --vid=no / --video=no disable video; treat "no", false, nil, or -1 as disabled
    if vid == "no" or vid == false or vid == nil o…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@Valenerus
Comment options

@guidocella
Comment options

@Dudemanguy
Comment options

@user-1-2-3-4-5
Comment options

@user-1-2-3-4-5
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by user-1-2-3-4-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants