[vorbis-dev] streaming and VBR
Michael Smith
msmith at xiph.org
Sun Oct 12 19:17:48 PDT 2003
On Monday 13 October 2003 03:42, Olaf Matthes wrote:
> Hi list,
>
> I have a very anoying problem when streaming ogg vorbis: due to the
> variable bitrate encoding data rates sometimes drop to a very low value
> when there is no audio input signal. After a while the server (Icecast2)
> just drops my stream because no new ogg pages arrive.
>
> For streaming I use a software that I have written but I can't find a
> way to tell it to never drop data rate below a given value. In the
> encoder example various ways of specifying data rates are shown, but
> none of them seem to help.
>
> Is there a way to tell vorbis not go below X bps? Or to do 'real' CBR?
> BTW, I'm on Windows, using VC++ in case this matters.
>
There's no way to tell vorbis to add 'useless' padding bits. You can do it
externally if you want, but it wouldn't be a very good idea to do that.
The more sensible approach (ices2 does this) is to just produce an ogg page
(using ogg_stream_flush instead of ogg_stream_pageout) at regular intervals -
ices2 will force a stream flush after 2 seconds of data if there have been no
'natural' pages produced.
Mike
--- >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