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.

199 lines
4.9KB

  1. \input texinfo @c -*- texinfo -*-
  2. @settitle FFmpeg Resampler Documentation
  3. @titlepage
  4. @center @titlefont{FFmpeg Resampler Documentation}
  5. @end titlepage
  6. @top
  7. @contents
  8. @chapter Description
  9. @c man begin DESCRIPTION
  10. The FFmpeg resampler provides an high-level interface to the
  11. libswresample library audio resampling utilities. In particular it
  12. allows to perform audio resampling, audio channel layout rematrixing,
  13. and convert audio format and packing layout.
  14. @c man end DESCRIPTION
  15. @chapter Resampler Options
  16. @c man begin RESAMPLER OPTIONS
  17. The audio resampler supports the following named options.
  18. Options may be set by specifying -@var{option} @var{value} in the
  19. FFmpeg tools, or by setting the value explicitly in the
  20. @code{SwrContext} options or using the @file{libavutil/opt.h} API for
  21. programmatic use.
  22. @table @option
  23. @item ich, in_channel_count
  24. Set the number of input channels. Default value is 0. Setting this
  25. value is not mandatory if the corresponding channel layout
  26. @option{in_channel_layout} is set.
  27. @item och, out_channel_count
  28. Set the number of output channels. Default value is 0. Setting this
  29. value is not mandatory if the corresponding channel layout
  30. @option{out_channel_layout} is set.
  31. @item uch, used_channel_count
  32. Set the number of used channels. Default value is 0. This option is
  33. only used for special remapping.
  34. @item isr, in_sample_rate
  35. Set the input sample rate. Default value is 0.
  36. @item osr, out_sample_rate
  37. Set the output sample rate. Default value is 0.
  38. @item isf, in_sample_fmt
  39. Specify the input sample format. Must be an integer representing the
  40. corresponding sample format specified in
  41. @file{libavutil/samplefmt.h} header. Default value is -1
  42. (corresponding to @code{AV_SAMPLE_FMT_NONE}).
  43. @item osf, out_sample_fmt
  44. Specify the output sample format. Must be an integer representing the
  45. corresponding sample format specified in
  46. @file{libavutil/samplefmt.h} header. Default value is -1
  47. (corresponding to @code{AV_SAMPLE_FMT_NONE}).
  48. @item tsf, internal_sample_fmt
  49. Set the internal sample format. Default value is -1.
  50. @item icl, in_channel_layout
  51. Set the input channel layout.
  52. @item ocl, out_channel_layout
  53. Set the output channel layout.
  54. @item clev, center_mix_level
  55. Set center mix level. It is a value expressed in deciBel, and must be
  56. inclusively included between -32 and +32.
  57. @item slev, surround_mix_level
  58. Set surround mix level. It is a value expressed in deciBel, and must
  59. be inclusively included between -32 and +32.
  60. @item lfe_mix_evel
  61. Set LFE mix level.
  62. @item rmvol, rematrix_volume
  63. Set rematrix volume. Default value is 1.0.
  64. @item flags, swr_flags
  65. Set flags used by the converter. Default value is 0.
  66. It supports the following individual flags:
  67. @table @option
  68. @item res
  69. force resampling
  70. @end table
  71. @item dither_scale
  72. Set the dither scale. Default value is 1.
  73. @item dither_method
  74. Set dither method. Default value is 0.
  75. Supported values:
  76. @table @samp
  77. @item rectangular
  78. select rectangular dither
  79. @item triangular
  80. select triangular dither
  81. @item triangular_hp
  82. select triangular dither with high pass
  83. @end table
  84. @item filter_size
  85. Set resampling filter size, default value is 16.
  86. @item phase_shift
  87. Set resampling phase shift, default value is 10, must be included
  88. between 0 and 30.
  89. @item linear_interp
  90. Use Linear Interpolation if set to 1, default value is 0.
  91. @item cutoff
  92. Set cutoff frequency ratio. Must be a float value between 0 and 1,
  93. default value is 0.8.
  94. @item min_comp
  95. Set minimum difference between timestamps and audio data (in seconds)
  96. below which no timestamp compensation of either kind is applied.
  97. Default value is @code{FLT_MAX}.
  98. @item min_hard_comp
  99. Set minimum difference between timestamps and audio data (in seconds)
  100. to trigger padding/trimming the data. Must be a non-negative double,
  101. default value is 0.1.
  102. @item comp_duration
  103. Set duration (in seconds) over which data is stretched/squeezed to
  104. make it match the timestamps. Must be a non-negative double float
  105. value, default value is 1.0.
  106. @item max_soft_comp
  107. Set maximum factor by which data is stretched/squeezed to make it
  108. match the timestamps. Must be a non-negative double float value,
  109. default value is 0.
  110. @item matrix_encoding
  111. Select matrixed stereo encoding.
  112. It accepts the following values:
  113. @table @samp
  114. @item none
  115. select none
  116. @item dolby
  117. select Dolby
  118. @item dplii
  119. select Dolby Pro Logic II
  120. @end table
  121. Default value is @code{none}.
  122. @item filter_type
  123. Select resampling filter type. This only affects resampling
  124. operations.
  125. It accepts the following values:
  126. @table @samp
  127. @item cubic
  128. select cubic
  129. @item blackman_nuttall
  130. select Blackman Nuttall Windowed Sinc
  131. @item kaiser
  132. select Kaiser Windowed Sinc
  133. @end table
  134. @item kaiser_beta
  135. Set Kaiser Window Beta value. Must be an integer included between 2
  136. and 16, default value is 9.
  137. @end table
  138. @c man end RESAMPLER OPTIONS
  139. @ignore
  140. @setfilename ffmpeg-resampler
  141. @settitle FFmpeg Resampler
  142. @c man begin SEEALSO
  143. ffmpeg(1), ffplay(1), ffprobe(1), ffserver(1), libswresample(3)
  144. @c man end
  145. @c man begin AUTHORS
  146. See Git history (git://source.ffmpeg.org/ffmpeg)
  147. @c man end
  148. @end ignore