Problem when configuring vorbisenc to use CBR

Tiago Katcipis katcipis at
Fri Feb 14 14:50:03 PST 2014


I need to use CBR on vorbisenc, but it don't matter how much i set it to be
on a fixed bitrate the bitrate is still variable. If i run "file" on
the ogg file it does says it has the right bitrate, but when i play it with
"play" it have another bitrate (always a little higher than the one
configured). Calculating the size manually also indicates
the bitrate informed by play, so it seems that it is not respecting the
configured bitrate.

For example i run:

gst-launch-1.0 pulsesrc ! audioconvert ! audioresample !
audio/x-raw,rate=8000,channels=1 ! vorbisenc managed=true
min-bitrate=28000 bitrate=28000 max-bitrate=28000
! oggmux ! filesinklocation=/tmp/test.ogg

I get:

file /tmp/test.ogg
/tmp/test.ogg: Ogg data, Vorbis audio, mono, 8000 Hz, <28000 ~28000 >28000
bps, created by: Xiph.Org libVorbis I

Its ok, but on play:
play /tmp/test.ogg
 File Size: 13.6k     Bit Rate: 35.9k

It seems that the bitrate cant be fixed, but i read that vorbis does
support CBR, am i missing something ?

Best regards,
Tiago Katcipis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list