[ogg-dev] Removing metadata segmentation

ogg.k.ogg.k at googlemail.com ogg.k.ogg.k at googlemail.com
Mon Jun 15 11:28:17 PDT 2009

> We're also doing scheduled metadata change to indicate the current show
> to listeners.  So for a 4pm show a url is hit which causes icecast to
> change the metadata indicating the 4pm show. That also works fine.

And this causes segmentation because the metadata is stored in the
second header of the Vorbis stream, so changing metadata will cause
a new stream to be started, with the updated metadata. While such
streams are valid, they are not, as you found, well supported. There
is also no way to insert a Vorbis comments header packet within a
Vorbis stream without starting a new logical stream (well, there is, but
it would not be a valid stream, and would be ignored the decoder).

> oggdec -o - metadata_segmentation.ogg | oggenc -o contiguous_metadata.ogg -

This will lose all metadata, which you don't want. If you add again the
metadata, it will apply to that single stream again.

That said, Internet radio streams are usually handled fairly well by
various players, which detect new streams and update metadata
accordingly. These are typically live and not seekable though.

More information about the ogg-dev mailing list