词条 | Ogg | ||||||||||||||||
释义 |
| name = Ogg | icon = | logo = | extension = .ogg, .ogv, .oga, .ogx, .ogm, .spx, .opus | mime = video/ogg, audio/ogg, application/ogg | magic = OggS | owner = Xiph.Org Foundation | genre = Container format | container for = Vorbis, Theora, Speex, Opus, FLAC, Dirac, and others. | free = Yes }}{{Infobox software | name = libogg | logo = Ogg Logo.svg | logo size = | developer = Xiph.Org Foundation | latest_release_version = 1.3.3 | latest_release_date = {{Release date and age|2017|11|07}} | genre = Reference implementation (multiplexer/demultiplexer) | license = BSD-style license[1] | website = {{URL|downloads.xiph.org/releases/ogg/}} }}Ogg is a free, open container format maintained by the Xiph.Org Foundation. The creators of the Ogg format state that it is unrestricted by software patents[2] and is designed to provide for efficient streaming and manipulation of high-quality digital multimedia. Its name is derived from "ogging", jargon from the computer game Netrek.[3] The Ogg container format can multiplex a number of independent streams for audio, video, text (such as subtitles), and metadata. In the Ogg multimedia framework, Theora provides a lossy video layer. The audio layer is most commonly provided by the music-oriented Vorbis format or its successor Opus. Lossless audio compression formats include FLAC, and OggPCM. Before 2007, the .ogg filename extension was used for all files whose content used the Ogg container format. Since 2007, the Xiph.Org Foundation recommends that .ogg only be used for Ogg Vorbis audio files. The Xiph.Org Foundation decided to create a new set of file extensions and media types to describe different types of content such as .oga for audio only files, .ogv for video with or without sound (including Theora), and .ogx for multiplexed Ogg.[4] As of November 7, 2017, the current version of the Xiph.Org Foundation's reference implementation is libogg 1.3.3.[5] Another version, libogg2, has been in development, but is awaiting a rewrite as of 2018.[6] Both software libraries are free software, released under the New BSD License. Ogg reference implementation was separated from Vorbis on September 2, 2000.[7] Because the format is free, and its reference implementation is not subject to restrictions associated with copyright, Ogg's various codecs have been incorporated into a number of different free and proprietary media players, both commercial and non-commercial, as well as portable media players and GPS receivers from different manufacturers. NamingIt is sometimes assumed that the name "Ogg" comes from the character of Nanny Ogg in Terry Pratchett's Discworld novels, but the Ogg developers say that is not true.[8] Ogg is derived from "ogging", jargon from the computer game Netrek, which came to mean doing something forcefully, possibly without consideration of the drain on future resources.[3] At its inception, the Ogg project was thought to be somewhat ambitious given the power of the PC hardware of the time.[8] Still, to quote the same reference: "Vorbis, on the other hand is named after the Terry Pratchett character from the book Small Gods". The Ogg Vorbis project started in 1993. It was originally named "Squish" but that name was already trademarked, so the project underwent a name change. The new name, "OggSquish", was used until 2001 when it was changed again to "Ogg". Ogg has since come to refer to the container format, which is now part of the larger Xiph.org multimedia project. Today, "Squish" (now known as "Vorbis") refers to a particular audio coding format typically used with the Ogg container format.[9] File formatThe "Ogg" bitstream format, spearheaded by the Xiph.Org Foundation, has been created as the framework of a larger initiative aimed at developing a set of components for the coding and decoding of multimedia content, which are available free of charge and freely re-implementable in software. The format consists of chunks of data each called an "Ogg page". Each page begins with the characters, "OggS", to identify the file as Ogg format. A "serial number" and "page number" in the page header identifies each page as part of a series of pages making up a bitstream. Multiple bitstreams may be multiplexed in the file where pages from each bitstream are ordered by the seek time of the contained data. Bitstreams may also be appended to existing files, a process known as "chaining", to cause the bitstreams to be decoded in sequence. A BSD-licensed library, called "libvorbis", is available to encode and decode data from "Vorbis" streams. Independent Ogg implementations are used in several projects such as RealPlayer and a set of DirectShow filters.[10] Mogg, the "Multi-Track-Single-Logical-Stream Ogg-Vorbis", is the multi-channel or multi-track Ogg file format. Page structure{{Main article|Ogg page}}The following is the field layout of an Ogg page header:
The capture pattern or sync code is a magic number used to ensure synchronization when parsing Ogg files. Every page starts with the four ASCII character sequence, "OggS". This assists in resynchronizing a parser in cases where data has been lost or is corrupted, and is a sanity check before commencing parsing of the page structure.
This field indicates the version of the Ogg bitstream format, to allow for future expansion. It is currently mandated to be 0.
This is an 8 bit field of flags, which indicates the type of page that follows.
A granule position is the time marker in Ogg files. It is an abstract value, whose meaning is determined by the codec. It may, for example, be a count of the number of samples, the number of frames or a more complex scheme.
This field is a serial number that identifies a page as belonging to a particular logical bitstream. Each logical bitstream in a file has a unique value, and this field allows implementations to deliver the pages to the appropriate decoder. In a typical Vorbis and Theora file, one stream is the audio (Vorbis), and the other is the video (Theora)
This field is a monotonically increasing field for each logical bitstream. The first page is 0, the second 1, etc. This allows implementations to detect when data has been lost.
This field provides a CRC32 checksum of the data in the entire page (including the page header, calculated with the checksum field set to 0). This allows verification that the data has not been corrupted since it was created. Pages that fail the checksum should be discarded. The checksum is generated using a polynomial value of 0x04C11DB7.
This field indicates the number of segments that exist in this page. It also indicates how many bytes are in the segment table that follows this field. There can be a maximum of 255 segments in any one page.
The segment table is a vector of 8-bit values, each indicating the length of the corresponding segment within the page body. The number of segments is determined from the preceding Page Segments field. Each segment is between 0 and 255 bytes in length. The segments provide a way to group segments into packets, which are meaningful units of data for the decoder. When the segment's length is indicated to be 255, this indicates that the following segment is to be concatenated to this one and is part of the same packet. When the segment's length is 0–254, this indicates that this segment is the final segment in this packet. Where a packet's length is a multiple of 255, the final segment is length 0. Where the final packet continues on the next page, the final segment value is 255, and the continuation flag is set on the following page to indicate that the start of the new page is a continuation of last page. Metadata[https://wiki.xiph.org/VorbisComment VorbisComment] is a base-level Metadata format initially created for use with Ogg Vorbis. It has since been adopted in the specifications of Ogg encapsulations for other Xiph.Org codecs including Theora, Speex and FLAC. VorbisComment is the simplest and most widely-supported mechanism for storing metadata with Xiph.Org codecs.[11] Other existing and proposed mechanisms are:[12]
HistoryThe Ogg project began with a simple audio compression package as part of a larger project in 1993.[8] The software was originally named Squish but due to an existing trade mark it was renamed to OggSquish. This name was later used for the whole Ogg project. In 1997, the Xiphophorus OggSquish was described as "an attempt both to create a flexible compressed audio format for modern audio applications as well as to provide the first audio format that is common on any and every modern computer platform".[13] The OggSquish was in 2000 referred to as "a group of several related multimedia and signal processing projects". In 2000, two projects were in active development for planned release: Ogg Vorbis format and libvorbis - the reference implementation of Vorbis. Research also included work on future video and lossless audio coding.[8][14][15][16][17] In 2001, OggSquish was renamed to Ogg and it was described as "the umbrella for a group of several related multimedia and signal processing projects".[18] Ogg has come to stand for the file format, as part of the larger Xiph.org multimedia project. Squish became just the name of one of the Ogg codecs.[9] In 2009, Ogg is described as "a multimedia container format, and the native file and stream format for the Xiph.org multimedia codecs".[19] Ogg reference implementation was separated from Vorbis on September 2, 2000.[7] In May 2003, two Internet RFCs were published relating to the format. The Ogg bitstream was defined in RFC 3533 (which is classified as 'informative') and its Internet content type ( OGMIn 2002, the lack of formal video support in Ogg resulted in the creation of the OGM file format, a hack on Ogg that allowed embedding of video from the Microsoft DirectShow framework into an Ogg-based wrapper. OGM was initially supported only by closed source Windows-only tools, but the code base was subsequently opened. Later, video (and subtitle) support were formally specified for Ogg but in a manner incompatible with OGM. Independently, the Matroska container format reached maturity and provided an alternative for people interested in combining Vorbis audio and arbitrary video codecs. As a result, OGM is no longer supported or developed and is formally discouraged by Xiph.org.[20] Today, video in Ogg is found with the .ogv file extension, which is formally specified and officially supported. Software and codecs that support .ogm files are available without charge.[21] 2006Although Ogg hadn't reached anywhere near the ubiquity of the MPEG standards[22][23] (e.g., MP3/MP4), {{As of|2006|lc=on}}, it was commonly used to encode free content (such as free music, multimedia on Wikimedia Foundation projects and Creative Commons files) and had started to be supported by a significant minority of digital audio players. Also supporting the Ogg format were many popular video game engines, including Doom 3, Unreal Tournament 2004, Combat Evolved, Jets n Guns, The City of Lost Heaven, Revelation, Stepmania, The Second Encounter, Lineage 2, Vendetta Online, Battlefield 2, and the Grand Theft Auto engines, as well as the audio files of the Java-based game, Minecraft. The more popular Vorbis codec had built-in support on many software players, and extensions were available for nearly all the rest. 2007On May 16, 2007, the Free Software Foundation started a campaign to increase the use of Vorbis "as an ethically, legally and technically superior audio alternative to the proprietary MP3 format."[24] People were also encouraged to support the campaign by adding a web button to their website or blog. For those who don't want to download and use FSF's suggested Ogg player (VLC), the Xiph.Org Foundation had an official codec[25] for QuickTime-based applications in Windows and Mac OS X, such as iTunes players and iMovie applications; and Windows users could install a Windows Media Player Ogg codec.[26] 2009By June 30, 2009, the Ogg container, through the use of the Theora and Vorbis, was the only container format included in Firefox 3.5 web browser's implementation of the HTML 5 2010On March 3, 2010, a technical analysis by an FFmpeg developer was critical about the general purpose abilities of Ogg as a multimedia container format.[29] In a lengthy response, the creator of Ogg refuted these claims.[30] Ogg codecsOgg is only a container format. The actual audio or video encoded by a codec is stored inside an Ogg container. Ogg containers may contain streams encoded with multiple codecs, for example, a video file with sound contains data encoded by both an audio codec and a video codec. Being a container format, Ogg can embed audio and video in various formats[31][32] (such as Dirac, MNG, CELT, MPEG-4, MP3 and others) but Ogg was intended to be, and usually is, used with the following Xiph.org free codecs:
See also
References1. ^{{cite web | publisher = Xiph.Org Foundation | title = Sample Xiph.Org Variant of the BSD License | url = http://www.xiph.org/licenses/bsd/ | accessdate = 2009-08-29}} 2. ^{{Cite web |url=http://www.vorbis.com/faq/#what |title=Archived copy |access-date=2010-05-28 |archive-url=https://web.archive.org/web/20051001065649/http://vorbis.com/faq/#what#what |archive-date=2005-10-01 |dead-url=yes |df= }} 3. ^1 {{cite web | quote=3.3 Ogging: This is the art of killing a carrier, or potential carrier, by a suicide run. | title=Ogging 101 | url=http://www.netrek.org/clueguides/ogging-101.html | accessdate = 2016-11-06}} 4. ^{{cite web|url = http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions|title = MIME Types and File Extensions|work = XiphWiki|date = 2007-09-07|accessdate = 2007-09-10}} 5. ^{{cite mailing list |last=Giles |first=Ralph |title=libogg 1.3.3 release |mailinglist=ogg-dev |url=http://lists.xiph.org/pipermail/ogg-dev/2017-November/001933.html |date=2017-11-07 |accessdate=2019-01-14}} 6. ^{{cite mailing list |last=Giles |first=Ralph |url=http://lists.xiph.org/pipermail/commits/2008-January/012792.html |title=r14372 - in trunk/theora: . lib/dec lib/enc |mailinglist=xiph-commits |quote=This library was never released and now looks like it needs to be redesigned. |date=2008-01-05 |accessdate=2019-01-14}} 7. ^1 Xiph.Org (2002-07-19) Ogg releases - libogg-1.0.tar.gz - CHANGES. Retrieved 2009-09-01. 8. ^1 2 3 {{cite web|publisher=Xiph.org Foundation|url=http://xiph.org/xiphname|date=2006-01-07|title=Xiph.org: naming|accessdate=2008-02-16|quote=At the time Ogg was starting out, most personal computers were i386s and the i486 was new. I remember thinking about the algorithms I was considering, "Whoa, that's heavyweight. People are going to need a 486 to run that..." While the software ogged the music, there wasn't much processor left for anything else.}} 9. ^1 {{cite web|publisher=Xiph.org Foundation|url=http://xiph.org/xiphname|date=2006-01-07|title=Xiph.org: naming|accessdate=2009-09-02}} 10. ^Directshow Filters for Ogg Vorbis 11. ^{{Cite web|url=https://wiki.xiph.org/VorbisComment|title=VorbisComment|last=|first=|date=26 April 2016|website=|archive-url=|archive-date=|dead-url=|access-date=}} 12. ^{{Cite web|url=https://wiki.xiph.org/Metadata|title=Metadata|last=|first=|date=24 July 2013|website=xiph.org Foundation|archive-url=|archive-date=|dead-url=|access-date=}} 13. ^{{cite web |first=Christopher|last=Montgomery |publisher=Xiphophorus company |url=http://people.xiph.org/~giles/historic/www.mit.edu/afs/sipb/user/mwhitson/Project/Ogg/98.9/ |year=1997 |title=Ogg 98.9 |accessdate=2009-09-02}} 14. ^{{cite web |url=//www.xiph.org/ogg/doc/vorbis.html |title=OggSquish Vorbis encoding format documentation |author=Xiph.org |publisher=Archive.org |date=2000-01-18 |accessdate=2008-09-02 |deadurl=yes |archiveurl=https://web.archive.org/web/20000118132124/http://www.xiph.org/ogg/doc/vorbis.html |archivedate=January 18, 2000 |df= }} 15. ^{{cite web |url=//www.xiph.org/ogg/doc/oggstream.html |title=OggSquish logical and physical bitstream overview |author=Xiph.org |publisher=Archive.org |date=2000-01-18 |accessdate=2008-09-02 |deadurl=yes |archiveurl=https://web.archive.org/web/20000118122008/http://www.xiph.org/ogg/doc/oggstream.html |archivedate=January 18, 2000 |df= }} 16. ^1 {{cite web |author=Xiphophorus company |publisher=Archive.org |url=//www.xiph.org/ogg/index.html |date=2001-04-05 |title=The Ogg project homepage |accessdate=2009-09-02 |deadurl=yes |archiveurl=https://web.archive.org/web/20010405060456/http://www.xiph.org/ogg/index.html |archivedate=April 5, 2001 |df= }} 17. ^{{cite web |url=//www.xiph.org/ogg/index.html |title=The Ogg project homepage |author=Xiph.org |publisher=Archive.org |date=2001-12-04 |accessdate=2008-09-02 |deadurl=yes |archiveurl=https://web.archive.org/web/20011204194046/http://www.xiph.org/ogg/index.html |archivedate=December 4, 2001 |df= }} 18. ^{{cite web |author=Xiphophorus company |publisher=Archive.org |url=//www.xiph.org/ogg/index.html |date=2001-12-04 |title=The Ogg project homepage |accessdate=2009-09-02 |deadurl=yes |archiveurl=https://web.archive.org/web/20011204194046/http://www.xiph.org/ogg/index.html |archivedate=December 4, 2001 |df= }} 19. ^{{cite web|publisher=Xiph.Org Foundation|url=http://xiph.org/ogg/|date=2006-01-07|title=The Ogg container format|accessdate=2009-09-02}} 20. ^{{cite web|url=http://www.xiph.org/container/ogm.html |title=OGM is not Ogg. Xiph.org does not support OGM. |publisher=Backup at WayBack Machine |date=2004-07-07 |deadurl=unfit |archiveurl=https://web.archive.org/web/20120317061837/http://www.xiph.org/container/ogm.html |archivedate=March 17, 2012 }} 21. ^{{cite web |url=https://www.codecguide.com/klcp_ability_comparison.htm |title=K-Lite Codec Pack: Comparison of abilities and supported file formats |website=Codec Guide|date= |author= |accessdate= 16 March 2018}} 22. ^{{cite news|url=https://www.wired.com/entertainment/music/news/2007/02/72785?currentPage=all |title=MP3's Loss, Open Source's Gain |publisher=Wired.com |date= 2007-02-23|accessdate=2010-03-04}} 23. ^{{cite news|url=http://archive.wired.com/entertainment/music/news/2007/02/72785 |title=MP3's Loss, Open Source's Gain |publisher=Wired.com |date= 2007-02-23|accessdate=2015-02-04}} 24. ^{{cite web|url=http://www.fsf.org/news/playogg.html |title='Play Ogg': FSF launches free audio format campaign |language=la |publisher=Fsf.org |date= |accessdate=2010-03-04}} 25. ^{{cite web|url=http://xiph.org/quicktime/ |title=Foundation: Ogg QuickTime Components for iTunes and iMovie (Windows and Mac OS X) |publisher=Xiph.org |date= |accessdate=2010-03-04}} 26. ^{{cite web|url=http://www.xiph.org/dshow/ |title=Directshow Filters for Ogg Vorbis, Speex, Theora and FLAC |publisher=Xiph.org |date=2010-02-22 |accessdate=2010-03-04}} 27. ^{{cite web |url=https://developer.mozilla.org/En/HTML/Element/Video |title=Mozilla Developer Center - HTML - Element - Video |date=September 2009 |accessdate=2009-12-28}} 28. ^{{cite web |url=https://developer.mozilla.org/En/HTML/Element/Audio |title=Mozilla Developer Center - HTML - Element - Audio |date=September 2009 |accessdate=2009-12-28}} 29. ^{{cite web| url=http://hardwarebug.org/2010/03/03/ogg-objections/| first=Mans| last=Rullgard| title=Ogg objections| publisher=hardwarebug.org| date=2010-03-03|accessdate=2010-05-02}} 30. ^{{cite web|url=http://people.xiph.org/~xiphmont/lj-pseudocut/o-response-1.html| title=Monty - In Defense of Ogg's Good Name| first=Christopher| last=Montgomery | date=2010-04-27 |publisher= people.xiph.org/~xiphmont| accessdate=2010-05-02}} 31. ^{{cite web | url=http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions | title=MIME Types and File Extensions | date=2009-10-04 | publisher=XiphWiki | accessdate=2009-10-24 }} 32. ^{{cite web | url=http://tools.ietf.org/html/rfc5334 | title=RFC 5334 - Ogg Media Types | publisher=IETF |date=September 2008 |accessdate=2009-10-24 }} 33. ^{{cite web |url= https://wiki.xiph.org/OggPCM |title=OggPCM - XiphWiki |work=wiki.xiph.org |year=2012 |accessdate=29 July 2012}} 34. ^Ralph Giles (2000-12-19) vorbis-dev - Tarkin video codec?, Xiph.org vorbis-dev mailinglist. Retrieved 2009-09-06. 35. ^Jack Moffitt (2001-01-03) vorbis-dev - Tarkin at last, Xiph.org vorbis-dev mailinglist. Retrieved 2009-09-06. 36. ^Chris Montgomery (2001-02-11) Tarkin developer mailing list, Retrieved on 2009-09-06 37. ^Michael Smith (2005-08-29) Tarkin. Retrieved 2009-09-06. 38. ^Dirac specification - integration of Dirac encoded video into commonly used container formats {{webarchive|url=https://web.archive.org/web/20100614050318/http://diracvideo.org/specifications/ |date=2010-06-14 }} Retrieved on 2009-07-05 39. ^{{cite web|url=http://wiki.xiph.org/OggWrit|title=OggWrit|date=2007-11-10|quote=at best incomplete and at worst completely broken. In any case, it is not an "official" Xiph spec/codec|publisher=Xiph.org|accessdate=2015-04-13}} External links{{Commons category|Ogg files}}{{wiktionary|Ogg}}{{Wiktionary}}
5 : Digital container formats|Filename extensions|Free digital container formats|Open formats|Xiph.Org projects |
||||||||||||||||
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。