Page 1 of 1

Reading ID3 tags

Posted: 12 Dec 2015 22:13
by DonLK
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.

Re: Reading ID3 tags

Posted: 13 Dec 2015 14:22
by mederi
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.

Re: Reading ID3 tags

Posted: 13 Dec 2015 23:37
by DonLK
Thank you, that was helpful. Looks like the way to go is the binary way.