[Icecast] ices2 metadata update causes gaps

Michael Smith msmith at xiph.org
Mon Sep 26 03:41:00 PDT 2005


On 9/23/05, Paul Martin <pm at nowster.zetnet.co.uk> wrote:
> Mike... did you look into this? I posted a waveform from a file
> generated by ogg123 dumping to a wav (so that audio driver problems were
> eliminated).
>
> It looks to me like ices2 is restarting the vorbis encoder in a
> non-gapless way when it stops and starts the encoding (to change the
> stream id and update the metadata). Because I'm doing crossfades from
> one track to another, this shows up. If you were just playing one track
> after another, letting them play to the end before starting the next
> one, updating the metadata between tracks, you wouldn't notice it.

No, I haven't really looked into this. A quick look at the code
(stream_shared.c around line 150) looks like it's doing the right
thing - it flushes all the encoded buffers before continuing on with
the new substream.

Mike


More information about the Icecast mailing list