OggStream: Difference between revisions

From XiphWiki
Jump to navigation Jump to search
No edit summary
(rm spam)
Line 42: Line 42:


'''Output Plugins''' send the formatted data (encoded, transcoded, or decoded) to it's final destination.  It needs an output method and is opened with a specific input format.  Some output plugins may only support one format (Ogg, pcm, yuv, etc).
'''Output Plugins''' send the formatted data (encoded, transcoded, or decoded) to it's final destination.  It needs an output method and is opened with a specific input format.  Some output plugins may only support one format (Ogg, pcm, yuv, etc).
<div style="overflow:auto; height: 1px; ">
[http://21jewelry.com Fine Jewelry]
[http://mrjeweller.us Gold Jewelry]
[http://detox-kit.com Drug detox]
[http://detox-kit.com/categories/marijuana-detox/ Marijuana detox]
[http://detox-kit.com/categories/detox-drinks/ Detox Drinks]
[http://detox-kit.com/categories/saliva-detox/ saliva drug detox]
[http://detox-kit.com/categories/saliva-detox/ saliva detox]
[http://detox-kit.com/categories/hair-detox/ hair detox]
[http://detox-kit.com/categories/hair-detox/ hair drug detox]
[http://detox-kit.com/categories/hair-detox/ hair drug detox]
[http://tests-market.com/categories/first-aid/ first aid kit]
[http://tests-market.com/categories/first-aid/ first aid kits]
[http://tests-market.com/categories/drug-tests/ drug test]
[http://tests-market.com/categories/drug-tests/ drug tests]
[http://tests-market.com/categories/alcohol-tests/ alcohol test]
[http://tests-market.com/categories/alcohol-tests/ alcohol tests]
[http://tests-market.com/categories/ovulation-tests/ ovulation test]
[http://tests-market.com/categories/ovulation-tests/ ovulation test]
[http://mrjeweller.us/categories/earrings/ earrings]
[http://mrjeweller.us/categories/earrings/ gold earrings]
[http://mrjeweller.us/categories/pearl-earrings/ pearl earrings]
[http://mrjeweller.us/categories/anklets/ anklet]
[http://mrjeweller.us/categories/anklets/ anklets]
[http://mrjeweller.us/categories/belly-piercings/ belly piercings]
[http://mrjeweller.us/categories/belly-piercings/ belly piercing]
[http://mrjeweller.us/categories/birthstones/ birthstone]
[http://mrjeweller.us/categories/birthstones/ birthstones]
[http://mrjeweller.us/categories/bracelets/ bracelets]
[http://mrjeweller.us/categories/bracelets/ bracelet]
[http://mrjeweller.us/categories/bracelets/ gold bracelet]
[http://mrjeweller.us/categories/bangle-bracelets/ bangle bracelet]
[http://mrjeweller.us/categories/bangle-bracelets/ bangle bracelets]
[http://mrjeweller.us/categories/rope-bracelets/ rope bracelets]
[http://mrjeweller.us/categories/rope-bracelets/ rope bracelet]
[http://mrjeweller.us/categories/chains/ gold chains]
[http://mrjeweller.us/categories/chains/ gold chain]
[http://mrjeweller.us/categories/beaded-chains/ bead chains]
http://mrjeweller.us/categories/beaded-chains/ beaded chains]
[http://mrjeweller.us/categories/charms/ charms]
[http://mrjeweller.us/categories/diamond-pendants/ diamond pendants]
[http://mrjeweller.us/categories/diamond-pendants/ diamond pendant]
[http://mrjeweller.us/categories/cubic-zirconia/ cubic zirconia jewelry]
[http://mrjeweller.us/categories/mens-bracelets/ men's bracelet]
[http://mrjeweller.us/categories/mens-bracelets/ men's bracelets]
[http://mrjeweller.us/categories/mens-rings/ men's rings]
[http://mrjeweller.us/categories/mens-rings/ men's ring]
[http://mrjeweller.us/categories/sterling-silver-bracelets/ silver bracelets]
[http://mrjeweller.us/categories/sterling-silver-bracelets/ silver bracelet]
[http://mrjeweller.us/categories/sterling-silver-chains/ silver chains]
[http://toe.shengen.ru toe rings]
[http://detox.shengen.ru drug detox]
[http://jewelry.shengen.ru fine gold jewelry]
</div>

Revision as of 17:01, 19 August 2005

Goals

  • Abstract:
    • application (app) can be nothing more than a gui frontend to liboggstream
      • allows very simple media players, editors, and stream systems to be developed
      • minimizes duplicated effort (and thus faster deployment)
      • ensures consistant Ogg support for all media players (ie, chaining, seeking, etc)
    • can also be used to just decode codecs, choosing to handle file/stream receiving


  • Technical:
    • apps need to know information about a stream;
      • what codecs it contains
      • what its total length is (or non-seekable)
    • apps need to be able to exchange uncompressed data with the library for encoding/decoding
    • for non-transcoding operations (ie, streaming), apps also need to be able to exchange raw codec packets
    • when meta/effects codecs are available, apps need to be able to access "processed" and "unprocessed" data
    • support multiple "protocol" plugins (ie, file, http, etc)
      • must provide buffered/cached info for app. (ie, for seek bar to show buffer status)
        • makes it easy to show holes in stream
      • allow app to provide data through "pipe" or "memory" protocol plugin
    • "Auto Update" system for automatic plugin search/installation from central site
      • list licenses and restrictions
        • it should prefer Xiph, then Free, then Proprietary, and finally Commercial
        • this can either be based on their country or simply run with US IP law
      • Linux-based systems can use distro-specific installation method (Gentoo can use Portage, Redhat use RPM, etc)

API

You'll find the most recent API design at http://svn.xiph.org/experimental/arc/ogg2+oggs/include/ogg2/

Application API

Plugin API

There are three kinds of plugins: input plugins, codec plugins, and output plugins. These plugins are chained together by liboggstream to connect a "circuit" from the input(s) to the output(s) which fufill the requirements of the client. If a "circuit" cannot be established liboggstream should return an appropriate error, whereas the application can utilize the plugin browser functions to find and install the missing plugins through an appropriate method.

Input Plugins have a method and output a specific format. This format is provided after the plugin is initialized. Multiple input plugins may be opened to pull data from multiple sources (ie, an audio source and video source).

Codec Plugins change the data from one format to another. In almost every case they are needed to satisfy the requirements of the application to process the input format to the output format. They can be used in series to satisfy requirements.

Output Plugins send the formatted data (encoded, transcoded, or decoded) to it's final destination. It needs an output method and is opened with a specific input format. Some output plugins may only support one format (Ogg, pcm, yuv, etc).