[Vorbis-dev] copying an ogg stream
illiminable
ogg at illiminable.com
Wed Sep 22 09:31:01 PDT 2004
----- Original Message -----
From: "Christoph Rupp" <crupp at umc-web.de>
To: "illiminable" <ogg at illiminable.com>
Cc: <vorbis-dev at xiph.org>
Sent: Thursday, September 23, 2004 12:26 AM
Subject: Re: [Vorbis-dev] copying an ogg stream
> Hi Zen,
>
> illiminable wrote:
>> Why is it that you break the packets out of the page ?
>
> to set the e_o_s flag. i want to be able to cut off the file in the
> middle...
>
Can't you do that directly on the page ? Or does it need to be packet
accurate ?
Even if it does need to be packet accurate... only the last page need be
broken up.
If you only need page level accuracy... you can just add an empty page with
the EOS flag set and the granule pos of the previous page... setting the
previous pages granule pos to -1.
Zen.
More information about the Vorbis-dev
mailing list