[Extension] Metadata over video

Discuss your Lua playlist, album art and interface scripts.
mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

[Extension] Metadata over video

Postby mederi » 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

eng16
New Cone
New Cone
Posts: 1
Joined: 30 Jan 2020 23:29

Re: [Extension] Metadata over video

Postby eng16 » 30 Jan 2020 23:31

How do I get it not to display file name? It works otherwise. I tried removing code and it breaks it. I just want meta tags I choose not file name. Thanks.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: [Extension] Metadata over video

Postby mederi » 31 Jan 2020 13:04

You can define an empty filename string: local filename = ""
Or you can remove filename from the metas output string: delete filename line and also remove appended line breaker .."\n".. in previous line.

This is really a job for Marquee filter as there is already available Timeout option there.

mathiada
New Cone
New Cone
Posts: 1
Joined: 07 Sep 2020 20:57

Re: [Extension] Metadata over video

Postby mathiada » 07 Sep 2020 21:00

how do I get the information to be shown throughout the video? Thanks.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: [Extension] Metadata over video

Postby mederi » 10 Sep 2020 19:33

You can increase the 10 seconds osd duration value: 10*1000000


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 8 guests