Hi, Does anybody knows, how I can produce raw vorbis packets from an audio stream without using ogg stream? Regards, Csonka Tibor -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20041001/a75119f5/attachment.html
On Fri, Oct 01, 2004 at 03:18:36PM +0300, Csonka Tibor wrote:> Hi, > > > > Does anybody knows, how I can produce raw vorbis packets from an audio > stream without using ogg stream?Yes. But the packets will be useless if simply appended to one another. They must go into a container that provides framing of some sort as they provide no means of finding beginning and end within themselves. Monty
Ok, thanks. What API can I use. Is there a sample somewhere? Thanks!> -----Original Message----- > From: Monty [mailto:xiphmont@xiph.org] > Sent: Thursday, September 30, 2004 10:53 PM > To: Csonka Tibor > Cc: vorbis-dev@xiph.org > Subject: Re: [Vorbis-dev] Vorbis raw packets > > > > > On Fri, Oct 01, 2004 at 03:18:36PM +0300, Csonka Tibor wrote: > > Hi, > > > > > > > > Does anybody knows, how I can produce raw vorbis packets from an audio > > stream without using ogg stream? > > Yes. But the packets will be useless if simply appended to one > another. They must go into a container that provides framing of some > sort as they provide no means of finding beginning and end within > themselves. > > Monty >
On Sat, Oct 02, 2004 at 08:43:46AM +0300, Csonka Tibor wrote:> What API can I use. Is there a sample somewhere?vorbis_bitrate_flushpacket() returns an ogg_packet structure with the encoded vorbis data. This includes the length and raw packet data, which you can use directly instead of packing it into an ogg stream. see encoder_example.c in the vorbis source examples directory. If you wanted to work with an already created ogg vorbis stream, look at decoder_example.c You can use similar code; ogg_stream_packetout() returns a similar ogg packet structure; just put that into your other container instead of passing it to the vorbis decoder as in the example. Hope that helps, -r