nut.texi 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. \input texinfo @c -*- texinfo -*-
  2. @settitle NUT
  3. @titlepage
  4. @center @titlefont{NUT}
  5. @end titlepage
  6. @top
  7. @contents
  8. @chapter Description
  9. NUT is a low overhead generic container format. It stores audio, video,
  10. subtitle and user-defined streams in a simple, yet efficient, way.
  11. It was created by a group of FFmpeg and MPlayer developers in 2003
  12. and was finalized in 2008.
  13. The official nut specification is at svn://svn.mplayerhq.hu/nut
  14. In case of any differences between this text and the official specification,
  15. the official specification shall prevail.
  16. @chapter Modes
  17. NUT has some variants signaled by using the flags field in its main header.
  18. @multitable @columnfractions .4 .4
  19. @item BROADCAST @tab Extend the syncpoint to report the sender wallclock
  20. @item PIPE @tab Omit completely the syncpoint
  21. @end multitable
  22. @section BROADCAST
  23. The BROADCAST variant provides a secondary time reference to facilitate
  24. detecting endpoint latency and network delays.
  25. It assumes all the endpoint clocks are syncronized.
  26. To be used in real-time scenarios.
  27. @section PIPE
  28. The PIPE variant assumes NUT is used as non-seekable intermediate container,
  29. by not using syncpoint removes unneeded overhead and reduces the overall
  30. memory usage.
  31. @chapter Container-specific codec tags
  32. @section Generic raw YUVA formats
  33. Since many exotic planar YUVA pixel formats are not considered by
  34. the AVI/QuickTime FourCC lists, the following scheme is adopted for
  35. representing them.
  36. The first two bytes can contain the values:
  37. Y1 = only Y
  38. Y2 = Y+A
  39. Y3 = YUV
  40. Y4 = YUVA
  41. The third byte represents the width and height chroma subsampling
  42. values for the UV planes, that is the amount to shift the luma
  43. width/height right to find the chroma width/height.
  44. The fourth byte is the number of bits used (8, 16, ...).
  45. If the order of bytes is inverted, that means that each component has
  46. to be read big-endian.
  47. @section Raw Audio
  48. @multitable @columnfractions .4 .4
  49. @item ALAW @tab A-LAW
  50. @item ULAW @tab MU-LAW
  51. @item P<type><interleaving><bits> @tab little-endian PCM
  52. @item <bits><interleaving><type>P @tab big-endian PCM
  53. @end multitable
  54. <type> is S for signed integer, U for unsigned integer, F for IEEE float
  55. <interleaving> is D for default, P is for planar.
  56. <bits> is 8/16/24/32
  57. @example
  58. PFD[32] would for example be signed 32 bit little-endian IEEE float
  59. @end example
  60. @section Subtitles
  61. @multitable @columnfractions .4 .4
  62. @item UTF8 @tab Raw UTF-8
  63. @item SSA[0] @tab SubStation Alpha
  64. @item DVDS @tab DVD subtitles
  65. @item DVBS @tab DVB subtitles
  66. @end multitable
  67. @section Raw Data
  68. @multitable @columnfractions .4 .4
  69. @item UTF8 @tab Raw UTF-8
  70. @end multitable
  71. @section Codecs
  72. @multitable @columnfractions .4 .4
  73. @item 3IV1 @tab non-compliant MPEG-4 generated by old 3ivx
  74. @item ASV1 @tab Asus Video
  75. @item ASV2 @tab Asus Video 2
  76. @item CVID @tab Cinepak
  77. @item CYUV @tab Creative YUV
  78. @item DIVX @tab non-compliant MPEG-4 generated by old DivX
  79. @item DUCK @tab Truemotion 1
  80. @item FFV1 @tab FFmpeg video 1
  81. @item FFVH @tab FFmpeg Huffyuv
  82. @item H261 @tab ITU H.261
  83. @item H262 @tab ITU H.262
  84. @item H263 @tab ITU H.263
  85. @item H264 @tab ITU H.264
  86. @item HFYU @tab Huffyuv
  87. @item I263 @tab Intel H.263
  88. @item IV31 @tab Indeo 3.1
  89. @item IV32 @tab Indeo 3.2
  90. @item IV50 @tab Indeo 5.0
  91. @item LJPG @tab ITU JPEG (lossless)
  92. @item MJLS @tab ITU JPEG-LS
  93. @item MJPG @tab ITU JPEG
  94. @item MPG4 @tab MS MPEG-4v1 (not ISO MPEG-4)
  95. @item MP42 @tab MS MPEG-4v2
  96. @item MP43 @tab MS MPEG-4v3
  97. @item MP4V @tab ISO MPEG-4 Part 2 Video (from old encoders)
  98. @item mpg1 @tab ISO MPEG-1 Video
  99. @item mpg2 @tab ISO MPEG-2 Video
  100. @item MRLE @tab MS RLE
  101. @item MSVC @tab MS Video 1
  102. @item RT21 @tab Indeo 2.1
  103. @item RV10 @tab RealVideo 1.0
  104. @item RV20 @tab RealVideo 2.0
  105. @item RV30 @tab RealVideo 3.0
  106. @item RV40 @tab RealVideo 4.0
  107. @item SNOW @tab FFmpeg Snow
  108. @item SVQ1 @tab Sorenson Video 1
  109. @item SVQ3 @tab Sorenson Video 3
  110. @item theo @tab Xiph Theora
  111. @item TM20 @tab Truemotion 2.0
  112. @item UMP4 @tab non-compliant MPEG-4 generated by UB Video MPEG-4
  113. @item VCR1 @tab ATI VCR1
  114. @item VP30 @tab VP 3.0
  115. @item VP31 @tab VP 3.1
  116. @item VP50 @tab VP 5.0
  117. @item VP60 @tab VP 6.0
  118. @item VP61 @tab VP 6.1
  119. @item VP62 @tab VP 6.2
  120. @item VP70 @tab VP 7.0
  121. @item WMV1 @tab MS WMV7
  122. @item WMV2 @tab MS WMV8
  123. @item WMV3 @tab MS WMV9
  124. @item WV1F @tab non-compliant MPEG-4 generated by ?
  125. @item WVC1 @tab VC-1
  126. @item XVID @tab non-compliant MPEG-4 generated by old Xvid
  127. @item XVIX @tab non-compliant MPEG-4 generated by old Xvid with interlacing bug
  128. @end multitable