Hi, Regarding to my previous question, I think I have found out from oggenc source code that the correct way to initialize encoding is: vorbis_encode_init_vbr (or vorbis_encode_setup_managed for cbr etc.) vorbis_encode_ctl (to turn off or use avg bitrate management) vorbis_encode_setup_init By this way, there is no problem with encoded stream. However, there is no documentation of the three function above (except vorbis_encode_init_vbr) on the cvs snapshot of vorbis. Thanks... Mete ----- Original Message ----- From: Mete BALCI To: vorbis-dev@xiph.org Sent: Friday, March 07, 2003 12:33 PM Subject: problem with encoding cbr <p><p>Hi, I am trying to encode PCM to OGG based on example code in OggVorbis SDK Win 1.0. There is no problem with "vorbis_encode_init_vbr(&vi, 1, 44100, 0.4f);" setting. However, using "vorbis_encode_init(&vi, 1, 44100, 96000, 96000, 96000);" setting gives such a warning by ogginfo: "Warning: EOS not set on stream 1" I have modified ogginfo to display exact playback length. The original PCM data I am trying to encode is about 89.310s. OggInfo displays "89,309683s" for OGG encoded with VBR setting (that is correct), and it displays "88,170522s" for OGG encoded with CBR setting (that is wrong!). Do I need to do something special for cbr setting? The encoder code is same for cbr and vbr setting. PS: The original PCM data is 44100Hz, 16Bit, 1 Channel (mono). Thanks in advance. --- 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. <p><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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.