xres, yres = _G.aegisub.video_size() if xres == nil then x_rat = 1 y_rat = 1 else x_rat = xres/1024 y_rat = x_rat end if (xres and xres ~= meta.res_x) or (yres and yres ~= meta.res_y) then _G.aegisub.debug.out(2, "Warning: script resolution %dx%d does not match with loaded video resolution %dx%d resample script resolution", meta.res_x, meta.res_y, xres, yres) end