README 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. -------------------------------------------------------------------------
  2. The Xiph.org Foundation's libtheora 1.1
  3. -------------------------------------------------------------------------
  4. *** What is Theora?
  5. Theora is Xiph.Org's first publicly released video codec, intended
  6. for use within the Foundation's Ogg multimedia streaming system.
  7. Theora is derived directly from On2's VP3 codec, adds new features
  8. while allow it a longer useful lifetime as an competitive codec.
  9. The 1.0 release decoder supported all the new features, but the
  10. encoder is nearly identical to the VP3 code.
  11. The 1.1 release features a completely rewritten encoder, offering
  12. better performance and compression, and making more complete use
  13. of the format's feature set. Files produced by both encoders can
  14. be decoded by either release.
  15. *** 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.
  20. -------------------------------------------------------------------------
  21. Getting started with the code
  22. -------------------------------------------------------------------------
  23. *** What do I need to build the source?
  24. Requirements summary:
  25. For libtheora:
  26. libogg 1.1 or newer.
  27. For example encoder:
  28. as above,
  29. libvorbis and libvorbisenc 1.0.1 or newer.
  30. For creating a source distribution package:
  31. as above,
  32. Doxygen to build the API documentation,
  33. pdflatex and fig2dev to build the format specification
  34. (transfig package in Ubuntu).
  35. For the player only:
  36. as above,
  37. SDL (Simple Direct media Layer) libraries and headers,
  38. OSS audio driver and development headers.
  39. The provided build system is the GNU automake/autoconf system, and
  40. the main library, libtheora, should already build smoothly on any
  41. system. Failure of libtheora to build on a GNU-enabled system is
  42. considered a bug; please report problems to [email protected].
  43. Windows build support is included in the win32 directory.
  44. Project files for Apple XCode are included in the macosx directory.
  45. There is also an experimental scons build.
  46. *** How do I use the sample encoder?
  47. The sample encoder takes raw video in YUV4MPEG2 format, as used by
  48. lavtools, mjpeg-tools and other packages. The encoder expects audio,
  49. if any, in a separate wave WAV file. Try 'encoder_example -h' for a
  50. complete list of options.
  51. An easy way to get raw video and audio files is to use MPlayer as an
  52. export utility. The options " -ao pcm -vo yuv4mpeg " will export a
  53. wav file named audiodump.wav and a YUV video file in the correct
  54. format for encoder_example as stream.yuv. Be careful when exporting
  55. video alone; MPlayer may drop frames to 'keep up' with the audio
  56. timer. The example encoder can't properly synchronize input audio and
  57. video file that aren't in sync to begin with.
  58. The encoder will also take video or audio on stdin if '-' is specified
  59. as the input file name.
  60. There is also a 'png2theora' example which accepts a set of image
  61. files in that format.
  62. *** How do I use the sample player?
  63. The sample player takes an Ogg file on standard in; the file may be
  64. audio alone, video alone or video with audio.
  65. *** What other tools are available?
  66. The programs in the examples directory are intended as tutorial source
  67. for developers using the library. As such they sacrifice features and
  68. robustness in the interests of comprehension and should not be
  69. considered serious applications.
  70. If you're wanting to just use theora, consider the programs linked
  71. from http://www.theora.org/. There is playback support in a number
  72. of common free players, and plugins for major media frameworks.
  73. Jan Gerber's ffmpeg2theora is an excellent encoding front end.
  74. -------------------------------------------------------------------------
  75. Troubleshooting the build process
  76. -------------------------------------------------------------------------
  77. *** Compile error, such as:
  78. encoder_internal.h:664: parse error before `ogg_uint16_t'
  79. This means you have version of libogg prior to 1.1. A *complete* new Ogg
  80. install, libs and headers is needed.
  81. Also be sure that there aren't multiple copies of Ogg installed in
  82. /usr and /usr/local; an older one might be first on the search path
  83. for libs and headers.
  84. *** Link error, such as:
  85. undefined reference to `oggpackB_stream'
  86. See above; you need libogg 1.1 or later.
  87. *** Link error, such as:
  88. undefined reference to `vorbis_granule_time'
  89. You need libvorbis and libvorbisenc from the 1.0.1 release or later.
  90. *** Link error, such as:
  91. /usr/lib/libSDL.a(SDL_esdaudio.lo): In function `ESD_OpenAudio':
  92. SDL_esdaudio.lo(.text+0x25d): undefined reference to `esd_play_stream'
  93. Be sure to use an SDL that's built to work with OSS. If you use an
  94. SDL that is also built with ESD and/or ALSA support, it will try to
  95. suck in all those extra libraries at link time too. That will only
  96. work if the extra libraries are also installed.
  97. *** Link warning, such as:
  98. libtool: link: warning: library `/usr/lib/libogg.la' was moved.
  99. libtool: link: warning: library `/usr/lib/libogg.la' was moved.
  100. Re-run theora/autogen.sh after an Ogg or Vorbis rebuild/reinstall