Theora

From Wikipedia, the free encyclopedia
(Redirected from Libtheora)
Jump to navigation Jump to search

Theora
File:Theora logo 2007.svg
Filename extension
.ogv, .ogg
Internet media type
video/ogg
Developed byXiph.Org Foundation
Initial release1 June 2004 (2004-06-01)[1]
Latest release
Theora I
3 June 2017[2]
Type of formatVideo coding format
Contained byOgg, Matroska
Extended fromVP3
StandardSpecification
Open format?Yes[3]
Free format?Yes[4]
Websitetheora.org
libtheora
DeveloperXiph.Org Foundation
Initial release3 November 2008 (2008-11-03) (1.0)
Stable release
1.2.0 / 29 March 2025; 14 months ago (2025-03-29)[5]
Preview release
1.2.0 Beta 1 / 16 March 2025; 15 months ago (2025-03-16)[6]
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Written inC
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemUnix-like (incl Linux, Mac OS X), Windows
    TypeVideo codec, reference implementation
    License3-clause BSD
    Websitewww.theora.org

    Theora is a free lossy video compression format.[7] It was developed by the Xiph.Org Foundation and distributed without licensing fees alongside their other free and open media projects, including the Vorbis audio format and the Ogg container.

    The libtheora video codec is the reference implementation of the Theora video compression format developed by the Xiph.Org Foundation.[8][9]

    Theora was derived from the formerly proprietary VP3 codec, released into the public domain by On2 Technologies. It is broadly comparable in design and bitrate efficiency to MPEG-4 Part 2, early versions of Windows Media Video, and RealVideo while it lacked some of the features present in some of these other codecs. It is comparable in open standards philosophy to the BBC's Dirac codec.

    Theora was named after Theora Jones, Edison Carter's Controller on the Max Headroom television program.[10]

    Technical details

    [edit | edit source]

    Theora is a variable-bitrate, DCT-based video compression scheme. Like most common video codecs, Theora used chroma subsampling, block-based motion compensation and an 8-by-8 DCT block. Pixels are grouped into various structures, namely blocks, super blocks, and macroblocks. Theora supports intra-coded frames ("keyframes") and forward-predictive frames, but not bi-predictive frames which are found in H.264 and VC-1. Theora also does not support interlacing, or bit-depths larger than 8 bits per component.[2]

    Theora video streams can be stored in any suitable container format, but they are most commonly found in the Ogg container with Vorbis or FLAC audio streams. This combination provided a completely open, royalty-free multimedia format. It can also be used with the Matroska container.[11]

    The Theora video-compression format is compatible with the VP3 video-compression format, which consisted of a backward-compatible superset.[12][13] Theora is a superset of VP3, and VP3 streams (with some minor syntactic modifications) can be converted into Theora streams without recompression (but not vice versa).[13] VP3 video compression can be decoded using Theora implementations, but Theora video compression usually cannot be decoded using old VP3 implementations.

    History

    [edit | edit source]

    Theora's predecessor On2 TrueMotion VP3 was originally a proprietary and patent-encumbered video codec developed by On2 Technologies. VP3.1 was introduced in May 2000[14] and followed three months later by the VP3.2 release,[15] which was the basis for Theora.

    Move to free software

    [edit | edit source]

    In August 2001, On2 Technologies announced that they would release an open source version of their VP3.2 video compression algorithm.[16][17] In September 2001, On2 Technologies published the source code of the VP3.2 codec under the VP3.2 Public License 0.1,[18] a custom open-source license.[19][20] The license only granted the right to modify the source code if the resultant larger work continued to support playback of VP3.2 data.[18][21]

    In March 2002, On2 responded to the public's reception by relicensing the VP3 codec under the GNU Lesser General Public License.[22] In June 2002, On2 donated VP3 to the Xiph.Org Foundation and offered it under the Ogg Vorbis BSD-style license.[23][24][25][26] On2 also made an irrevocable, royalty-free license grant for any patent claims it might have over the software and any derivatives,[2] allowing anyone to use any VP3-derived codec for any purpose.[12][27] In August 2002, On2 entered into an agreement with the Xiph.Org Foundation to make VP3 the basis of a new, free video codec, called Theora.[28] On2 declared Theora to be VP3's successor.[citation needed] On 3 October 2002, On2 and Xiph announced the completion and availability of the initial alpha code release of libtheora, Theora's reference implementation.[29]

    There is no formal specification for VP3's bitstream format beyond the VP3 source code published by On2 Technologies. In 2003, Mike Melanson created an incomplete description of the VP3 bitstream format and decoding process at a higher level than source code, with some help from On2 and Xiph.Org Foundation. The Theora specification adopted some portions of this VP3 description.[2][30]

    A successor to Theora, Daala, was later merged into AV1.[31]

    Theora I specification

    [edit | edit source]
    File:I-15bis.ogg
    Example of a Theora video used on Wikipedia, showing a Polikarpov I-15 biplane at an aerobatic display.

    The Theora I bitstream format was frozen in June 2004 after the libtheora 1.0alpha3 release.[1] Videos encoded with any version of the libtheora since the alpha3 will be compatible with any future player.[1][32] This is also true for videos encoded with any implementation of the Theora I specification since the format freeze. The Theora I Specification was completely published in 2004.[33] Any later changes in the specification are minor updates.

    The Theora reference implementation libtheora spent several years in alpha and beta status.[32] The first alpha version was released on 25 September 2002 and the first beta version was released on 22 September 2007.[34] The first stable release of libtheora was made in November 2008.[35][36] Work then focused on improving the codec's performance in the "Thusnelda" branch, which was released as version 1.1 in September 2009 as the second stable libtheora release.[32][37] This release brought some technical improvements and new features, such as the new rate control module and the two-pass rate control.

    The codename for the next version of libtheora was Ptalarbvorm.[38]

    Theora was well established as a video format in open-source applications, and became the format used for Wikipedia's video content before replaced by VP9. However, the proposed adoption of Theora as part of the baseline video support in HTML5 resulted in controversy.[39]

    Legacy

    [edit | edit source]

    In October 2023, Google announced intent to remove Theora support from Chromium[40] (finalizing removal by Google Chrome 123[41]), with Firefox following suit.[42] Google developers claimed that despite lack of adoption, Theora made a case for open and royalty-free codecs like AV1.[43][better source needed]

    Performance

    [edit | edit source]

    Encoding performance

    [edit | edit source]

    Evaluations of the VP3[44] and early Theora encoders[45][46][47] found that their subjective visual quality was inferior to that of contemporary video codecs. The performance characteristics of the Theora 1.0 reference implementation are dominated mostly by implementation problems inherited from the original VP3 code base.[48] Work that lead up to the 1.1 stable release focused on improving on or eliminating these. A May 2009 review of this work by Xiph developer Chris Montgomery claimed a considerable improvement in quality, both subjectively and as measured by PSNR, by improving the forward DCT and quantisation matrices.[49] More recently however,[when?] Xiph developers compared the 1.1 Theora encoder to YouTube's H.264 and H.263+ encoders, in response to concerns raised in 2009 about Theora's inferior performance by Chris DiBona, a Google employee.[50] They found the results from Theora to be nearly the same as YouTube's H.264 output, and much better than the H.263+ output.[51][52]

    The differences in quality, bitrate and file size between a YouTube H.264 video and a transcoded Ogg video file are very small.[53]

    Playback performance

    [edit | edit source]

    There was an open-source VHDL code base for a hardware Theora decoder in development.[54][needs update] It began as a 2006 Google Summer of Code project, and it has been developed on both the Nios II and LEON processors.[55] However, there are no Theora decoder chips in production, and portable media players, smartphones and similar devices with limited computing power rely on such chips to provide efficient playback.[citation needed]

    Playback

    [edit | edit source]

    Web browsers

    [edit | edit source]

    As originally recommended by HTML 5, these browsers support Theora when embedded by the video element:

    Supporting media frameworks

    [edit | edit source]

    Supporting applications

    [edit | edit source]

    Encoding

    [edit | edit source]

    There are several third-party programs that support encoding through libtheora:

    Name Description Operating Systems Supported
    Unix-like OS X Windows
    ffmpeg2theora[74]
    A command-line program that transcodes video by decoding with FFmpeg and reencoding with libtheora to encode it Yes Yes Yes
    VLC
    Can transcode to single-pass Theora 1.0 and optionally stream it Yes Yes Yes
    FreeJ
    "Video DJing" software that can encode to and stream Theora Yes Yes ?
    Kdenlive
    The video editor supplied with KDE Yes ? ?
    Pitivi
    The video editor supplied with GNOME Yes ? ?
    LiVES
    Video editing software for Linux. Can edit, encode and stream theora. Yes Yes ?
    HandBrake
    Can output to Theora only with the Matroska container Yes Yes Yes
    RecordMyDesktop
    Records the screen to Ogg Theora with optional Vorbis audio Yes ? ?

    The libtheora library contains the reference implementation of the Theora specification for encoding and decoding. libtheora was developed by the Xiph.Org Foundation. The library was released under the terms of a BSD-style license.

    Also, several media frameworks have support for Theora.

    • The open-source ffdshow audio/video decoder is capable of encoding Theora videos using its Video for Windows (VFW) multi-codec interface within popular AVI editing programs.[75][76][77] It supports both encoding and decoding Theora video streams and uses Theora's alpha 4 libraries. However, many of the more refined features of Theora are not available to the user in ffdshow's interface.
    • The GStreamer framework has support for parsing raw Theora streams, encoding and decoding raw Theora streams to/from YUV video[78][79]

    Editing

    [edit | edit source]
    Name Description Operating Systems Supported
    Unix-like OS X Windows
    LiVES
    Video editing software for Linux. Can edit, encode and stream theora. Yes Yes ?
    Kdenlive
    The KDE video editor. Yes ? ?
    OpenShot
    Yes ? ?
    Pitivi
    The GNOME video editor. Yes ? ?
    Cinelerra
    CVS versions of the Cinelerra non-linear video editing system support Theora, as of August 2005. Yes Yes ?
    oggz-tools by Xiph.org
    Command line programs to examine and edit Ogg files. Yes ? Yes
    Ogg Video Tools by yornstreamnik
    Tools to resize, cut, split, join, and others[80] Yes Yes Yes
    AVS Video Editor
    ? ? Yes

    Streaming

    [edit | edit source]

    The following streaming media servers are capable of streaming Theora video:

    Name Description Operating Systems Supported
    Unix-like OS X Windows
    VLC
    Yes Yes Yes
    Icecast
    Yes ? Yes
    LiVES
    Can stream ogg/theora/vorbis in realtime to a file or fifo. Yes Yes ?

    Makers

    [edit | edit source]

    Elphel is the main maker of cameras that record in theora.

    See also

    [edit | edit source]

    Lua error in mw.title.lua at line 392: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

    References

    [edit | edit source]
    1. ^ a b c Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ a b c d Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    7. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
    8. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    9. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    10. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    11. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    12. ^ a b Xiph.org libtheora license (Subversion – Trunk), Retrieved on 16 August 2009
    13. ^ a b Xiph.org FAQ – Theora and VP3. Retrieved 2 September 2009
    14. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    15. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    16. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    17. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    18. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    19. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    20. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    21. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    22. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    23. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    24. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    25. ^ Linux.com (23 June 2002) Ogg Vorbis, VP3 combining forces to create Open Source multimedia package, Retrieved on 2009-08-16
    26. ^ InternetNews.com (24 June 2002) On2 Throws More Open-Source at MPEG-4, Retrieved on 16 August 2009
    27. ^ Xiph.org VP32 codec license (Subversion – Trunk), Retrieved on 16 August 2009
    28. ^ The Free Library (1 August 2002) On2 Signs Pact With Xiph.org to Develop/Support VP3, Retrieved on 16 August 2009
    29. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    30. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    31. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    32. ^ a b c Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    33. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    34. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    35. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    36. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    37. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    38. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    39. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    40. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    41. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    42. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    43. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    44. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    45. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    46. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    47. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    48. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    49. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    50. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    51. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    52. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    53. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    54. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    55. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    56. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    57. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    58. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    59. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    60. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    61. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    62. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    63. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    64. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    65. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    66. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    67. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    68. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    69. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    70. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    71. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    72. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    73. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    74. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    75. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    76. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    77. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    78. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    79. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    80. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]