[vorbis] What tags are allowed in ogg files?

John Morton jwm at plain.co.nz
Tue Jul 30 19:50:29 PDT 2002



On Wed, 31 Jul 2002 12:43, Segher Boessenkool wrote:
> Michael Smith wrote:
> > Still on my TODO list (for vorbiscomment/vcedit, NOT for libvorbis -
> > libvorbis will continue to write non-padded headers).
>
> It's not needed in a library; an encoder based on libvorbis can easily
> do it itself.
>
> Let's try encoder_example:
>
>     vorbis_analysis_headerout(&vd,&vc,&header,&header_comm,&header_code);
>     /* new code here */
>         header_comm.packet = realloc(header_comm.packet,
>                                      header_comm.bytes + 1000);
>     /* end of new code */
>     ogg_stream_packetin(&os,&header);
>     ogg_stream_packetin(&os,&header_comm);
>     ogg_stream_packetin(&os,&header_code);
>
> That's all you need.

It's the bit where you want to rewrite the comment header with updated tags, 
perhaps using or adding to the padded space that's the interesting case. 
Don't you have to update various checksums and things, or is it as simple
as just mmaping the file and overwriting the old comment header with a new 
one?

John

<p>--- >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-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 mailing list