[vorbis-dev] Vorbis files merging

Michael Smith msmith at labyrinth.net.au
Thu Sep 19 06:45:29 PDT 2002



At 03:05 PM 9/19/02 +0300, you wrote:
>Good day.
>
>I have some questions dealing with merging Ogg Vorbis files.
>Suppose I want merge two Ogg Vorbis files encoded with the same parameters
>into one file that composed of one logical bitstream. In this connection
>some
>questions:
>A) Are codebooks in file headers depend only on Vorbis version and
>    encoding parameters and don't depend on the particular source file?

Yes (i.e. they aren't dependent on the input file)

>B) Are the following steps enough to do merging?:
>    - unset e_o_s flags in the last packet of the first file;
>    - unset b_o_s flags in the first packet of the second file;
>    - write additionally to the first file data data from the second file,
>which
>      located after headers of the second file, at the same time changing
>granuleposes
>      and packetnos for packets from the second file;

No. See vorbis-clip.txt in the documentation directory for some details,
and also consider the fact that vorbis packets are NOT independent (because
of overlap).

Mike

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list