[Theora-dev] edit those theora comments?

Daniel Holth dholth at fastmail.fm
Thu Dec 29 00:09:00 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

http://dingoskidneys.com/~dholth/oggzcomment-0.0.1.tar.gz

This is a program that is capable of altering vorbis and theora
comments in a combined stream. It requires python, libogg, and liboggz.

Compile thusly:
gcc oggzdc.c -o oggzdc -logg -loggz
gcc oggzrc.c -o oggzrc -logg -loggz

1. Dump comment headers to a simple comments-only (now:
second-packet-only) file.
    oggzdc < File.ogg > File.cmt

2. Parse this file with python. Currently prints the comments and
writes a new comment file called newcomment.cmt
    parse.py File.cmt

3. Replace comment headers as specified in the new comment file.
oggzrc is actually capable of replacing any packet except BOS or EOS
packets.
    oggzrc newcomment.cmt < File.ogg > File-new.ogg


The code is primitive but could be the basis for a nice re-commenting
app. If anyone finds it valuable then do enhance it. I don't
personally need to comment vorbis + theora files, it just made me sad
that there wasn't yet a vorbiscomment for vorbis + theora.

- - Daniel Holth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDs5mcVh4W2pVfoMsRAoPNAKDsWEWhbop1AtslgNbmbBvxufI+BwCg1wGR
XUGESI8WWWhYpfsJpyKqjUw=
=CcNN
-----END PGP SIGNATURE-----



More information about the Theora-dev mailing list