[vorbis-dev] ogg stream-id options

Simon Vilmer Pedersen simon at paamand.dk
Mon Nov 20 03:00:16 PST 2000



On 20 Nov 2000, at 21:53, Michael Smith wrote:

> >I think I might, for testing purposes, implement uuencoding (any 
> >better alternatives?) and libjpeg in the Winamp plugin. Then we can 
> >see how it would work in action.
> >Perhaps using something on the lines of 
> >"coverart=mycover.jpg:uu:(encoded data follows)"
> >
> >I for one wouldn't want to have to parse XML :)
> 
> Don't. The vorbis comment specification specifically says that the data is
> 8-bit clean. If you actually WANT binary data in there, it's permitted, and
> should work. I added appropriate stuff a few months back so that the data
> lengths are exposed through the API, so everything you need is available,
> though it's somewhat clumsy.
> 
> coverart=binarydatahere should work. On the other hand, you may (I could
> check, but can't be bothered right now) have to circumvent the comment
> adding API to actually enter the data. Libvorbis handles it correctly for
> the most part, but you'll have to make the changes to the vorbis_comment
> structure directly, since the API assumes null-terminated strings. That's
> ok, since vorbis_comment is actually meant to be exposed.
Duh to me for overlooking that... However, we still need a format 
specifier - either a "jpg:" or "cover.jpg:" just before the binary data, 
or perhaps jpeg's mime type (can't remember it). I think we can all 
agree that saying that all images are a specific type is bad.

Here I go looking for work again when I already have enough to do. 
Fortunately, tomorrow is a no classes day, so it looks like I already 
know what to spent it on...

Simon Vilmer Pedersen

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list