[Vorbis-dev] Is it possible to seek different Ogg Vorbis encoded packets from the File?
Ralph Giles
rillian at telus.net
Thu Oct 22 17:04:15 PDT 2009
On Thu, Oct 22, 2009 at 12:23 AM, Niranjan Udipi <ucniranjan at gmail.com> wrote:
> Is it known apriori, how many Ogg-Vorbis packets are there and their
> corresponding locations in the File/stream? If yes, then each Processor can
> be pointed to its packet to-be-decoded. Please suggest how I can go ahead?
The ogg layer has some look ahead, based on how many packets are
packed into each encapsulation page. To obtain four at once, you can
simply call ogg_stream_packetout() four times, feeding more data to
ogg_stream_pagein() as necessary.
However, vorbis packets are not independent. Each overlaps with the
previous packet, and cannot be decoded separately as you have
described. You will have to use finer-grained parallelism to run
Tremor in multiple threads.
HTH,
-r
More information about the Vorbis-dev
mailing list