Free video codec. https://xiph.org/theora/

Ralph Giles e5d205bfe8 Clean up old automake options. %!s(int64=7) %!d(string=hai) anos
doc b97ef834c4 spec: Fix out of tree builds for the specification %!s(int64=7) %!d(string=hai) anos
examples 91203fdfdc Initialize global pointers in examples. %!s(int64=8) %!d(string=hai) anos
include fadf58a0cc Fix some typos in the documentation. %!s(int64=12) %!d(string=hai) anos
lib 66e7937e42 Set subdir-objects automake option. %!s(int64=7) %!d(string=hai) anos
m4 3ceb8c59e0 Copy Derf's experimental ptalarbvorm branch to trunk. %!s(int64=14) %!d(string=hai) anos
macosx 57dd28e1a7 Add x86 assembly files to the libtheoraenc and libtheoradec %!s(int64=14) %!d(string=hai) anos
symbian 3c04b48d69 Remove the --disable-float configure option, and the corresponding %!s(int64=13) %!d(string=hai) anos
tests 33ea218e2d Fix automake warnings. r=ron, rillian %!s(int64=10) %!d(string=hai) anos
tools 40d573e14f Add a new speed level between the old levels 2 and 3. %!s(int64=14) %!d(string=hai) anos
win32 ad6d64c0d5 Fixed project configuration which referenced two CRT versions in output binaries. %!s(int64=14) %!d(string=hai) anos
.gitignore 50df93362b Ignore additional generated files. %!s(int64=8) %!d(string=hai) anos
.travis.yml b6d6765ddc ci: libogg is needed for tests %!s(int64=7) %!d(string=hai) anos
AUTHORS f7f0d24ae9 Add Brad Smith to AUTHORS. %!s(int64=13) %!d(string=hai) anos
CHANGES 9163dfe552 Fix typos. Thanks to Maik Merten for pointing these out. %!s(int64=14) %!d(string=hai) anos
COPYING 3ceb8c59e0 Copy Derf's experimental ptalarbvorm branch to trunk. %!s(int64=14) %!d(string=hai) anos
LICENSE b68e2e53b3 Remove some trailing whitespace in documentation. %!s(int64=14) %!d(string=hai) anos
Makefile.am e5d205bfe8 Clean up old automake options. %!s(int64=7) %!d(string=hai) anos
README b68e2e53b3 Remove some trailing whitespace in documentation. %!s(int64=14) %!d(string=hai) anos
SConstruct 468ef6fca4 Add a tiff2theora example. %!s(int64=14) %!d(string=hai) anos
autogen.sh 9f506d4c3c Update autogen.sh script to just call autoreconf. %!s(int64=7) %!d(string=hai) anos
configure.ac 21f079ac45 Rename version suffix to +git. %!s(int64=7) %!d(string=hai) anos
libtheora.spec.in 3ceb8c59e0 Copy Derf's experimental ptalarbvorm branch to trunk. %!s(int64=14) %!d(string=hai) anos
theora-uninstalled.pc.in 3ceb8c59e0 Copy Derf's experimental ptalarbvorm branch to trunk. %!s(int64=14) %!d(string=hai) anos
theora.pc.in 3ceb8c59e0 Copy Derf's experimental ptalarbvorm branch to trunk. %!s(int64=14) %!d(string=hai) anos
theoradec-uninstalled.pc.in 3ceb8c59e0 Copy Derf's experimental ptalarbvorm branch to trunk. %!s(int64=14) %!d(string=hai) anos
theoradec.pc.in 3ceb8c59e0 Copy Derf's experimental ptalarbvorm branch to trunk. %!s(int64=14) %!d(string=hai) anos
theoraenc-uninstalled.pc.in 3ceb8c59e0 Copy Derf's experimental ptalarbvorm branch to trunk. %!s(int64=14) %!d(string=hai) anos
theoraenc.pc.in 3ceb8c59e0 Copy Derf's experimental ptalarbvorm branch to trunk. %!s(int64=14) %!d(string=hai) anos

README

-------------------------------------------------------------------------
The Xiph.org Foundation's libtheora 1.2
-------------------------------------------------------------------------

*** What is Theora?

Theora is Xiph.Org's first publicly released video codec, intended
for use within the Foundation's Ogg multimedia streaming system.
Theora is derived directly from On2's VP3 codec, adds new features
while allow it a longer useful lifetime as an competitive codec.

The 1.0 release decoder supported all the new features, but the
encoder is nearly identical to the VP3 code.

The 1.1 release featured a completely rewritten encoder, offering
better performance and compression, and making more complete use
of the format's feature set.

The 1.2 release features significant additional improvements in
compression and performance. Files produced by newer encoders can
be decoded by earlier releases.

*** Where is Theora?

Theora's main site is www.theora.org. Theora and related libraries
can be gotten from www.theora.org or the main Xiph.Org site at
www.xiph.org. Development source is kept in an open subversion
repository, see http://theora.org/svn/ for instructions.

-------------------------------------------------------------------------
Getting started with the code
-------------------------------------------------------------------------

*** What do I need to build the source?

Requirements summary:

For libtheora:

libogg 1.1 or newer.

For example encoder:

as above,

libvorbis and libvorbisenc 1.0.1 or newer.
(libvorbis 1.3.1 or newer for 5.1 audio)

For creating a source distribution package:

as above,

Doxygen to build the API documentation,
pdflatex and fig2dev to build the format specification
(transfig package in Ubuntu).

For the player only:

as above,

SDL (Simple Direct media Layer) libraries and headers,
OSS audio driver and development headers.

The provided build system is the GNU automake/autoconf system, and
the main library, libtheora, should already build smoothly on any
system. Failure of libtheora to build on a GNU-enabled system is
considered a bug; please report problems to theora-dev@xiph.org.

Windows build support is included in the win32 directory.

Project files for Apple XCode are included in the macosx directory.

There is also a more limited scons build.

*** How do I use the sample encoder?

The sample encoder takes raw video in YUV4MPEG2 format, as used by
lavtools, mjpeg-tools and other packages. The encoder expects audio,
if any, in a separate wave WAV file. Try 'encoder_example -h' for a
complete list of options.

An easy way to get raw video and audio files is to use MPlayer as an
export utility. The options " -ao pcm -vo yuv4mpeg " will export a
wav file named audiodump.wav and a YUV video file in the correct
format for encoder_example as stream.yuv. Be careful when exporting
video alone; MPlayer may drop frames to 'keep up' with the audio
timer. The example encoder can't properly synchronize input audio and
video file that aren't in sync to begin with.

The encoder will also take video or audio on stdin if '-' is specified
as the input file name.

There is also a 'png2theora' example which accepts a set of image
files in that format.

*** How do I use the sample player?

The sample player takes an Ogg file on standard in; the file may be
audio alone, video alone or video with audio.

*** What other tools are available?

The programs in the examples directory are intended as tutorial source
for developers using the library. As such they sacrifice features and
robustness in the interests of comprehension and should not be
considered serious applications.

If you're wanting to just use theora, consider the programs linked
from http://www.theora.org/. There is playback support in a number
of common free players, and plugins for major media frameworks.
Jan Gerber's ffmpeg2theora is an excellent encoding front end.

-------------------------------------------------------------------------
Troubleshooting the build process
-------------------------------------------------------------------------

*** Compile error, such as:

encoder_internal.h:664: parse error before `ogg_uint16_t'

This means you have version of libogg prior to 1.1. A *complete* new Ogg
install, libs and headers is needed.

Also be sure that there aren't multiple copies of Ogg installed in
/usr and /usr/local; an older one might be first on the search path
for libs and headers.

*** Link error, such as:

undefined reference to `oggpackB_stream'

See above; you need libogg 1.1 or later.

*** Link error, such as:

undefined reference to `vorbis_granule_time'

You need libvorbis and libvorbisenc from the 1.0.1 release or later.

*** Link error, such as:

/usr/lib/libSDL.a(SDL_esdaudio.lo): In function `ESD_OpenAudio':
SDL_esdaudio.lo(.text+0x25d): undefined reference to `esd_play_stream'

Be sure to use an SDL that's built to work with OSS. If you use an
SDL that is also built with ESD and/or ALSA support, it will try to
suck in all those extra libraries at link time too. That will only
work if the extra libraries are also installed.

*** Link warning, such as:

libtool: link: warning: library `/usr/lib/libogg.la' was moved.
libtool: link: warning: library `/usr/lib/libogg.la' was moved.

Re-run theora/autogen.sh after an Ogg or Vorbis rebuild/reinstall