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.

193 lines
4.7KB

  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. It is set by default to @code{none}.
  40. @item osf, out_sample_fmt
  41. Specify the output sample format. It is set by default to @code{none}.
  42. @item tsf, internal_sample_fmt
  43. Set the internal sample format. Default value is @code{none}.
  44. @item icl, in_channel_layout
  45. Set the input channel layout.
  46. @item ocl, out_channel_layout
  47. Set the output channel layout.
  48. @item clev, center_mix_level
  49. Set center mix level. It is a value expressed in deciBel, and must be
  50. inclusively included between -32 and +32.
  51. @item slev, surround_mix_level
  52. Set surround mix level. It is a value expressed in deciBel, and must
  53. be inclusively included between -32 and +32.
  54. @item lfe_mix_evel
  55. Set LFE mix level.
  56. @item rmvol, rematrix_volume
  57. Set rematrix volume. Default value is 1.0.
  58. @item flags, swr_flags
  59. Set flags used by the converter. Default value is 0.
  60. It supports the following individual flags:
  61. @table @option
  62. @item res
  63. force resampling
  64. @end table
  65. @item dither_scale
  66. Set the dither scale. Default value is 1.
  67. @item dither_method
  68. Set dither method. Default value is 0.
  69. Supported values:
  70. @table @samp
  71. @item rectangular
  72. select rectangular dither
  73. @item triangular
  74. select triangular dither
  75. @item triangular_hp
  76. select triangular dither with high pass
  77. @end table
  78. @item filter_size
  79. Set resampling filter size, default value is 16.
  80. @item phase_shift
  81. Set resampling phase shift, default value is 10, must be included
  82. between 0 and 30.
  83. @item linear_interp
  84. Use Linear Interpolation if set to 1, default value is 0.
  85. @item cutoff
  86. Set cutoff frequency ratio. Must be a float value between 0 and 1,
  87. default value is 0.8.
  88. @item min_comp
  89. Set minimum difference between timestamps and audio data (in seconds)
  90. below which no timestamp compensation of either kind is applied.
  91. Default value is @code{FLT_MAX}.
  92. @item min_hard_comp
  93. Set minimum difference between timestamps and audio data (in seconds)
  94. to trigger padding/trimming the data. Must be a non-negative double,
  95. default value is 0.1.
  96. @item comp_duration
  97. Set duration (in seconds) over which data is stretched/squeezed to
  98. make it match the timestamps. Must be a non-negative double float
  99. value, default value is 1.0.
  100. @item max_soft_comp
  101. Set maximum factor by which data is stretched/squeezed to make it
  102. match the timestamps. Must be a non-negative double float value,
  103. default value is 0.
  104. @item matrix_encoding
  105. Select matrixed stereo encoding.
  106. It accepts the following values:
  107. @table @samp
  108. @item none
  109. select none
  110. @item dolby
  111. select Dolby
  112. @item dplii
  113. select Dolby Pro Logic II
  114. @end table
  115. Default value is @code{none}.
  116. @item filter_type
  117. Select resampling filter type. This only affects resampling
  118. operations.
  119. It accepts the following values:
  120. @table @samp
  121. @item cubic
  122. select cubic
  123. @item blackman_nuttall
  124. select Blackman Nuttall Windowed Sinc
  125. @item kaiser
  126. select Kaiser Windowed Sinc
  127. @end table
  128. @item kaiser_beta
  129. Set Kaiser Window Beta value. Must be an integer included between 2
  130. and 16, default value is 9.
  131. @end table
  132. @c man end RESAMPLER OPTIONS
  133. @ignore
  134. @setfilename ffmpeg-resampler
  135. @settitle FFmpeg Resampler
  136. @c man begin SEEALSO
  137. ffmpeg(1), ffplay(1), ffprobe(1), ffserver(1), libswresample(3)
  138. @c man end
  139. @c man begin AUTHORS
  140. See Git history (git://source.ffmpeg.org/ffmpeg)
  141. @c man end
  142. @end ignore