[Vorbis] Problem with VorbisEncoder

Ian Malone ibm21 at cam.ac.uk
Tue Jan 10 06:56:03 PST 2006


pavan kumar wrote:
> Hi All,
>  
> It would be really helpful for me if you comment on the following.
> My VorbisEncoder uses libvorbis to encode into the vorbis data. I have 
> followed the call sequence given in libvorbis\examples\encoder_example.c.
> I am taking a 16bit pcm Stereo wav file and generating an oggvorbis file 
> using libvorbis and libogg. There is lots of noise in the file except 
> music is heard very feable in the background. To compare, I have created 
> an ogg file with the same configuration(same quality) using GoldWav. I 
> have observed that even the headerpages differ from the file i have 
> generated.
> I am using TInt ret=vorbis_encode_init_vbr(&iInfo,2,44100,.4); for the setup
>  

<snip>

> give me an example which you are sure that it is working without any 
> modification.
>  

I'm afraid I haven't used the encoder enough to be of much help.  If
everything is right encoder_example.c should work without modification.
You're not having endianness issues are you (IIRC the example encoder
is written to handle 16 bit LE)?  Have you tried other wav files?
Is GoldWav using the same versions of libvorbis and libogg (I wouldn't
be very surprised by differences in headers if it used different
versions)?

-- 
imalone


More information about the Vorbis mailing list