Skip to content

Instantly share code, notes, and snippets.

@azumukupoe
azumukupoe / autovsr.lua
Last active May 2, 2025 03:01
AutoVSR for MPV
local mp = require 'mp'
local autovsr_enabled = false
local function autovsr()
local display_width = mp.get_property_native("display-width")
local video_width = mp.get_property_native("width")
local display_height = mp.get_property_native("display-height")
local video_height = mp.get_property_native("height")
if video_width and display_width and video_height and display_height then