[vorbis-dev] encoding problem

msmith at labyrinth.net.au msmith at labyrinth.net.au
Thu Dec 12 06:57:04 PST 2002



Mete BALCI <mbalci at momentum-dmt.com> said:

> 
> Hi,
> 
> I am trying to encode 44100Hz/16Bit/Stereo PCM samples into Ogg Vorbis. I am
> following the way like in the encoder_example.c . Although Ogg Vorbis stream
> seems to be correct, there is a few missing samples at the end of it. I
> think I am forgetting to write out the last page/packet. What could be the
> reason for that?

It's difficult at best to give a useful answer without seeing the code you're
using, but you should check that you're 'encoding' 0 samples at the end (this
acts as a signal that the stream is ended, and causes the encoder to flush out
all its buffers), and then actually coding the end packets to the ogg bitstream.

Michael

--- >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