星火直播PC
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.

nut.html 9.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <title>FFmpeg documentation</title>
  7. <link rel="stylesheet" href="bootstrap.min.css" />
  8. <link rel="stylesheet" href="style.min.css" />
  9. <meta name="description" content="NUT: ">
  10. <meta name="keywords" content="FFmpeg documentation : NUT: ">
  11. <meta name="Generator" content="texi2html 5.0">
  12. <!-- Created on March 9, 2020 by texi2html 5.0 -->
  13. <!--
  14. texi2html was written by:
  15. Lionel Cons <Lionel.Cons@cern.ch> (original author)
  16. Karl Berry <karl@freefriends.org>
  17. Olaf Bachmann <obachman@mathematik.uni-kl.de>
  18. and many others.
  19. Maintained by: Many creative people.
  20. Send bugs and suggestions to <texi2html-bug@nongnu.org>
  21. -->
  22. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  23. </head>
  24. <body>
  25. <div class="container">
  26. <h1 class="titlefont">NUT</h1>
  27. <hr>
  28. <a name="SEC_Top"></a>
  29. <a name="SEC_Contents"></a>
  30. <h1>Table of Contents</h1>
  31. <div class="contents">
  32. <ul class="no-bullet">
  33. <li><a name="toc-Description" href="#Description">1 Description</a></li>
  34. <li><a name="toc-Modes" href="#Modes">2 Modes</a>
  35. <ul class="no-bullet">
  36. <li><a name="toc-BROADCAST" href="#BROADCAST">2.1 BROADCAST</a></li>
  37. <li><a name="toc-PIPE" href="#PIPE">2.2 PIPE</a></li>
  38. </ul></li>
  39. <li><a name="toc-Container_002dspecific-codec-tags" href="#Container_002dspecific-codec-tags">3 Container-specific codec tags</a>
  40. <ul class="no-bullet">
  41. <li><a name="toc-Generic-raw-YUVA-formats" href="#Generic-raw-YUVA-formats">3.1 Generic raw YUVA formats</a></li>
  42. <li><a name="toc-Raw-Audio" href="#Raw-Audio">3.2 Raw Audio</a></li>
  43. <li><a name="toc-Subtitles" href="#Subtitles">3.3 Subtitles</a></li>
  44. <li><a name="toc-Raw-Data" href="#Raw-Data">3.4 Raw Data</a></li>
  45. <li><a name="toc-Codecs" href="#Codecs">3.5 Codecs</a></li>
  46. </ul>
  47. </li>
  48. </ul>
  49. </div>
  50. <hr size="6">
  51. <a name="Description"></a>
  52. <h1 class="chapter"><a href="nut.html#toc-Description">1 Description</a></h1>
  53. <p>NUT is a low overhead generic container format. It stores audio, video,
  54. subtitle and user-defined streams in a simple, yet efficient, way.
  55. </p>
  56. <p>It was created by a group of FFmpeg and MPlayer developers in 2003
  57. and was finalized in 2008.
  58. </p>
  59. <p>The official nut specification is at svn://svn.mplayerhq.hu/nut
  60. In case of any differences between this text and the official specification,
  61. the official specification shall prevail.
  62. </p>
  63. <a name="Modes"></a>
  64. <h1 class="chapter"><a href="nut.html#toc-Modes">2 Modes</a></h1>
  65. <p>NUT has some variants signaled by using the flags field in its main header.
  66. </p>
  67. <table>
  68. <tr><td width="40%">BROADCAST</td><td width="40%">Extend the syncpoint to report the sender wallclock</td></tr>
  69. <tr><td width="40%">PIPE</td><td width="40%">Omit completely the syncpoint</td></tr>
  70. </table>
  71. <a name="BROADCAST"></a>
  72. <h2 class="section"><a href="nut.html#toc-BROADCAST">2.1 BROADCAST</a></h2>
  73. <p>The BROADCAST variant provides a secondary time reference to facilitate
  74. detecting endpoint latency and network delays.
  75. It assumes all the endpoint clocks are synchronized.
  76. To be used in real-time scenarios.
  77. </p>
  78. <a name="PIPE"></a>
  79. <h2 class="section"><a href="nut.html#toc-PIPE">2.2 PIPE</a></h2>
  80. <p>The PIPE variant assumes NUT is used as non-seekable intermediate container,
  81. by not using syncpoint removes unneeded overhead and reduces the overall
  82. memory usage.
  83. </p>
  84. <a name="Container_002dspecific-codec-tags"></a>
  85. <h1 class="chapter"><a href="nut.html#toc-Container_002dspecific-codec-tags">3 Container-specific codec tags</a></h1>
  86. <a name="Generic-raw-YUVA-formats"></a>
  87. <h2 class="section"><a href="nut.html#toc-Generic-raw-YUVA-formats">3.1 Generic raw YUVA formats</a></h2>
  88. <p>Since many exotic planar YUVA pixel formats are not considered by
  89. the AVI/QuickTime FourCC lists, the following scheme is adopted for
  90. representing them.
  91. </p>
  92. <p>The first two bytes can contain the values:
  93. Y1 = only Y
  94. Y2 = Y+A
  95. Y3 = YUV
  96. Y4 = YUVA
  97. </p>
  98. <p>The third byte represents the width and height chroma subsampling
  99. values for the UV planes, that is the amount to shift the luma
  100. width/height right to find the chroma width/height.
  101. </p>
  102. <p>The fourth byte is the number of bits used (8, 16, ...).
  103. </p>
  104. <p>If the order of bytes is inverted, that means that each component has
  105. to be read big-endian.
  106. </p>
  107. <a name="Raw-Audio"></a>
  108. <h2 class="section"><a href="nut.html#toc-Raw-Audio">3.2 Raw Audio</a></h2>
  109. <table>
  110. <tr><td width="40%">ALAW</td><td width="40%">A-LAW</td></tr>
  111. <tr><td width="40%">ULAW</td><td width="40%">MU-LAW</td></tr>
  112. <tr><td width="40%">P&lt;type&gt;&lt;interleaving&gt;&lt;bits&gt;</td><td width="40%">little-endian PCM</td></tr>
  113. <tr><td width="40%">&lt;bits&gt;&lt;interleaving&gt;&lt;type&gt;P</td><td width="40%">big-endian PCM</td></tr>
  114. </table>
  115. <p>&lt;type&gt; is S for signed integer, U for unsigned integer, F for IEEE float
  116. &lt;interleaving&gt; is D for default, P is for planar.
  117. &lt;bits&gt; is 8/16/24/32
  118. </p>
  119. <div class="example">
  120. <pre class="example">PFD[32] would for example be signed 32 bit little-endian IEEE float
  121. </pre></div>
  122. <a name="Subtitles"></a>
  123. <h2 class="section"><a href="nut.html#toc-Subtitles">3.3 Subtitles</a></h2>
  124. <table>
  125. <tr><td width="40%">UTF8</td><td width="40%">Raw UTF-8</td></tr>
  126. <tr><td width="40%">SSA[0]</td><td width="40%">SubStation Alpha</td></tr>
  127. <tr><td width="40%">DVDS</td><td width="40%">DVD subtitles</td></tr>
  128. <tr><td width="40%">DVBS</td><td width="40%">DVB subtitles</td></tr>
  129. </table>
  130. <a name="Raw-Data"></a>
  131. <h2 class="section"><a href="nut.html#toc-Raw-Data">3.4 Raw Data</a></h2>
  132. <table>
  133. <tr><td width="40%">UTF8</td><td width="40%">Raw UTF-8</td></tr>
  134. </table>
  135. <a name="Codecs"></a>
  136. <h2 class="section"><a href="nut.html#toc-Codecs">3.5 Codecs</a></h2>
  137. <table>
  138. <tr><td width="40%">3IV1</td><td width="40%">non-compliant MPEG-4 generated by old 3ivx</td></tr>
  139. <tr><td width="40%">ASV1</td><td width="40%">Asus Video</td></tr>
  140. <tr><td width="40%">ASV2</td><td width="40%">Asus Video 2</td></tr>
  141. <tr><td width="40%">CVID</td><td width="40%">Cinepak</td></tr>
  142. <tr><td width="40%">CYUV</td><td width="40%">Creative YUV</td></tr>
  143. <tr><td width="40%">DIVX</td><td width="40%">non-compliant MPEG-4 generated by old DivX</td></tr>
  144. <tr><td width="40%">DUCK</td><td width="40%">Truemotion 1</td></tr>
  145. <tr><td width="40%">FFV1</td><td width="40%">FFmpeg video 1</td></tr>
  146. <tr><td width="40%">FFVH</td><td width="40%">FFmpeg Huffyuv</td></tr>
  147. <tr><td width="40%">H261</td><td width="40%">ITU H.261</td></tr>
  148. <tr><td width="40%">H262</td><td width="40%">ITU H.262</td></tr>
  149. <tr><td width="40%">H263</td><td width="40%">ITU H.263</td></tr>
  150. <tr><td width="40%">H264</td><td width="40%">ITU H.264</td></tr>
  151. <tr><td width="40%">HFYU</td><td width="40%">Huffyuv</td></tr>
  152. <tr><td width="40%">I263</td><td width="40%">Intel H.263</td></tr>
  153. <tr><td width="40%">IV31</td><td width="40%">Indeo 3.1</td></tr>
  154. <tr><td width="40%">IV32</td><td width="40%">Indeo 3.2</td></tr>
  155. <tr><td width="40%">IV50</td><td width="40%">Indeo 5.0</td></tr>
  156. <tr><td width="40%">LJPG</td><td width="40%">ITU JPEG (lossless)</td></tr>
  157. <tr><td width="40%">MJLS</td><td width="40%">ITU JPEG-LS</td></tr>
  158. <tr><td width="40%">MJPG</td><td width="40%">ITU JPEG</td></tr>
  159. <tr><td width="40%">MPG4</td><td width="40%">MS MPEG-4v1 (not ISO MPEG-4)</td></tr>
  160. <tr><td width="40%">MP42</td><td width="40%">MS MPEG-4v2</td></tr>
  161. <tr><td width="40%">MP43</td><td width="40%">MS MPEG-4v3</td></tr>
  162. <tr><td width="40%">MP4V</td><td width="40%">ISO MPEG-4 Part 2 Video (from old encoders)</td></tr>
  163. <tr><td width="40%">mpg1</td><td width="40%">ISO MPEG-1 Video</td></tr>
  164. <tr><td width="40%">mpg2</td><td width="40%">ISO MPEG-2 Video</td></tr>
  165. <tr><td width="40%">MRLE</td><td width="40%">MS RLE</td></tr>
  166. <tr><td width="40%">MSVC</td><td width="40%">MS Video 1</td></tr>
  167. <tr><td width="40%">RT21</td><td width="40%">Indeo 2.1</td></tr>
  168. <tr><td width="40%">RV10</td><td width="40%">RealVideo 1.0</td></tr>
  169. <tr><td width="40%">RV20</td><td width="40%">RealVideo 2.0</td></tr>
  170. <tr><td width="40%">RV30</td><td width="40%">RealVideo 3.0</td></tr>
  171. <tr><td width="40%">RV40</td><td width="40%">RealVideo 4.0</td></tr>
  172. <tr><td width="40%">SNOW</td><td width="40%">FFmpeg Snow</td></tr>
  173. <tr><td width="40%">SVQ1</td><td width="40%">Sorenson Video 1</td></tr>
  174. <tr><td width="40%">SVQ3</td><td width="40%">Sorenson Video 3</td></tr>
  175. <tr><td width="40%">theo</td><td width="40%">Xiph Theora</td></tr>
  176. <tr><td width="40%">TM20</td><td width="40%">Truemotion 2.0</td></tr>
  177. <tr><td width="40%">UMP4</td><td width="40%">non-compliant MPEG-4 generated by UB Video MPEG-4</td></tr>
  178. <tr><td width="40%">VCR1</td><td width="40%">ATI VCR1</td></tr>
  179. <tr><td width="40%">VP30</td><td width="40%">VP 3.0</td></tr>
  180. <tr><td width="40%">VP31</td><td width="40%">VP 3.1</td></tr>
  181. <tr><td width="40%">VP50</td><td width="40%">VP 5.0</td></tr>
  182. <tr><td width="40%">VP60</td><td width="40%">VP 6.0</td></tr>
  183. <tr><td width="40%">VP61</td><td width="40%">VP 6.1</td></tr>
  184. <tr><td width="40%">VP62</td><td width="40%">VP 6.2</td></tr>
  185. <tr><td width="40%">VP70</td><td width="40%">VP 7.0</td></tr>
  186. <tr><td width="40%">WMV1</td><td width="40%">MS WMV7</td></tr>
  187. <tr><td width="40%">WMV2</td><td width="40%">MS WMV8</td></tr>
  188. <tr><td width="40%">WMV3</td><td width="40%">MS WMV9</td></tr>
  189. <tr><td width="40%">WV1F</td><td width="40%">non-compliant MPEG-4 generated by ?</td></tr>
  190. <tr><td width="40%">WVC1</td><td width="40%">VC-1</td></tr>
  191. <tr><td width="40%">XVID</td><td width="40%">non-compliant MPEG-4 generated by old Xvid</td></tr>
  192. <tr><td width="40%">XVIX</td><td width="40%">non-compliant MPEG-4 generated by old Xvid with interlacing bug</td></tr>
  193. </table>
  194. </div>
  195. </body>
  196. </html>