ffmpeg-scaler.1 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. .\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .nr rF 0
  58. .if \n(.g .if rF .nr rF 1
  59. .if (\n(rF:(\n(.g==0)) \{\
  60. . if \nF \{\
  61. . de IX
  62. . tm Index:\\$1\t\\n%\t"\\$2"
  63. ..
  64. . if !\nF==2 \{\
  65. . nr % 0
  66. . nr F 2
  67. . \}
  68. . \}
  69. .\}
  70. .rr rF
  71. .\"
  72. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  73. .\" Fear. Run. Save yourself. No user-serviceable parts.
  74. . \" fudge factors for nroff and troff
  75. .if n \{\
  76. . ds #H 0
  77. . ds #V .8m
  78. . ds #F .3m
  79. . ds #[ \f1
  80. . ds #] \fP
  81. .\}
  82. .if t \{\
  83. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  84. . ds #V .6m
  85. . ds #F 0
  86. . ds #[ \&
  87. . ds #] \&
  88. .\}
  89. . \" simple accents for nroff and troff
  90. .if n \{\
  91. . ds ' \&
  92. . ds ` \&
  93. . ds ^ \&
  94. . ds , \&
  95. . ds ~ ~
  96. . ds /
  97. .\}
  98. .if t \{\
  99. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  100. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  101. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  102. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  103. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  104. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  105. .\}
  106. . \" troff and (daisy-wheel) nroff accents
  107. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  108. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  109. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  110. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  111. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  112. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  113. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  114. .ds ae a\h'-(\w'a'u*4/10)'e
  115. .ds Ae A\h'-(\w'A'u*4/10)'E
  116. . \" corrections for vroff
  117. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  118. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  119. . \" for low resolution devices (crt and lpr)
  120. .if \n(.H>23 .if \n(.V>19 \
  121. \{\
  122. . ds : e
  123. . ds 8 ss
  124. . ds o a
  125. . ds d- d\h'-1'\(ga
  126. . ds D- D\h'-1'\(hy
  127. . ds th \o'bp'
  128. . ds Th \o'LP'
  129. . ds ae ae
  130. . ds Ae AE
  131. .\}
  132. .rm #[ #] #H #V #F C
  133. .\" ========================================================================
  134. .\"
  135. .IX Title "FFMPEG-SCALER 1"
  136. .TH FFMPEG-SCALER 1 " " " " " "
  137. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  138. .\" way too many mistakes in technical documents.
  139. .if n .ad l
  140. .nh
  141. .SH "NAME"
  142. ffmpeg\-scaler \- FFmpeg video scaling and pixel format converter
  143. .SH "DESCRIPTION"
  144. .IX Header "DESCRIPTION"
  145. The FFmpeg rescaler provides a high-level interface to the libswscale
  146. library image conversion utilities. In particular it allows one to perform
  147. image rescaling and pixel format conversion.
  148. .SH "SCALER OPTIONS"
  149. .IX Header "SCALER OPTIONS"
  150. The video scaler supports the following named options.
  151. .PP
  152. Options may be set by specifying \-\fIoption\fR \fIvalue\fR in the
  153. FFmpeg tools, with a few API-only exceptions noted below.
  154. For programmatic use, they can be set explicitly in the
  155. \&\f(CW\*(C`SwsContext\*(C'\fR options or through the \fIlibavutil/opt.h\fR \s-1API.\s0
  156. .IP "\fBsws_flags\fR" 4
  157. .IX Item "sws_flags"
  158. Set the scaler flags. This is also used to set the scaling
  159. algorithm. Only a single algorithm should be selected. Default
  160. value is \fBbicubic\fR.
  161. .Sp
  162. It accepts the following values:
  163. .RS 4
  164. .IP "\fBfast_bilinear\fR" 4
  165. .IX Item "fast_bilinear"
  166. Select fast bilinear scaling algorithm.
  167. .IP "\fBbilinear\fR" 4
  168. .IX Item "bilinear"
  169. Select bilinear scaling algorithm.
  170. .IP "\fBbicubic\fR" 4
  171. .IX Item "bicubic"
  172. Select bicubic scaling algorithm.
  173. .IP "\fBexperimental\fR" 4
  174. .IX Item "experimental"
  175. Select experimental scaling algorithm.
  176. .IP "\fBneighbor\fR" 4
  177. .IX Item "neighbor"
  178. Select nearest neighbor rescaling algorithm.
  179. .IP "\fBarea\fR" 4
  180. .IX Item "area"
  181. Select averaging area rescaling algorithm.
  182. .IP "\fBbicublin\fR" 4
  183. .IX Item "bicublin"
  184. Select bicubic scaling algorithm for the luma component, bilinear for
  185. chroma components.
  186. .IP "\fBgauss\fR" 4
  187. .IX Item "gauss"
  188. Select Gaussian rescaling algorithm.
  189. .IP "\fBsinc\fR" 4
  190. .IX Item "sinc"
  191. Select sinc rescaling algorithm.
  192. .IP "\fBlanczos\fR" 4
  193. .IX Item "lanczos"
  194. Select Lanczos rescaling algorithm. The default width (alpha) is 3 and can be
  195. changed by setting \f(CW\*(C`param0\*(C'\fR.
  196. .IP "\fBspline\fR" 4
  197. .IX Item "spline"
  198. Select natural bicubic spline rescaling algorithm.
  199. .IP "\fBprint_info\fR" 4
  200. .IX Item "print_info"
  201. Enable printing/debug logging.
  202. .IP "\fBaccurate_rnd\fR" 4
  203. .IX Item "accurate_rnd"
  204. Enable accurate rounding.
  205. .IP "\fBfull_chroma_int\fR" 4
  206. .IX Item "full_chroma_int"
  207. Enable full chroma interpolation.
  208. .IP "\fBfull_chroma_inp\fR" 4
  209. .IX Item "full_chroma_inp"
  210. Select full chroma input.
  211. .IP "\fBbitexact\fR" 4
  212. .IX Item "bitexact"
  213. Enable bitexact output.
  214. .RE
  215. .RS 4
  216. .RE
  217. .IP "\fBsrcw\fR \fI(\s-1API\s0 only)\fR" 4
  218. .IX Item "srcw (API only)"
  219. Set source width.
  220. .IP "\fBsrch\fR \fI(\s-1API\s0 only)\fR" 4
  221. .IX Item "srch (API only)"
  222. Set source height.
  223. .IP "\fBdstw\fR \fI(\s-1API\s0 only)\fR" 4
  224. .IX Item "dstw (API only)"
  225. Set destination width.
  226. .IP "\fBdsth\fR \fI(\s-1API\s0 only)\fR" 4
  227. .IX Item "dsth (API only)"
  228. Set destination height.
  229. .IP "\fBsrc_format\fR \fI(\s-1API\s0 only)\fR" 4
  230. .IX Item "src_format (API only)"
  231. Set source pixel format (must be expressed as an integer).
  232. .IP "\fBdst_format\fR \fI(\s-1API\s0 only)\fR" 4
  233. .IX Item "dst_format (API only)"
  234. Set destination pixel format (must be expressed as an integer).
  235. .IP "\fBsrc_range\fR \fI(boolean)\fR" 4
  236. .IX Item "src_range (boolean)"
  237. If value is set to \f(CW1\fR, indicates source is full range. Default value is
  238. \&\f(CW0\fR, which indicates source is limited range.
  239. .IP "\fBdst_range\fR \fI(boolean)\fR" 4
  240. .IX Item "dst_range (boolean)"
  241. If value is set to \f(CW1\fR, enable full range for destination. Default value
  242. is \f(CW0\fR, which enables limited range.
  243. .IP "\fBparam0, param1\fR" 4
  244. .IX Item "param0, param1"
  245. Set scaling algorithm parameters. The specified values are specific of
  246. some scaling algorithms and ignored by others. The specified values
  247. are floating point number values.
  248. .IP "\fBsws_dither\fR" 4
  249. .IX Item "sws_dither"
  250. Set the dithering algorithm. Accepts one of the following
  251. values. Default value is \fBauto\fR.
  252. .RS 4
  253. .IP "\fBauto\fR" 4
  254. .IX Item "auto"
  255. automatic choice
  256. .IP "\fBnone\fR" 4
  257. .IX Item "none"
  258. no dithering
  259. .IP "\fBbayer\fR" 4
  260. .IX Item "bayer"
  261. bayer dither
  262. .IP "\fBed\fR" 4
  263. .IX Item "ed"
  264. error diffusion dither
  265. .IP "\fBa_dither\fR" 4
  266. .IX Item "a_dither"
  267. arithmetic dither, based using addition
  268. .IP "\fBx_dither\fR" 4
  269. .IX Item "x_dither"
  270. arithmetic dither, based using xor (more random/less apparent patterning that
  271. a_dither).
  272. .RE
  273. .RS 4
  274. .RE
  275. .IP "\fBalphablend\fR" 4
  276. .IX Item "alphablend"
  277. Set the alpha blending to use when the input has alpha but the output does not.
  278. Default value is \fBnone\fR.
  279. .RS 4
  280. .IP "\fBuniform_color\fR" 4
  281. .IX Item "uniform_color"
  282. Blend onto a uniform background color
  283. .IP "\fBcheckerboard\fR" 4
  284. .IX Item "checkerboard"
  285. Blend onto a checkerboard
  286. .IP "\fBnone\fR" 4
  287. .IX Item "none"
  288. No blending
  289. .RE
  290. .RS 4
  291. .RE
  292. .SH "SEE ALSO"
  293. .IX Header "SEE ALSO"
  294. \&\fBffmpeg\fR\|(1), \fBffplay\fR\|(1), \fBffprobe\fR\|(1), \fBlibswscale\fR\|(3)
  295. .SH "AUTHORS"
  296. .IX Header "AUTHORS"
  297. The FFmpeg developers.
  298. .PP
  299. For details about the authorship, see the Git history of the project
  300. (https://git.ffmpeg.org/ffmpeg), e.g. by typing the command
  301. \&\fBgit log\fR in the FFmpeg source directory, or browsing the
  302. online repository at <\fBhttps://git.ffmpeg.org/ffmpeg\fR>.
  303. .PP
  304. Maintainers for the specific components are listed in the file
  305. \&\fI\s-1MAINTAINERS\s0\fR in the source code tree.