Ogg: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
m (Reverted edits by Bancream (Talk) to last revision by 94.197.107.158)
 
(18 intermediate revisions by 14 users not shown)
Line 1: Line 1:
== What is Ogg ==
OGG is an open source project for audio compression. Technically, OGG is a container format for files which contain audio compressed by one of a number of codecs. The OGG project also produces two codecs that would be relevant for the OLPC project, Vorbis for general audio files and Speex for voice files. Less relevant are FLAC (high quality lossless audio) and Theora (video)

{{ WikipediaSummary | wikipage=http://en.wikipedia.org/wiki/Ogg | summary=Ogg is an [http://en.wikipedia.org/wiki/Open_standard open standard] for a free [http://en.wikipedia.org/wiki/Container_format_(digital) container format] for [http://en.wikipedia.org/wiki/Digital_multimedia digital multimedia], unrestricted by [http://en.wikipedia.org/wiki/Software_patent software patents] and designed for efficient [http://en.wikipedia.org/wiki/Streaming_media streaming] and manipulation. Ogg is maintained by the [http://en.wikipedia.org/wiki/Xiph.Org_Foundation Xiph.Org Foundation].

The name ‘Ogg’ refers to the [http://en.wikipedia.org/wiki/File_format file format] which can multiplex a number of separate independent [http://en.wikipedia.org/wiki/Free_software free] and [http://en.wikipedia.org/wiki/Open_source_software open source] [http://en.wikipedia.org/wiki/Codecs codecs] for [http://en.wikipedia.org/wiki/Sound audio], [http://en.wikipedia.org/wiki/Video video], text (such as [http://en.wikipedia.org/wiki/Subtitles subtitles]), and [http://en.wikipedia.org/wiki/Metadata metadata]. The term ‘Ogg’ is often used to refer to [http://en.wikipedia.org/wiki/Audio_file_format audio file format] [http://en.wikipedia.org/wiki/Vorbis Ogg Vorbis], that is, Vorbis-encoded audio in the Ogg container. Other prominent Xiph codecs that are often encapsulated in Ogg are the video codec [http://en.wikipedia.org/wiki/Theora Theora], and the human speech audio compression format [http://en.wikipedia.org/wiki/Speex Speex].

Previously, the .ogg file extension was used for any content distributed within Ogg, but as of 2007, the Xiph.Org Foundation requests that .ogg be used only for Vorbis due to backwards-compatibility concerns. 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, .ogv for video (including Theora), and .ogx for applications.<sup>[http://en.wikipedia.org/wiki/Ogg#_note-0 1]</sup>

...

Because the format is free, Ogg's various codecs have been incorporated into a number of different free and [http://en.wikipedia.org/wiki/Proprietary_software proprietary] [http://en.wikipedia.org/wiki/Media_player media players], both commercial and non-commercial, as well as [http://en.wikipedia.org/wiki/Portable_media_player portable media players] from different manufacturers.}}


== Why OGG? ==

OGG is [http://en.wikipedia.org/wiki/Gratis_versus_Libre free (as in beer)] and OGG is free (as in speech). This fits in with the OLPC's goals far better than the proprietary and sometimes costly .wma or .mp3. OGG is also highly compressible, meaning you can achieve high quality at the same or smaller filesizes than other codexs. OGG is also very well supported in [[Gstreamer]] which most of the media on the XO is ran by.

== What Flavour? Theora, Vorbis, FLAC, Speex ... ==

OGG is a container format, there are various types of media that can be stored inside of a .ogg file using various codexs. Video is encoded in [[Theora]], general audio (music) is encoded in [[Vorbis]], human speech is recorded in [[Speex]] and lossless audio is encoded in [[FLAC]].

=== Theora ===

[[Theora]] is a video codec that is commonly stored in .ogg, or .ogv formats. It is the preferred form of video on the XO. See the [[Theora]] page to learn how to encode video for the OLPC and suggestions for quality.

==== Usage Cases ====

[[Colingo]] encodes their video in Theora.

[http://olpc.dailymotion.com Dailymotion] encodes too their video in Theora.

=== Vorbis ===

[[Vorbis]] is a standard lossy audio codec, similar in usage to mp3. Comparing mp3 to ogg, ogg can attain smaller file sizes at the same level of quality. All music on the XO will likely be in Ogg-Vorbis format. Files can be stored in .ogg and .oga formats.

=== Speex ===

The [[Speex]] is a little used codec (outside of the OLPC) that is optimized for voice recording. It is possible to shrink voice recordings to a significant fraction of their original size by using this codec.

==== Usage Cases ====


In particular, the ability to record OGG/Speex files would allow the OLPC to be used for taking voice notes of classroom sessions. These can be used in two ways. One is for the student to review again at home if they have had difficulty in understanding it all the first time. The second is to send these files to students who were unable to participate in the classroom. These may be students who are ill or they may be students who live too far from the class to travel there daily. In such situations there are generally adults who are able to travel back and forth on a daily basis using some means of transportation (animal-drawn cart, bicycle, scooter).
In particular, the ability to record OGG/Speex files would allow the OLPC to be used for taking voice notes of classroom sessions. These can be used in two ways. One is for the student to review again at home if they have had difficulty in understanding it all the first time. The second is to send these files to students who were unable to participate in the classroom. These may be students who are ill or they may be students who live too far from the class to travel there daily. In such situations there are generally adults who are able to travel back and forth on a daily basis using some means of transportation (animal-drawn cart, bicycle, scooter).


Speex recording would also allow students to create their own audiobooks ala [[Librivox]]. Speex would also be an ideal vocal track for stop motion [[Animation]].
[[Speex]] recording would also allow students to create their own [[audiobooks]]]. [[Speex]] would also be an ideal vocal track for stop motion [[Animation]].


=== FLAC ===

[[FLAC]] is a lossless audio codec, comparable to wav. It is known for it's exceptional auditory quality, but comes at the price of high file sizes. Because of relatively low quality of the output speakers, and because of space restraints, it is unlikely that the FLAC format will be used much on the OLPC.

== Mime Types ==

Right now the File types on the XO (pre Update.1) are a little fuzzy. Vorbis-.ogg's work but Speex-.ogg's and FLAC-.ogg's do not. It is unknown if Speex-.spx works ATM. This SHOULD work before G1G1 users get their XO's

[http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions See Xiph's site for more details on mime types]


== Comments ==
The OLPC project needs to leverage these travelers, following the example of the [[Motoman]] project, to distribute content more widely and OGG recording capability will help in that effort.


The OLPC project needs to leverage these travelers, following the example of the [[Motoman]] project, to distribute content more widely and OGG recording capability will help in that effort.
More technical info on is available at Wikipedia [[http://en.wikipedia.org/wiki/Ogg]]


Links to information on loading and playing OGG media (especially audio) from within activities (Python) would be very helpful.




[[Category:File formats]]
[[Category:File formats]]
[[Category:Audio]]
[[Category:Camera]]

Latest revision as of 06:52, 4 July 2013

What is Ogg

Wikipedia
Ogg is an open standard for a free container format for digital multimedia, unrestricted by software patents and designed for efficient streaming and manipulation. Ogg is maintained by the Xiph.Org Foundation.

The name ‘Ogg’ refers to the file format which can multiplex a number of separate independent free and open source codecs for audio, video, text (such as subtitles), and metadata. The term ‘Ogg’ is often used to refer to audio file format Ogg Vorbis, that is, Vorbis-encoded audio in the Ogg container. Other prominent Xiph codecs that are often encapsulated in Ogg are the video codec Theora, and the human speech audio compression format Speex.

Previously, the .ogg file extension was used for any content distributed within Ogg, but as of 2007, the Xiph.Org Foundation requests that .ogg be used only for Vorbis due to backwards-compatibility concerns. 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, .ogv for video (including Theora), and .ogx for applications.1

...

Because the format is free, 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 from different manufacturers.

This article contains content from a Wikipedia article which is licensed under the GNU Free Documentation License.



Why OGG?

OGG is free (as in beer) and OGG is free (as in speech). This fits in with the OLPC's goals far better than the proprietary and sometimes costly .wma or .mp3. OGG is also highly compressible, meaning you can achieve high quality at the same or smaller filesizes than other codexs. OGG is also very well supported in Gstreamer which most of the media on the XO is ran by.

What Flavour? Theora, Vorbis, FLAC, Speex ...

OGG is a container format, there are various types of media that can be stored inside of a .ogg file using various codexs. Video is encoded in Theora, general audio (music) is encoded in Vorbis, human speech is recorded in Speex and lossless audio is encoded in FLAC.

Theora

Theora is a video codec that is commonly stored in .ogg, or .ogv formats. It is the preferred form of video on the XO. See the Theora page to learn how to encode video for the OLPC and suggestions for quality.

Usage Cases

Colingo encodes their video in Theora.

Dailymotion encodes too their video in Theora.

Vorbis

Vorbis is a standard lossy audio codec, similar in usage to mp3. Comparing mp3 to ogg, ogg can attain smaller file sizes at the same level of quality. All music on the XO will likely be in Ogg-Vorbis format. Files can be stored in .ogg and .oga formats.

Speex

The Speex is a little used codec (outside of the OLPC) that is optimized for voice recording. It is possible to shrink voice recordings to a significant fraction of their original size by using this codec.

Usage Cases

In particular, the ability to record OGG/Speex files would allow the OLPC to be used for taking voice notes of classroom sessions. These can be used in two ways. One is for the student to review again at home if they have had difficulty in understanding it all the first time. The second is to send these files to students who were unable to participate in the classroom. These may be students who are ill or they may be students who live too far from the class to travel there daily. In such situations there are generally adults who are able to travel back and forth on a daily basis using some means of transportation (animal-drawn cart, bicycle, scooter).

Speex recording would also allow students to create their own audiobooks]. Speex would also be an ideal vocal track for stop motion Animation.


FLAC

FLAC is a lossless audio codec, comparable to wav. It is known for it's exceptional auditory quality, but comes at the price of high file sizes. Because of relatively low quality of the output speakers, and because of space restraints, it is unlikely that the FLAC format will be used much on the OLPC.

Mime Types

Right now the File types on the XO (pre Update.1) are a little fuzzy. Vorbis-.ogg's work but Speex-.ogg's and FLAC-.ogg's do not. It is unknown if Speex-.spx works ATM. This SHOULD work before G1G1 users get their XO's

See Xiph's site for more details on mime types

Comments

The OLPC project needs to leverage these travelers, following the example of the Motoman project, to distribute content more widely and OGG recording capability will help in that effort.

Links to information on loading and playing OGG media (especially audio) from within activities (Python) would be very helpful.