[ogg-dev] Embedding int32's within threora & vorbis files

Ian Malone ibmalone at gmail.com
Wed Aug 8 05:01:07 PDT 2007


On 08/08/07, xiphmont at xiph.org <xiphmont at xiph.org> wrote:
> On 8/8/07, Ian Malone <ibmalone at gmail.com> wrote:
> > On 08/08/07, Paul Griffiths <gafferuk at gmail.com> wrote:
> > > Hi, i need to include a discontinuous stream of in32's(3 at a time) to vorbis
> > > and theora ogg files, to be played back on time.
> > >
> > > Does anyone have an example I can work from?
> > >
> > > I would love to say what it is for but I have to be careful of comptition at
> > > this early stage.
> > >
> >
> > If I understand correctly you want to store integers
> > in the Ogg stream at some synchronisation with
> > other contents (Vorbis, Theora).
>
> Correct.  You define a discontinuous 'codec' and a 'mapping' that
> specifies how it is embedded in the Ogg stream.  This makes sure it is
> only used by software that recognizes what it is.
>
> > Possibly OggPCM
> > would suit,
>
> No.  OggPCM is, I think, defined to be continuous and definitely
> defined to be audio.
>

That makes sense.  The spec for this new codec could
probably be copied almost wholesale from OggPCM.
The only obvious change needed is to redefine sample
rate to simply providing a granulepos mapping.

-- 
imalone


More information about the ogg-dev mailing list