[theora-dev] Pages with granulepos = -1 while encoding..

Romain Beauxis toots at rastageeks.org
Thu Feb 5 10:30:38 PST 2009

Le Thursday 05 February 2009 18:21:53 Ralph Giles, vous avez écrit :
> > Following my recent issued with my encoder, I've narrowed the issue to
> > the fact that, when encoding, for some returned pages, the granulepos
> > returned by the libogg is -1.
> Technically speaking, I think you can also use a greedy algorithm and
> always write out granulepos=-1 pages as soon as you get them, since by
> definition all you know is that they must come between two marked
> pages from that same logical stream. The delay-until-the next
> timestamp suggestion ogg.k made is more likely to be optimal in the
> future though, if we ever block the packed+spanning packets case.

Thanks for your help, it is more clear now :)


More information about the theora-dev mailing list