gecko/media/liboggz
2009-07-20 16:01:52 +02:00
..
include Bug 505227 - Don't use config_win32.h on MinGW in liboggz. r+cpearce,sr+doublec 2009-07-20 16:01:52 +02:00
src Bug 505227 - Don't use config_win32.h on MinGW in liboggz. r+cpearce,sr+doublec 2009-07-20 16:01:52 +02:00
AUTHORS Bug 480063 - Update liboggz and liboggplay to fix infinite loop bug - rs=roc 2009-05-12 15:27:23 +12:00
bounded_seek.patch Bug 469408. Make seeking in bufferred ranges fast by trying a 'bounded seek' in each buffered data range before falling back to a seek over the whole resource. r=doublec,sr=roc 2009-05-18 10:15:57 +12:00
bug487519.patch Bug 487519. Detect more Vorbis errors and propagate them out. rs=roc 2009-06-02 09:20:51 +12:00
bug496063.patch Bug 496063. Avoid infinite loops on shutdown or error while seeking. r=cpearce 2009-06-04 14:06:03 +12:00
ChangeLog Bug 448834. Move Ogg libraries from modules/ to media/. r+sr=roc 2008-08-06 12:47:37 +12:00
COPYING Bug 448834. Move Ogg libraries from modules/ to media/. r+sr=roc 2008-08-06 12:47:37 +12:00
endian.patch Bug 505227 - Don't use config_win32.h on MinGW in liboggz. r+cpearce,sr+doublec 2009-07-20 16:01:52 +02:00
key_frame_seek.patch Bug 463358. Support seeking to keyframes in liboggz. r=doublec 2009-05-20 15:49:01 +12:00
Makefile.in Bug 448834. Move Ogg libraries from modules/ to media/. r+sr=roc 2008-08-06 12:47:37 +12:00
offset_next.patch Bug 495336 - liboggz oggz_get_next_page() and oggz_read_get_next_page() wrong r=doublec sr=roc a=blocking1.9.1+ 2009-05-29 00:13:23 -04:00
oggz_os2.patch [OS/2] Bug 448918: add media support on OS/2 (liboggz part), p=dragtext@e-vertise, r=chris.double 2009-07-23 10:37:01 +03:00
README Bug 480063 - Update liboggz and liboggplay to fix infinite loop bug - rs=roc 2009-05-12 15:27:23 +12:00
README_MOZILLA [OS/2] Bug 448918: add media support on OS/2 (liboggz part), p=dragtext@e-vertise, r=chris.double 2009-07-23 10:37:01 +03:00
seek.patch Bug 449159 - changes to liboggz required for seeking support 2008-10-19 20:35:01 +13:00
update.sh Bug 505227 - Don't use config_win32.h on MinGW in liboggz. r+cpearce,sr+doublec 2009-07-20 16:01:52 +02:00
wince.patch bug 461844 - posix IO functions do not exist on windows ce, work around for liboggz r=doublec 2009-01-22 22:47:32 -05:00

About Oggz
----------

Oggz comprises liboggz and the tool oggz, which provides commands to
inspect, edit and validate Ogg files. The oggz-chop tool can also be
used to serve time ranges of Ogg media over HTTP by any web server that
supports CGI.

liboggz is a C library for reading and writing Ogg files and streams.
It offers various improvements over the reference libogg, including
support for seeking, validation and timestamp interpretation. Ogg is
an interleaving data container developed by Monty at Xiph.Org,
originally to support the Ogg Vorbis audio format but now used for
many free codecs including Dirac, FLAC, Speex and Theora.

Dependencies
------------

Oggz depends only on libogg, available in most free software
distributions, or in source form at: http://xiph.org/downloads/

Support is built-in for parsing the headers of and seeking to time
positions in Ogg Dirac, FLAC, Speex, Theora and Vorbis. Oggz is also
compatible with Annodex streams, and supports seeking on all tracks
described in an Ogg Skeleton track.

Installation
------------

Release archives can be installed using the conventional commands:

    $ ./configure
    $ make check
    $ sudo make install

sequence. Configuration details are in the file INSTALL. If you obtained
this source by svn, first run "./autogen.sh" to create the configure script,
then run the above commands.

Read the file README.win32 for installing under MS Windows, and
README.symbian for information about building for Symbian devices.

Source layout
-------------

The src/ directory contains the source code.
The src/liboggz/ directory has the library source code.
The src/tools/ directory has some command line tools for analysing
               Ogg files.
The src/examples/ directory contains example programs using liboggz.
The src/tests/ directory contains unit and functional tests.

The include/ directory contains the oggz include files that will
be installed into the system include directory.

The doc/ directory contains some documentation for oggz. The
subdirectory liboggz is autocreated by doxygen from comments contained
in the source code.

The win32/ directory contains the files necessary to compile the
library and tools for MS Windows.

The symbian/ directory contains the files necessary to compile the
library for Symbian.


Programming with liboggz
------------------------

liboggz supports the flexibility afforded by the Ogg file format while
presenting the following API niceties:

    * Full API documentation

    * Comprehensive test suite of read, write and seeking behavior.
    The entire test suite can be run under valgrind if available.

    * Developed and tested on GNU/Linux, Darwin/MacOSX, Win32 and
    Symbian OS. May work on other Unix-like systems via GNU autoconf.
    For Win32: nmake Makefiles, Visual Studio .NET 2003 solution files
    and Visual C++ 6.0 workspace files are provided in the source
    distribution.

    * Strict adherence to the formatting requirements of Ogg bitstreams,
    to ensure that only valid bitstreams are generated; writes can fail
    if you try to write illegally structured packets.

    * A simple, callback based open/read/close or open/write/close
    interface to raw Ogg files.

    * Writing automatically interleaves with packet queuing, and provides
    callback based notification when this queue is empty

    * A customisable seeking abstraction for seeking on multitrack Ogg
    data. Seeking works easily and reliably on multitrack and multi-codec
    streams, and can transparently parse Theora, Speex, Vorbis, FLAC,
    PCM, CMML and Ogg Skeleton headers  without requiring linking to those
    libraries. This allows efficient use on servers and other devices
    that need to parse and seek within Ogg files, but do not need to do
    a full media decode.

Full documentation of the liboggz API, customization and installation,
and mux and demux examples can be read online at:

    http://www.annodex.net/software/liboggz/html/

oggz tool
---------

Usage: oggz <subcommand> [options] filename ...

oggz is a commandline tool for manipulating Ogg files. It supports
multiplexed files conformant with RFC3533. Oggz can parse headers for CELT,
CMML, Dirac, FLAC, Kate, PCM, Speex, Theora and Vorbis, and can read and write
Ogg Skeleton logical bitstreams.

Commands:
  help          Display help for a specific subcommand (eg. "oggz help chop")

Reporting:
  diff          Hexdump the packets of two Ogg files and output differences.
  dump          Hexdump packets of an Ogg file, or revert an Ogg file from
                such a hexdump.
  info          Display information about one or more Ogg files and their
                bitstreams.
  scan          Scan an Ogg file and output characteristic landmarks.
  validate      Validate the Ogg framing of one or more files.

Extraction:
  rip           Extract one or more logical bitstreams from an Ogg file.

Editing:
  chop          Extract the part of an Ogg file between given start and/or
                end times.
  comment       List or edit comments in an Ogg file.
  merge         Merge Ogg files together, interleaving pages in order of
                presentation time.
  sort          Sort the pages of an Ogg file in order of presentation time.

Miscellaneous:
  known-codecs  List codecs known by this version of oggz

The script bash-completion/oggz enables completion of tool options and codec
names when using the bash shell. Source it from your .profile, or install it
in /etc/bash_completion.d to enable it system-wide.


oggz-chop: General usage and CGI installation
---------------------------------------------

oggz-chop extracts the part of an Ogg file between given start and/or end
times. The output file contains copies of the headers of the input file, and
all the codec data required to correctly decode the content between the start
and end times specified on the commandline. For codecs with data dependencies
like video keyframes, the keyframe prior to the starting time will be included
in the output.

An Apache server can be configured to use oggz-chop to handle all Ogg files
(or, all Ogg files in a particular directory). An example Apache configuration
is in the liboggz source tree, along with a script for installing it on a
Debian server.

The oggz-chop binary checks if it is being run as a CGI script (by checking
some environment variables), and if so acts based on the CGI query parameter
t=, much like mod_annodex. It accepts all the time specifications that
mod_annodex accepts (npt and various smpte framerates), and start and end
times separated by a /.

License
-------

Oggz is Free Software, available under a BSD style license.

More information is available online at the Oggz homepage:

    http://www.annodex.net/software/liboggz/

enjoy :)

--
Conrad Parker
http://www.annodex.net/