From da3c671a9bcff690d8b2a2986626012e2bdaca92 Mon Sep 17 00:00:00 2001 From: stpeter Date: Sun, 12 Jun 2011 15:06:56 -0600 Subject: [PATCH] 0.5 --- xep-0266.xml | 105 +++++++++++++-------------------------------------- 1 file changed, 26 insertions(+), 79 deletions(-) diff --git a/xep-0266.xml b/xep-0266.xml index 1bfe4ad3..4bda464e 100644 --- a/xep-0266.xml +++ b/xep-0266.xml @@ -6,8 +6,8 @@
- Codecs for Jingle RTP Sessions - This document describes implementation considerations related to voice and video codecs for use in Jingle RTP sessions. + Codecs for Jingle Audio + This document describes implementation considerations related to audio codecs for use in Jingle RTP sessions. &LEGALNOTICE; 0266 Experimental @@ -23,6 +23,12 @@ N/A jingle &stpeter; + + 0.5 + 2011-06-12 + psa +

Moved video codecs to XEP-0299.

+
0.4 2011-06-09 @@ -74,24 +80,23 @@
-

&xep0167; defines the &xep0166; signalling exchanges needed to establish voice and video chat using the Real-time Transport Protocol &rfc3550;; however, it does not discuss the matter of voice and video codecs, since the state of codec technologies is more fluid than the signalling interactions. This document fills that gap by providing guidance to Jingle developers regarding voice and video codecs.

+

&xep0167; defines the &xep0166; signalling exchanges needed to establish voice chat and other audio sessions using the Real-time Transport Protocol &rfc3550;; however, it does not say which audio codecs are mandatory-to-implement, since the state of codec technologies is more fluid than the signalling interactions. This document fills that gap by providing guidance to Jingle developers regarding audio codecs.

Because codec technologies are typically subject to patents, the topics discussed here are controversial. This document attempts to steer a middle path between (1) specifying mandatory-to-implement technologies that realistically will not be implemented and deployed and (2) providing guidelines that, while realistic, do not encourage the implementation and deployment of patent-clear technologies.

-

Please note that this document is strictly informational and does not (yet) provide binding recommendations to the XMPP developer community regarding mandatory-to-implement technologies; however, it is expected that this document will provide input that the &XSF; could use in making such recommendations. Furthermore, it is expected that any recommendations that might be made by the XSF would need to be modified over time as the technology landscape changes.

-

The ideal codec would meet the following criteria:

+

The ideal audio codec would meet the following criteria:

Quality
The encoding quality is acceptable for deployment among XMPP users.
Packetization
The specification of the codec clearly defines packetization of data for sending over RTP.
Availability
The codec can be implemented on a wide variety of computing platforms and is commonly used in Internet or other systems.
Patents
The codec is patent-clear. The term patent-clear does not necessarily mean that no patents have ever been applied for or granted regarding a technology, or that the technology is completely free from patents (since such a judgment is nearly impossible to make, and is outside the purview of the XMPP developer community and the XMPP Standards Foundation); the term means only that those who implement the technology are generally understood to be relatively safe from the threat of patent litigation, either because any relevant patents have expired, were filed in a defensive manner, or are made available under suitable royalty-free licenses. (Although most XMPP developers would prefer to implement codecs that are patent-clear, such options are not always widely implemented and deployed.)
-

Unfortunately, not all codecs are ideal. In the remainder of this document we discuss the audio and video codecs that are most appropriate for implementation in Jingle RTP applications.

+

Unfortunately, not all codecs meet those criteria. In the remainder of this document we discuss the audio codecs that are most appropriate for implementation in Jingle RTP applications.

- - + +

G.711 refers to the Pulse Code Modulation (PCM) codec defined in &ITU; recommendation G.711, which is widely used on the public switched telephone network (PSTN) and by many voice over Internet Protocol (VoIP) providers. There are two versions: the μ-law ("U-law") version is widely deployed in North America and in Japan, whereas the A-law version is widely deployed in the rest of the world. The following table summarizes the available information about G.711.

@@ -108,7 +113,7 @@
- +

The Opus codec is under development within the IETF's Codec Working Group. In essence it combines the best features of CELT (developed by Jean-Marc Valin, the creator of Speex) and SILK (created by and widely used in the Skype service). The following table summarizes the available information about Opus.

@@ -125,7 +130,7 @@
- +

According to the speex.org website, the Speex codec is "an Open Source/Free Software patent-free audio compression format designed for speech". Speex was developed by Jean-Marc Valin and is maintained by the Xiph.org Foundation. The following table summarizes the available information about Speex.

@@ -142,77 +147,19 @@
- -

Given that both Speex and G.711 are patent-clear, freely implementable, and commonly deployed, implementers are encouraged to consider including support for both codecs in audio applications of Jingle RTP sessions. Discussion on the jingle@xmpp.org mailing list indicates a slight preference for G.711 because it is so widely deployed and easily available. The Opus codec is not yet widely deployed (or even fully developed), but it might become the "codec of the future" for audio applications over the Internet.

-
- -

As of June 2011, this document makes the following recommendations:

-
    -
  1. Jingle clients MUST implement both PCMU and PCMA.
  2. -
  3. Gateways between Jingle networks and other networks (e.g., SIP networks and the PSTN) MUST implement either PCMA or PCMA.
  4. -
-

Naturally, clients and gateways can implement additional codecs, such as those listed in this document.

-
- - -

Dirac is a general-purpose video compression technology developed by the BBC that has been licensed in the open. It is used for everything from Internet streaming to HDTV. To date there is no RTP packetization deveintion for Dirac; however, such a format is under development.

- - - - - - - - - - - - - -
QualityPacketizationAvailabilityPatents
High quality.Not yet defined.Freely downloadable under both GPL and LGPL at <http://diracvideo.org/>; commonly deployed but not yet in video over IP systems because of the lack of an RTP packetization format.Diract is patent-clear, and the BBC has allowed its related patents to lapse.
-
- -

H.264 is a technology for video compression jointly designed by the ITU and the &ISO;. The following table summarizes the available information about H.264.

- - - - - - - - - - - - - -
QualityPacketizationAvailabilityPatents
High quality.See &rfc3984;.Commonly deployed in commercial video systems. Not freely downloadable; both software implementations and service deployments can be subject to royalty payments for commercial use.Patented.
-
- -

According to the theora.org website, the Theora codec is "a free and open video compression format". Theora is based on the VP3 codec originally developed by On2 Technologies and is now maintained by the Xiph.org Foundation. The following table summarizes the available information about Theora.

- - - - - - - - - - - - - -
QualityPacketizationAvailabilityPatents
Acceptable quality.See &rtptheora;.Freely downloadable under BSD license at <http://theora.org/>; not yet commonly deployed, especially on devices that have deployed H.264 instead.On2's patents over VP3 were contributed to the Xiph.org Foundation in 2001.
-
- -

The situation regarding video codecs is more murky, and implementers face difficult tradeoffs. Although Theora is patent-clear and freely implementable, it is not yet commonly deployed. Although Dirac is patent-clear and deployed fairly widely, no RTP packetization format has been defined for it. Although deployment of H.264 is fairly common, it is not patent-clear or freely implementable. For many open-source / free software projects and smaller technology vendors, implementation of H.264 is either impossible (because of patents and licensing restrictions) or prohibitively expensive (because of royalty payments). These developers are strongly encouraged to implement Theora or Dirac and also to urge wider adoption of Theora and Dirac among larger technology vendors. However, this document acknowledges that it may take some time before Theora and Dirac are commonly deployed (especially on mobile devices) and that systems based on H.264 might be dominant in the marketplace for several years. This situation is unfortunate but cannot be directly changed by the XMPP developer community.

-
- -

Because video codecs are not as mature as audio codecs, it is not yet possible for the XSF to recommend a mandatory-to-implement technology for video codecs. However, it might be possible to recommend Theora or Dirac in the future if they are more widely adopted.

-
+ +

Given that both Speex and G.711 are patent-clear, freely implementable, and commonly deployed, implementers are encouraged to consider including support for both codecs in audio applications of Jingle RTP sessions. Discussion on the jingle@xmpp.org mailing list indicates a slight preference for G.711 because it is easily available and so widely deployed (e.g., in SIP networks and the PSTN). The Opus codec is not yet widely deployed (or even fully developed), but it might become the "codec of the future" for audio applications over the Internet.

+
+ + +

As of June 2011, this document makes the following recommendations:

+
    +
  1. Jingle clients MUST implement both PCMU and PCMA.
  2. +
  3. Gateways between Jingle networks and other networks (e.g., SIP networks and the PSTN) MUST implement either PCMU or PCMA (and preferably both).
  4. +
+

Naturally, clients and gateways can implement additional codecs, such as those listed in this document.