Coherence - a DLNA/UPnP Framework for the Digital Living

来源:互联网 发布:怎么在韩国淘宝买东西 编辑:程序博客网 时间:2024/05/16 17:44

The

The Coherence toolkit offers the following multi-media related components:

  • DLNA/UPnP Media Server (Coherence), which exports local files or online media toUPnP clients. There are many backends to fetch media from:
    • local applications media collections like those from Rythmbox or Banschee,
    • Audio-CD or DVB,
    • online services like Flickr, last.fm, YouTube, Picasa Web Albums and other.

Due to the comprehensive plug-in architecture, these can easily be expanded.

Coherence also contains an audio/video DLNA/UPnP MediaRenderer application, based on the GStreamer framework. It includes the source-code framework used by the other components. The media server supportsTranscoding (experimental).

  • Coherence-Config is a cross-platform GUI frontend for 'Coherence'.
  • An image DLNA/UPnP MediaRenderer (Cadre), which can display pictures from the local filesystem or from a MediaServer.
  • An application level proxy for UPnP devices (Mirabeau) which allows to share your UPnP content between two or more local networks over the Internet. It uses XMPP as a transport (work in progress).
  • The UPnP-Inspector is a graphical UPnP Device and Service analyzer, and a debugging tool. Detected devices are displayed in a tree-view, where - amongst other things - actions can be called and state-variables be queried. It can also be used as a UPnPControlPoint.
  • Plugins or extensions for other applications to open them to the UPnP world, thanks to the framework (either asMediaServers, ControlPoints or MediaRenderers). This includes Totem, Nautilus, Eye Of Gnome, Rythmbox, Banshee, Elisa, amarok...

If you are new to DLNA/UPnP you may want to read the Short Introduction to DLNA?.

Additionally there is a command-line tool to work with UPnP Internet Gateway Devices (Puncher). Many routers offer an UPnPInternetGatewayDevice to query informations about the WAN connection, the link status, external IP address and to enable port-mappings that allow inbound connections to the local LAN. Puncher allows you interacting with these devices.

The toolkit is known to work on various Linux flavors, BSD, (Open)Solaris and Windows. It can be installed either as a standard python source-code download or through various OS-specific packages.

For Application Developers

Developers get a framework written in Python with an emerging DBus API. This framework is designed to automate all UPnP-related tasks as much as possible and enable applications to participate in digital living networks, primarily theUPnP universe.

The core framework of Coherence provides:

  • an SSDP server
  • an MSEARCH client
  • server and client for HTTP/SOAP requests
  • server and client for Event Subscription and Notification (GENA)
  • A device implementation dock

UPnP device implementations are pluggable. For instance, we can pick the MediaServer device and plug it into the core. Or attach the MediaRenderer device. Or attach both, or two MediaServers and a ControlPoint - this is the point where one of Coherence's particular features kicks in.

This probably makes more sense if we look at how UPnP devices are implemented within Coherence. On one side of the device we have the connectors to the core, but on the other side there is a dock for a backend to be plugged in. So a device implementation is generally a simple translation map between the the core and its backend.

As an example, a MediaServer connects to the core via the ContentDirectory and ConnectionManager services and bridges them to a filesystem backend. Or bridges them - let's say - to a less skimpy one, theMediaStore? of a MediaCenter exposing its content in a way already presorted by album, artist, genre,...etc.

More information is available in the Architectural Overview.

Current State

At the moment Coherence is primarily focused on the UPnP A/V devices but any other UPnP device can be addressed, too. Such as aLighting Controls bridge to EIB home-automation.

The core itself is fairly complete and can be used on its own for debugging purposes.

The media server includes an early implementation of transcoding support.

Supported Devices

Here is a list of devices which have been reported to work with Coherence. Please keep us informed about your devices.

Download

  • Binary packages are available for various environments: they are listed on thepackages page
  • Alternatively, there is an entry in the Python Package Index enabling you to install and upgrade witheasy_install: easy_install Coherence
  • The source tarball for the current stable version is availablehere
  • Source checkouts via Git are possible too:
    • current stable release: git clone -b master https://github.com/coherence-project/Coherence.git Coherence-stable
    • current development head: git clone -b master https://github.com/coherence-project/Coherence.git Coherence

Any contribution (esp. pull-requests) is welcome.

Documentation & Hacking

For information about installation and using Coherence with(in) your application and writing backends and plugins, please visit theDocumentationDepartment and the slowly growing list of SupportedDevices.

For developing Coherence and the related projects we strongly suggest checking out theDevelopment repository. It holds tools, tips and tricks, esp. scripts for setting up the development-environment.

There are also some posts about Coherence in my blog, these will sooner or later get incorporated into this site.

Contact and Discussion

  • Please add your bug-reports, suggestions, patches or comments as tickets to this trac instance
  • You may also add your feature requests here
  • You need to register first, to reduce spam.
  • Developers and users usually hang around on IRC: irc://irc.freenode.net/#coherence orirc://irc.freenode.net/#moovida
  • There are two mailing-list for Coherence:
    • coherence-announce: only announces about updates and new releases, read-only (Archive)
    • coherence-dev: discussions, questions,... about development and usage issues (Archive). For searching the history of the coherence-dev mailing list you can use Nabble.

Frank Scholz, the lead developer of Coherence, can be reached at dev@coherence-project.org.

History

Coherence has its roots in the work of

  • Tim Potter who started everything and set the code lose
  • John-Mark Gurney who continued it with theMediaServer PyMeds
  • and Fluendo who added a first ContentDirectory client for Elisa

License

Coherence is licensed under the MIT license.

Dependencies

  • Coherence in written in Python, and currently tested against version 2.4, 2.5 and 2.6
  • depends on setuptools for the installation process and plugin management
  • profits from the excellent event-driven networking framework Twisted
  • needs ElementTree for its XML processing (included in Python 2.5)
  • uses Louie for signal dispatching (included in Coherence >= 0.5.8)

Optional Components

  • ConfigObj (optional since Coherence >=0.5, due to thenew XML configuration file format)
  • Divmods Nevow (optional, for all the WebUI html, together withAthena for the AJAX bells and whistles)
  • ctypes (optional, included in Python 2.5 for theMediaServer file system backend)
  • GStreamer (optional, for theMediaRenderer backend)
  • netifaces (optional, to handle on Windows OS the detection of the own IP)
  • Mechanize (optional, for the account authentication in theFlickr MediaServer backend)
  • Google Data APIs Python Client Library (optional, for theYouTube MediaServer backend)

Variety

There are other projects that are similar to Coherence or provide related functions, such as a dedicated UPnPMediaServer implementation. They are listed on the Resources page.

Publicity

  • Coherence on Github
toolkit offers the following multi-media related components:
  • DLNA/UPnP Media Server (Coherence), which exports local files or online media toUPnP clients. There are many backends to fetch media from:
    • local applications media collections like those from Rythmbox or Banschee,
    • Audio-CD or DVB,
    • online services like Flickr, last.fm, YouTube, Picasa Web Albums and other.

Due to the comprehensive plug-in architecture, these can easily be expanded.

Coherence also contains an audio/video DLNA/UPnP MediaRenderer application, based on the GStreamer framework. It includes the source-code framework used by the other components. The media server supportsTranscoding (experimental).

  • Coherence-Config is a cross-platform GUI frontend for 'Coherence'.
  • An image DLNA/UPnP MediaRenderer (Cadre), which can display pictures from the local filesystem or from a MediaServer.
  • An application level proxy for UPnP devices (Mirabeau) which allows to share your UPnP content between two or more local networks over the Internet. It uses XMPP as a transport (work in progress).
  • The UPnP-Inspector is a graphical UPnP Device and Service analyzer, and a debugging tool. Detected devices are displayed in a tree-view, where - amongst other things - actions can be called and state-variables be queried. It can also be used as a UPnPControlPoint.
  • Plugins or extensions for other applications to open them to the UPnP world, thanks to the framework (either asMediaServers, ControlPoints or MediaRenderers). This includes Totem, Nautilus, Eye Of Gnome, Rythmbox, Banshee, Elisa, amarok...

If you are new to DLNA/UPnP you may want to read the Short Introduction to DLNA?.

Additionally there is a command-line tool to work with UPnP Internet Gateway Devices (Puncher). Many routers offer an UPnPInternetGatewayDevice to query informations about the WAN connection, the link status, external IP address and to enable port-mappings that allow inbound connections to the local LAN. Puncher allows you interacting with these devices.

The toolkit is known to work on various Linux flavors, BSD, (Open)Solaris and Windows. It can be installed either as a standard python source-code download or through various OS-specific packages.

For Application Developers

Developers get a framework written in Python with an emerging DBus API. This framework is designed to automate all UPnP-related tasks as much as possible and enable applications to participate in digital living networks, primarily theUPnP universe.

The core framework of Coherence provides:

  • an SSDP server
  • an MSEARCH client
  • server and client for HTTP/SOAP requests
  • server and client for Event Subscription and Notification (GENA)
  • A device implementation dock

UPnP device implementations are pluggable. For instance, we can pick the MediaServer device and plug it into the core. Or attach the MediaRenderer device. Or attach both, or two MediaServers and a ControlPoint - this is the point where one of Coherence's particular features kicks in.

This probably makes more sense if we look at how UPnP devices are implemented within Coherence. On one side of the device we have the connectors to the core, but on the other side there is a dock for a backend to be plugged in. So a device implementation is generally a simple translation map between the the core and its backend.

As an example, a MediaServer connects to the core via the ContentDirectory and ConnectionManager services and bridges them to a filesystem backend. Or bridges them - let's say - to a less skimpy one, theMediaStore? of a MediaCenter exposing its content in a way already presorted by album, artist, genre,...etc.

More information is available in the Architectural Overview.

Current State

At the moment Coherence is primarily focused on the UPnP A/V devices but any other UPnP device can be addressed, too. Such as aLighting Controls bridge to EIB home-automation.

The core itself is fairly complete and can be used on its own for debugging purposes.

The media server includes an early implementation of transcoding support.

Supported Devices

Here is a list of devices which have been reported to work with Coherence. Please keep us informed about your devices.

Download

  • Binary packages are available for various environments: they are listed on thepackages page
  • Alternatively, there is an entry in the Python Package Index enabling you to install and upgrade witheasy_install: easy_install Coherence
  • The source tarball for the current stable version is availablehere
  • Source checkouts via Git are possible too:
    • current stable release: git clone -b master https://github.com/coherence-project/Coherence.git Coherence-stable
    • current development head: git clone -b master https://github.com/coherence-project/Coherence.git Coherence

Any contribution (esp. pull-requests) is welcome.

Documentation & Hacking

For information about installation and using Coherence with(in) your application and writing backends and plugins, please visit theDocumentationDepartment and the slowly growing list of SupportedDevices.

For developing Coherence and the related projects we strongly suggest checking out theDevelopment repository. It holds tools, tips and tricks, esp. scripts for setting up the development-environment.

There are also some posts about Coherence in my blog, these will sooner or later get incorporated into this site.

Contact and Discussion

  • Please add your bug-reports, suggestions, patches or comments as tickets to this trac instance
  • You may also add your feature requests here
  • You need to register first, to reduce spam.
  • Developers and users usually hang around on IRC: irc://irc.freenode.net/#coherence orirc://irc.freenode.net/#moovida
  • There are two mailing-list for Coherence:
    • coherence-announce: only announces about updates and new releases, read-only (Archive)
    • coherence-dev: discussions, questions,... about development and usage issues (Archive). For searching the history of the coherence-dev mailing list you can use Nabble.

Frank Scholz, the lead developer of Coherence, can be reached at dev@coherence-project.org.

History

Coherence has its roots in the work of

  • Tim Potter who started everything and set the code lose
  • John-Mark Gurney who continued it with theMediaServer PyMeds
  • and Fluendo who added a first ContentDirectory client for Elisa

License

Coherence is licensed under the MIT license.

Dependencies

  • Coherence in written in Python, and currently tested against version 2.4, 2.5 and 2.6
  • depends on setuptools for the installation process and plugin management
  • profits from the excellent event-driven networking framework Twisted
  • needs ElementTree for its XML processing (included in Python 2.5)
  • uses Louie for signal dispatching (included in Coherence >= 0.5.8)

Optional Components

  • ConfigObj (optional since Coherence >=0.5, due to thenew XML configuration file format)
  • Divmods Nevow (optional, for all the WebUI html, together withAthena for the AJAX bells and whistles)
  • ctypes (optional, included in Python 2.5 for theMediaServer file system backend)
  • GStreamer (optional, for theMediaRenderer backend)
  • netifaces (optional, to handle on Windows OS the detection of the own IP)
  • Mechanize (optional, for the account authentication in theFlickr MediaServer backend)
  • Google Data APIs Python Client Library (optional, for theYouTube MediaServer backend)

Variety

There are other projects that are similar to Coherence or provide related functions, such as a dedicated UPnPMediaServer implementation. They are listed on the Resources page.

Publicity

  • Coherence on Github