[Extension] Force Aspect Ratio
Posted: 16 Jul 2013 17:01
Please test the extension:
Code: Select all
-- "force aspect ratio.lua" -- VLC Extension
aspect_ratio = "16:9" -- "" for default AR
function descriptor()
return {
title = "Force Aspect Ratio",
version = "1.0",
capabilities = {"meta-listener"}
}
end
function activate()
Set_AR(aspect_ratio)
end
function deactivate()
Set_AR("")
end
function meta_changed()
Set_AR(aspect_ratio)
end
function Set_AR(ar)
local vout=vlc.object.vout()
if vout then
vlc.var.set(vout,"aspect-ratio",ar)
end
end