Old 22nd September 2010, 14:34   #1
Junior Member
Join Date: Sep 2010
Posts: 1
Custom Tag reader plugin help

Hi I'm a beginner at programming (Java OO originally, now C/C++) and I need help designing and programming a winamp plugin to show lyrics which I am able to put into WavPack files by the use of the

wavpack foo.wav -w "Lyrics=@foo.srt"

tag input. The Lyrics are in .SRT format (just for demonstration purposes) and looks like this

00:00:00,000 --> 00:00:5,000
Lisa Miskovski - Still Alive
Lyrics by RickJames

00:00:20,000 --> 00:00:24,000
You have changed
I have changed

00:00:24,000 --> 00:00:30,000
Just like you
Just like you

00:00:30,000 --> 00:00:34,000
For how long
For how long

00:00:34,000 --> 00:00:38,000
Must I wait
I know there's something wrong


<start-time hours:minutes:seconds,milliseconds> --> <end-time hours:minutes:seconds,milliseconds>
<Lyrics to displayed at corresponding times (multiple lines)>

I've made a small command line program that reads tags from a wavpack file and spilts them out in reasonable time if you execute it and play the song reasonably quickly.

The program is at 'mega uploads . com /?d=BCXVBEPF'
and a sample song embedded with lyrics is at /?d=2SXYMATN at the same website

I'd really like to know how to turn that into a plugin for winamp that I can then transfer the lyrics tags to other formats like MP3, FLAC, etc.

If anyone is interested I'll post up the source code for that little program as well.

Thank you
RickJamez is offline   Reply With Quote
Old 29th September 2010, 12:36   #2
Join Date: Sep 2003
Posts: 27,873
the main issue you're going to experience is getting tags saved into other formats as there's no native way with Winamp's metadata api's to read / write custom metadata tags without the native plug-ins being updated to cope with them.

the other option is you have your own tag read/write libraries for accessing mp3 and flac for example. WavPack would have the same issue as the native plug-ins for getting custom tags from what i remember of the source code of the Winamp plug-in.

i believe this is one of the main reasons for other lyrics plug-ins using external files (which also makes it easier to use with other players). so i think you're going to have to look at thnigs in a different manner if you're looking to get things running with embedding into tags if going the Winamp route (Foobar2000 shouldn't have such limitations from what i remember though i'm not 100% sure seeing as you're going to be targeting that as well).

so main summary is unless the input plug-in for a format supports the 'lyrics' tag you'd want to use you're going to have to manually add / read those tags if using the Winamp approach.

DrO is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

lyrics, plugin, reader, srt

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump