[Extension] Metadata over video
Posted: 19 Mar 2015 21:17
The idea: https://forum.videolan.org/viewtopic.ph ... 97#p420092
Code: Select all
function descriptor()
return {
title = "Metadata over video",
capabilities = {"meta-listener"}
}
end
function activate()
end
function deactivate()
end
function meta_changed()
local vout=vlc.object.vout()
if vout then
local filename = vlc.strings.decode_uri(string.gsub(tostring(vlc.input.item():uri()), "^.*/(.-)$","%1"))
local metas=tostring(vlc.input.item():metas().title).."\n"..
tostring(vlc.input.item():metas().artist).."\n"..
tostring(vlc.input.item():metas().album).."\n"..
filename
vlc.osd.message(metas,channel1,"top-left",10*1000000) -- metadata over video for 10 seconds
end
end