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.

206 lines
5.1KB

  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, @var{option}=@var{value} for the aresample filter,
  20. by setting the value explicitly in the
  21. @code{SwrContext} options or using the @file{libavutil/opt.h} API for
  22. programmatic use.
  23. @table @option
  24. @item ich, in_channel_count
  25. Set the number of input channels. Default value is 0. Setting this
  26. value is not mandatory if the corresponding channel layout
  27. @option{in_channel_layout} is set.
  28. @item och, out_channel_count
  29. Set the number of output channels. Default value is 0. Setting this
  30. value is not mandatory if the corresponding channel layout
  31. @option{out_channel_layout} is set.
  32. @item uch, used_channel_count
  33. Set the number of used channels. Default value is 0. This option is
  34. only used for special remapping.
  35. @item isr, in_sample_rate
  36. Set the input sample rate. Default value is 0.
  37. @item osr, out_sample_rate
  38. Set the output sample rate. Default value is 0.
  39. @item isf, in_sample_fmt
  40. Specify the input sample format. It is set by default to @code{none}.
  41. @item osf, out_sample_fmt
  42. Specify the output sample format. It is set by default to @code{none}.
  43. @item tsf, internal_sample_fmt
  44. Set the internal sample format. Default value is @code{none}.
  45. @item icl, in_channel_layout
  46. Set the input channel layout.
  47. @item ocl, out_channel_layout
  48. Set the output channel layout.
  49. @item clev, center_mix_level
  50. Set center mix level. It is a value expressed in deciBel, and must be
  51. inclusively included between -32 and +32.
  52. @item slev, surround_mix_level
  53. Set surround mix level. It is a value expressed in deciBel, and must
  54. be inclusively included between -32 and +32.
  55. @item lfe_mix_evel
  56. Set LFE mix level.
  57. @item rmvol, rematrix_volume
  58. Set rematrix volume. Default value is 1.0.
  59. @item flags, swr_flags
  60. Set flags used by the converter. Default value is 0.
  61. It supports the following individual flags:
  62. @table @option
  63. @item res
  64. force resampling
  65. @end table
  66. @item dither_scale
  67. Set the dither scale. Default value is 1.
  68. @item dither_method
  69. Set dither method. Default value is 0.
  70. Supported values:
  71. @table @samp
  72. @item rectangular
  73. select rectangular dither
  74. @item triangular
  75. select triangular dither
  76. @item triangular_hp
  77. select triangular dither with high pass
  78. @end table
  79. @item filter_size
  80. Set resampling filter size, default value is 16.
  81. @item phase_shift
  82. Set resampling phase shift, default value is 10, must be included
  83. between 0 and 30.
  84. @item linear_interp
  85. Use Linear Interpolation if set to 1, default value is 0.
  86. @item cutoff
  87. Set cutoff frequency ratio. Must be a float value between 0 and 1,
  88. default value is 0.8.
  89. @item min_comp
  90. Set the minimum difference between timestamps and audio data (in
  91. seconds) to trigger stretching/squeezing/filling or trimming of the
  92. data to make it match the timestamps. The default is that
  93. stretching/squeezing/filling and trimming is disabled
  94. (@option{min_comp} = @code{FLT_MAX}).
  95. @item min_hard_comp
  96. Set the minimum difference between timestamps and audio data (in
  97. seconds) to trigger adding/dropping samples to make it match the
  98. timestamps. This option effectively is a threshold to select between
  99. hard (trim/fill) and soft (squeeze/stretch) compensation. Note that
  100. all compensation is by default disabled through @option{min_comp}.
  101. The default 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. @chapter See Also
  140. @ifhtml
  141. @url{ffmpeg.html,ffmpeg}, @url{ffplay.html,ffplay}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
  142. @url{libswresample.html}
  143. @end ifhtml
  144. @ifnothtml
  145. ffmpeg(1), ffplay(1), ffprobe(1), ffserver(1), libswresample(3)
  146. @end ifnothtml
  147. @include authors.texi
  148. @ignore
  149. @setfilename ffmpeg-resampler
  150. @settitle FFmpeg Resampler
  151. @end ignore
  152. @bye