No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0299.xml 9.5KB

  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM 'xep.ent'>
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>Codecs for Jingle Video</title>
  10. <abstract>This document describes implementation considerations related to video codecs for use in Jingle RTP sessions.</abstract>
  12. <number>0299</number>
  13. <status>Deferred</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <approver>Council</approver>
  17. <dependencies>
  18. <spec>XMPP Core</spec>
  19. <spec>XEP-0167</spec>
  20. </dependencies>
  21. <supersedes/>
  22. <supersededby/>
  23. <shortname>N/A</shortname>
  24. <discuss>jingle</discuss>
  25. &stpeter;
  26. <revision>
  27. <version>0.1</version>
  28. <date>2011-06-12</date>
  29. <initials>psa</initials>
  30. <remark><p>Initial published version, split from XEP-0266.</p></remark>
  31. </revision>
  32. </header>
  33. <section1 topic='Introduction' anchor='intro'>
  34. <p>&xep0167; defines the &xep0166; signalling exchanges needed to establish video sessions using the Real-time Transport Protocol &rfc3550;; however, it does not say which video 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 voice and video codecs.</p>
  35. <p>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.</p>
  36. <p class='box'>This document does not yet provide binding recommendations to the XMPP developer community regarding mandatory-to-implement technologies; however, it provides input that the &XSF; could use in making such recommendations.</p>
  37. </section1>
  38. <section1 topic='Basic Considerations' anchor='basics'>
  39. <p>The ideal codec would meet the following criteria:</p>
  40. <dl>
  41. <di><dt>Quality</dt><dd>The encoding quality is acceptable for deployment among XMPP users.</dd></di>
  42. <di><dt>Packetization</dt><dd>The specification of the codec clearly defines packetization of data for sending over RTP.</dd></di>
  43. <di><dt>Availability</dt><dd>The codec can be implemented on a wide variety of computing platforms and is commonly used in Internet or other systems.</dd></di>
  44. <di><dt>Patents</dt><dd>The codec is patent-clear. <note>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.</note> (Although most XMPP developers would prefer to implement codecs that are patent-clear, such options are not always widely implemented and deployed.)</dd></di>
  45. </dl>
  46. <p>Unfortunately, not all codecs meet those criteria. In the remainder of this document we discuss the video codecs that are most appropriate for implementation in Jingle RTP applications.</p>
  47. </section1>
  48. <section1 topic='Codecs' anchor='codecs'>
  49. <section2 topic='Dirac' anchor='codecs-dirac'>
  50. <p>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.</p>
  51. <table caption='Codec Considerations for Dirac'>
  52. <tr>
  53. <th>Quality</th>
  54. <th>Packetization</th>
  55. <th>Availability</th>
  56. <th>Patents</th>
  57. </tr>
  58. <tr>
  59. <td>High quality.</td>
  60. <td>Not yet defined.</td>
  61. <td>Freely downloadable under both GPL and LGPL at &lt;<link url=''></link>&gt;; commonly deployed but not yet in video over IP systems because of the lack of an RTP packetization format.</td>
  62. <td>Diract is patent-clear, and the BBC has allowed its related patents to lapse.</td>
  63. </tr>
  64. </table>
  65. </section2>
  66. <section2 topic='H.264' anchor='codecs-h264'>
  67. <p>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.</p>
  68. <table caption='Codec Considerations for H.264'>
  69. <tr>
  70. <th>Quality</th>
  71. <th>Packetization</th>
  72. <th>Availability</th>
  73. <th>Patents</th>
  74. </tr>
  75. <tr>
  76. <td>High quality.</td>
  77. <td>See &rfc3984;.</td>
  78. <td>Commonly deployed in commercial video systems. Not freely downloadable; both software implementations and service deployments can be subject to royalty payments for commercial use.</td>
  79. <td>Patented.</td>
  80. </tr>
  81. </table>
  82. </section2>
  83. <section2 topic='Theora' anchor='codecs-theora'>
  84. <p>According to the 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 <link url=''> Foundation</link>. The following table summarizes the available information about Theora.</p>
  85. <table caption='Codec Considerations for Theora'>
  86. <tr>
  87. <th>Quality</th>
  88. <th>Packetization</th>
  89. <th>Availability</th>
  90. <th>Patents</th>
  91. </tr>
  92. <tr>
  93. <td>Acceptable quality.</td>
  94. <td>See &rtptheora;.</td>
  95. <td>Freely downloadable under BSD license at &lt;<link url=''></link>&gt;; not yet commonly deployed, especially on devices that have deployed H.264 instead.</td>
  96. <td>On2's patents over VP3 were contributed to the Foundation in 2001.</td>
  97. </tr>
  98. </table>
  99. </section2>
  100. <section2 topic='VP8' anchor='codecs-vp8'>
  101. <p>VP8 is an open video compression format originally developed (as was Theora) by On2 Technologies and released by Google after it acquired On2 Technologies in 2010. The following table summarizes the available information about Theora.</p>
  102. <table caption='Codec Considerations for VP8'>
  103. <tr>
  104. <th>Quality</th>
  105. <th>Packetization</th>
  106. <th>Availability</th>
  107. <th>Patents</th>
  108. </tr>
  109. <tr>
  110. <td>High quality.</td>
  111. <td>See &rtpvp8;.</td>
  112. <td>Freely downloadable under BSD-like license at &lt;<link url=''></link>&gt;; not yet commonly deployed, especially on devices that have deployed H.264 instead.</td>
  113. <td>Google released the VP8 bitstream format under an irrevocable free patent license in 2010.</td>
  114. </tr>
  115. </table>
  116. </section2>
  117. </section1>
  118. <section1 topic='Guidance for Implementers' anchor='impl'>
  119. <p>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.</p>
  120. </section1>
  121. <section1 topic='Mandatory-to-Implement Codecs' anchor='mti'>
  122. <p>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 Jingle video. However, in the future it might be possible to recommend one of the codecs described in this document.</p>
  123. </section1>
  124. <section1 topic='Security Considerations' anchor='security'>
  125. <p>For security considerations related to Jingle RTP sessions, refer to <cite>XEP-0167</cite>. This document introduces no new security considerations. See also the security considerations described in the relevant codec specifications.</p>
  126. </section1>
  127. <section1 topic='IANA Considerations' anchor='iana'>
  128. <p>This document requires no interaction with &IANA;.</p>
  129. </section1>
  130. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  131. <p>This document requires no interaction with the &REGISTRAR;.</p>
  132. </section1>
  133. <section1 topic='Acknowledgements' anchor='ack'>
  134. <p>Thanks to Olivier Crête, Dave Cridland, Florian Jensen, Justin Karneges, Evgeniy Khramtsov, Marcus Lundblad, Tobias Markmann, Pedro Melo, Jack Moffitt, Jeff Muller, Jehan Pagès, Arc Riley, Kevin Smith, Remko Tronçon, Justin Uberti, and Paul Witty for their feedback.</p>
  135. </section1>
  136. </xep>