[ogg-dev] [Schrodinger-devel] ogg dirac granulepos in oggz tools

Conrad Parker conrad at metadecks.org
Thu Nov 20 19:40:04 PST 2008


2008/11/15 David Flynn <davidf+nntp at woaf.net>:
> On 2008-11-14, Conrad Parker <conrad at metadecks.org> wrote:
>> It seems oggz chop, merge and sort will need some attention to deal
>> with the Dirac granulepos and dependency ordering, so let's leave them
>> for the next release.
>
> ok. -- may be worth having them 'warn' if they are operating on
> something containing oggdirac.

I started patching oggz sort and merge, and discovered they were very nearly
working. After adding a custom function to convert granulepos to time for
Dirac, rather than just going by the result of the granuleshift, it seems to
be working. You can review the changeset here:

http://trac.annodex.net/changeset/3801

please test :-) For example you can start by ripping an existing Dirac+Vorbis
stream apart:

$ oggz rip -c vorbis input.ogv -o vorbis.ogg
$ oggz rip -c dirac input.ogv -o dirac.ogv

Then merge them back together:

$ oggz merge dirac.ogv vorbis.ogg -o output.ogv

I think the output is properly merged, please test in case there are any
problems I have missed.

Tested with liboggz r3806.

Conrad.


More information about the ogg-dev mailing list