[vorbis-dev] encoding problem

Mete BALCI mbalci at momentum-dmt.com
Thu Dec 12 07:34:11 PST 2002



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

I found out that the missing samples problem was due to the decoding part of the code. I have corrected it, however, there is still a problem with the very end of the encoded stream. I am using vorbis_analysis_wrote(&vd, 0) at the end, but ogginfo utility says EOS is not set on stream 1. ov_open_callbacks also returns OV_ENOTVORBIS for the stream I encoded and I cannot play it with my own code, but winamp3 plays it without any problem.


---
Mete BALCI
Senior Game Programmer
Momentum DMT
Istanbul, TURKEY

--------------------------------------------------------------------------
Confidentiality Notice: This e-mail may contain
confidential and/or privileged information that is
intended only for the individual or entity named in
the e-mail address. If you are not the intended recipient,
you are hereby notified that any disclosure, copying,
distribution, or taking of any action in reliance upon
the contents of this e-mail is prohibited.
 
If you have received this e-mail in error, please contact
the sender and delete the e-mail from your computer.
Thank you.

----- Original Message ----- 
From: <msmith at labyrinth.net.au>
To: <vorbis-dev at xiph.org>
Sent: Thursday, December 12, 2002 4:57 PM
Subject: Re: [vorbis-dev] encoding problem

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

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