Recognizes if input is ogg or not.
[xiph/unicode.git] / theora / README
blob97ad4f26a2ea85a0b078486a85ea3eee7f7494ff
1 -------------------------------------------------------------------------
2           The Xiph.org Foundation's libtheora 1.0beta1 release
3 -------------------------------------------------------------------------
5 *** What is Theora?
7 Theora is Xiph.Org's first publicly released video codec, intended
8 for use within the Foundation's Ogg multimedia streaming system.
9 Theora is derived directly from On2's VP3 codec; Currently the 
10 encoders are nearly identical, but Theora will make use of new
11 features supported by the decoder to improve over what is 
12 is possible with VP3.
14 *** Where is Theora?
16 Theora's main site is www.theora.org.  Theora and related libraries
17 can be gotten from www.theora.org or the main Xiph.Org site at
18 www.xiph.org.  Development source is kept in an open subversion 
19 repository, see http://theora.org/svn/ for instructions.
21 *** What is the goal of this release?
23 This is the first beta release of the 1.0 reference implementation.
24 It is intended to completely support the decoder specification, and
25 gather feedback on the implementation before declaring it stable.
27 -------------------------------------------------------------------------
28 Getting started with the code
29 -------------------------------------------------------------------------
31 *** What do I need to build the source?
33 Requirements summary:
35   For libtheora:
37       libogg 1.1 or newer.
39   For example encoder:
41       as above,
43       libvorbis and libvorbisenc 1.0.1 or newer.
45   For creating a source distribution package:
47       as above,
49       fig2dev to build the documentation (transfig package in Ubuntu).
51   For the player only:
53       as above,
55       SDL (Simple Direct media Layer) libraries and headers,
57       OSS audio driver and development headers.
59 The provided build system is the GNU automake/autoconf system, and
60 the main library, libtheora, should already build smoothly on any
61 system.  Failure of libtheora to build on a GNU-enabled system is
62 considered a bug; please report problems to theora-dev@xiph.org.
64 Some windows build support is included in the win32 directory.
66 There is also an experimental scons build.
68 *** How do I use the sample encoder?
70 The sample encoder takes raw video in YUV4MPEG2 format, as used by
71 lavtools, mjpeg-tools and other packages. The encoder expects audio,
72 if any, in a separate wave WAV file. Try 'encoder_example -h' for a 
73 complete list of options.
75 An easy way to get raw video and audio files is to use MPlayer as an
76 export utility.  The options " -ao pcm -vo yuv4mpeg " will export a
77 wav file named audiodump.wav and a YUV video file in the correct
78 format for encoder_example as stream.yuv.  Be careful when exporting
79 video alone; MPlayer may drop frames to 'keep up' with the audio
80 timer.  The example encoder can't properly synchronize input audio and
81 video file that aren't in sync to begin with.  
83 The encoder will also take video or audio on stdin if '-' is specified
84 as the input file name.
86 There is also a 'png2theora' example which accepts a set of image
87 files in that format.
89 *** How do I use the sample player?
91 The sample player takes an Ogg file on standard in; the file may be
92 audio alone, video alone or video with audio.
94 *** What other tools are available?
96 The programs in the examples directory are intended as tutorial source 
97 for developers using the library. As such they sacrifice features and 
98 robustness in the interests of comprehension and should not be 
99 considered serious applications.
101 If you're wanting to just use theora, consider the programs linked
102 from http://www.theora.org/. There is playback support in a number
103 of common free players, and plugins for major media frameworks.
104 Jan Gerber's ffmpeg2theora is an excellent encoding front end.
106 -------------------------------------------------------------------------
107 Troubleshooting the build process
108 -------------------------------------------------------------------------
110 *** Compile error, such as:
112 encoder_internal.h:664: parse error before `ogg_uint16_t'
114 This means you have version of libogg prior to 1.1. A *complete* new Ogg 
115 install, libs and headers is needed.
117 Also be sure that there aren't multiple copies of Ogg installed in
118 /usr and /usr/local; an older one might be first on the search path
119 for libs and headers.
121 *** Link error, such as:
123 undefined reference to `oggpackB_stream'
125 See above; you need libogg 1.1 or later.
127 *** Link error, such as:
129 undefined reference to `vorbis_granule_time'
131 You need libvorbis and libvorbisenc from the 1.0.1 release or later.
133 *** Link error, such as:
135 /usr/lib/libSDL.a(SDL_esdaudio.lo): In function `ESD_OpenAudio':
136 SDL_esdaudio.lo(.text+0x25d): undefined reference to `esd_play_stream'
138 Be sure to use an SDL that's built to work with OSS.  If you use an
139 SDL that is also built with ESD and/or ALSA support, it will try to
140 suck in all those extra libraries at link time too.  That will only
141 work if the extra libraries are also installed.
143 *** Link warning, such as:
145 libtool: link: warning: library `/usr/lib/libogg.la' was moved.
146 libtool: link: warning: library `/usr/lib/libogg.la' was moved.
148 Re-run theora/autogen.sh after an Ogg or Vorbis rebuild/reinstall