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.

201 lines
4.8KB

  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 minimum difference between timestamps and audio data (in seconds)
  91. below which no timestamp compensation of either kind is applied.
  92. Default value is @code{FLT_MAX}.
  93. @item min_hard_comp
  94. Set minimum difference between timestamps and audio data (in seconds)
  95. to trigger padding/trimming the data. Must be a non-negative double,
  96. default value is 0.1.
  97. @item comp_duration
  98. Set duration (in seconds) over which data is stretched/squeezed to
  99. make it match the timestamps. Must be a non-negative double float
  100. value, default value is 1.0.
  101. @item max_soft_comp
  102. Set maximum factor by which data is stretched/squeezed to make it
  103. match the timestamps. Must be a non-negative double float value,
  104. default value is 0.
  105. @item matrix_encoding
  106. Select matrixed stereo encoding.
  107. It accepts the following values:
  108. @table @samp
  109. @item none
  110. select none
  111. @item dolby
  112. select Dolby
  113. @item dplii
  114. select Dolby Pro Logic II
  115. @end table
  116. Default value is @code{none}.
  117. @item filter_type
  118. Select resampling filter type. This only affects resampling
  119. operations.
  120. It accepts the following values:
  121. @table @samp
  122. @item cubic
  123. select cubic
  124. @item blackman_nuttall
  125. select Blackman Nuttall Windowed Sinc
  126. @item kaiser
  127. select Kaiser Windowed Sinc
  128. @end table
  129. @item kaiser_beta
  130. Set Kaiser Window Beta value. Must be an integer included between 2
  131. and 16, default value is 9.
  132. @end table
  133. @c man end RESAMPLER OPTIONS
  134. @chapter See Also
  135. @ifhtml
  136. @url{ffmpeg.html,ffmpeg}, @url{ffplay.html,ffplay}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
  137. @url{libswresample.html}
  138. @end ifhtml
  139. @ifnothtml
  140. ffmpeg(1), ffplay(1), ffprobe(1), ffserver(1), libswresample(3)
  141. @end ifnothtml
  142. @include authors.texi
  143. @ignore
  144. @setfilename ffmpeg-resampler
  145. @settitle FFmpeg Resampler
  146. @end ignore
  147. @bye