Reading ID3 tags

Discuss your Lua playlist, album art and interface scripts.
DonLK
New Cone
New Cone
Posts: 2
Joined: 12 Dec 2015 21:46

Reading ID3 tags

Postby DonLK » 12 Dec 2015 22:13

Hi

I'm trying to write a little extension that reads the UNSYNCEDLYRICS tag in audio files and shows it in a dialog, as an alternative to MiniLyrics that was ditched. My lua knowledge is zero but I read the readme and looked at other extensions to get an idea, from what I tried it seems like no way is provided to parse the ID3 tags embedded in the audio files directly?

I'm particularly interested in the UNSYNCEDLYRICS tag, any guidance is welcome.

Cheers.

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: Reading ID3 tags

Postby mederi » 13 Dec 2015 14:22

All available metadata tags are available through vlc.input.item():metas()

Code: Select all

for k,v in pairs(vlc.input.item():metas()) do ... end
Check VLC menu: Tools > Media Information > General and Metadata tabs
Otherwise, you can read data from binary audio files and parse them within Lua to retrieve somehow the UNSYNCEDLYRICS tag.

DonLK
New Cone
New Cone
Posts: 2
Joined: 12 Dec 2015 21:46

Re: Reading ID3 tags

Postby DonLK » 13 Dec 2015 23:37

Thank you, that was helpful. Looks like the way to go is the binary way.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 10 guests