README 5.3 KB

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