Hi, I've heard somewhere that it is possible to store inside .ogg files text streams and thus it should be possible to store lyrics for the sond directly in the file. Is it true? Could anybody point me towards some code how to do it (Python preferable, but not required)? Is there any documentation for text streams in .ogg files? Thanks for any reply, Mat?j -- GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC http://www.ceplovi.cz/matej/blog/, Jabber: ceplma@jabber.cz 23 Marion St. #3, (617) 876-1259, ICQ 132822213 He is not only dull himself, he is the cause of dullness in others. -- Samuel Johnson
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Matej, The only way I've found is annodexing. Their website is annodex.net . Basically its an XML stream (the syntax is CMML) in an ogg container. There is limited support at the moment. However, gstreamer supports annodex extraction so it should be easy to build into gstreamer based programs. I wrote a stand alone player for it. Its not taylored to song lyrics but it'll give you an idea what it enables. You are able to have tracks with clips associating a title, description, url, image, etc. with a start and end time, aka a clip. Its a pretty cool open standard. Here is a direct link to the Annoamp page, http://annodex.net/software/annoamp/index.html . Cheers, Scott Matej Cepl wrote:> Hi, > > I've heard somewhere that it is possible to store inside .ogg files > text streams and thus it should be possible to store lyrics for the > sond directly in the file. Is it true? Could anybody point me > towards some code how to do it (Python preferable, but not > required)? Is there any documentation for text streams in .ogg > files? > > Thanks for any reply, > > Mat?j-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE028G10ekhar8gdURAo8dAKDRFm2fMlgfvrUmx843WkMsrlxDuwCfbG5V 92ULRW9Qw9eYtapsOt2/lZQ=XwOr -----END PGP SIGNATURE-----
I guess it's not much different from storing lyrics in MP3 tags. Define a Vorbis Comment tag, dump an LRC file into it. Let the decoding app read the tag and peruse it as one would an LRC file. Matej Cepl wrote: Hi, I've heard somewhere that it is possible to store inside .ogg files text streams and thus it should be possible to store lyrics for the sond directly in the file. Is it true? Could anybody point me towards some code how to do it (Python preferable, but not required)? Is there any documentation for text streams in .ogg files? Thanks for any reply, Mat?j -- Now playing: T-Spoon // Summer Love>From the album: Hitzone 08Player: foobar2000 ( http://www.foobar2000.org/ ) with AMIP plugin. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis/attachments/20060810/5cc5224f/attachment.htm
LOL if there's a simpler alternative, why should I use a more complex one? But seriously, although streaming the text with audio seems logical, it introduces great complexity in the possible occasion of mis-timing. You may have to disassemble the Ogg stream and reassemble it. From this POV, as a programmer I'd rather use the comments hack. Plus, I've seen new-style LRC files with multiple timestamps on one line, e.g. : [00:00:40]Atomic Kitten - Tide Is High [00:09.6][00:46.7][00:56.2][01:33.3][01:42.7][02:40.9][02:50.1]The tide is high [00:11.3][00:48.6][00:57.9][01:35.1][01:44.5][02:42.7][02:52.1]But I'm holding on [00:13.9][00:51.4][01:00.8][01:38.0][01:47.4][02:45.6][02:54.9]I'm gonna be your number one [00:18.9]I'm not the kinda girl [00:21.3]Who gives up just like that (Oh no) [00:28.0]It's not the things you do [00:30.0]That tease and hurt me bad [00:32.9]But it's the way you do the things [00:35.2]You do to me < rest of lyrics cropped> {p} Ian Malone wrote: Annodex is a better way to do it. However some players still have problems with multiplexed Ogg streams which might make a comments hack attractive. imalone On 09/08/06, Pandu E Poluan <pepoluan@gmx.net> wrote: I guess it's not much different from storing lyrics in MP3 tags. Define a Vorbis Comment tag, dump an LRC file into it. Let the decoding app read the tag and peruse it as one would an LRC file. Matej Cepl wrote: Hi, I've heard somewhere that it is possible to store inside .ogg files text streams and thus it should be possible to store lyrics for the sond directly in the file. Is it true? Could anybody point me towards some code how to do it (Python preferable, but not required)? Is there any documentation for text streams in .ogg files? Thanks for any reply, Matej -- Now playing: Rod Stewart // I Wish You Love (ft. Chris Botti)>From the album: Rod Stewart // Thanks For The Memory - The Great American Songbook vol 4Player: foobar2000 ( http://www.foobar2000.org/ ) with AMIP plugin. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis/attachments/20060817/8edc7184/attachment.htm