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. thanks, Olaf --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> 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.Look at oggenc's source code. You want the equivalent of the -M and -m switches. Generally you only need to specify the maximum. Specifying the minimum is a bit wasteful. I believe that ices can do this as well, and the option is probably called <maximum-bitrate> in the xml. jack. --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.