Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sh \" Subsection heading
  6. .br
  7. .if t .Sp
  8. .ne 5
  9. .PP
  10. \fB\\$1\fR
  11. .PP
  12. ..
  13. .de Sp \" Vertical space (when we can't use .PP)
  14. .if t .sp .5v
  15. .if n .sp
  16. ..
  17. .de Vb \" Begin verbatim text
  18. .ft CW
  19. .nf
  20. .ne \\$1
  21. ..
  22. .de Ve \" End verbatim text
  23. .ft R
  24. .fi
  25. ..
  26. .\" Set up some character translations and predefined strings.  \*(-- will
  27. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  28. .\" double quote, and \*(R" will give a right double quote.  | will give a
  29. .\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
  30. .\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
  31. .\" expand to `' in nroff, nothing in troff, for use with C<>.
  32. .tr \(*W-|\(bv\*(Tr
  33. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  34. .ie n \{\
  35. .    ds -- \(*W-
  36. .    ds PI pi
  37. .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  38. .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
  39. .    ds L" ""
  40. .    ds R" ""
  41. .    ds C` ""
  42. .    ds C' ""
  43. 'br\}
  44. .el\{\
  45. .    ds -- \|\(em\|
  46. .    ds PI \(*p
  47. .    ds L" ``
  48. .    ds R" ''
  49. 'br\}
  50. .\"
  51. .\" If the F register is turned on, we'll generate index entries on stderr for
  52. .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
  53. .\" entries marked with X<> in POD.  Of course, you'll have to process the
  54. .\" output yourself in some meaningful fashion.
  55. .if \nF \{\
  56. .    de IX
  57. .    tm Index:\\$1\t\\n%\t"\\$2"
  58. ..
  59. .    nr % 0
  60. .    rr F
  61. .\}
  62. .\"
  63. .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
  64. .\" way too many mistakes in technical documents.
  65. .hy 0
  66. .if n .na
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
  70. .    \" fudge factors for nroff and troff
  71. .if n \{\
  72. .    ds #H 0
  73. .    ds #V .8m
  74. .    ds #F .3m
  75. .    ds #[ \f1
  76. .    ds #] \fP
  77. .\}
  78. .if t \{\
  79. .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. .    ds #V .6m
  81. .    ds #F 0
  82. .    ds #[ \&
  83. .    ds #] \&
  84. .\}
  85. .    \" simple accents for nroff and troff
  86. .if n \{\
  87. .    ds ' \&
  88. .    ds ` \&
  89. .    ds ^ \&
  90. .    ds , \&
  91. .    ds ~ ~
  92. .    ds /
  93. .\}
  94. .if t \{\
  95. .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. .    \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. .    \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. .    \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. .    ds : e
  119. .    ds 8 ss
  120. .    ds o a
  121. .    ds d- d\h'-1'\(ga
  122. .    ds D- D\h'-1'\(hy
  123. .    ds th \o'bp'
  124. .    ds Th \o'LP'
  125. .    ds ae ae
  126. .    ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "FFMPEG-CODECS 1"
  132. .TH FFMPEG-CODECS 1 " " " " " "
  133. .SH "NAME"
  134. ffmpeg\-codecs \- FFmpeg codecs
  135. .SH "DESCRIPTION"
  136. .IX Header "DESCRIPTION"
  137. This document describes the codecs (decoders and encoders) provided by
  138. the libavcodec library.
  139. .SH "CODEC OPTIONS"
  140. .IX Header "CODEC OPTIONS"
  141. libavcodec provides some generic global options, which can be set on
  142. all the encoders and decoders. In addition each codec may support
  143. so-called private options, which are specific for a given codec.
  144. .PP
  145. Sometimes, a global option may only affect a specific kind of codec,
  146. and may be nonsensical or ignored by another, so you need to be aware
  147. of the meaning of the specified options. Also some options are
  148. meant only for decoding or encoding.
  149. .PP
  150. Options may be set by specifying \-\fIoption\fR \fIvalue\fR in the
  151. FFmpeg tools, or by setting the value explicitly in the
  152. \&\f(CW\*(C`AVCodecContext\*(C'\fR options or using the \fIlibavutil/opt.h\fR \s-1API\s0
  153. for programmatic use.
  154. .PP
  155. The list of supported options follow:
  156. .IP "\fBb\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
  157. .IX Item "b integer (encoding,audio,video)"
  158. Set bitrate in bits/s. Default value is 200K.
  159. .IP "\fBab\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
  160. .IX Item "ab integer (encoding,audio)"
  161. Set audio bitrate (in bits/s). Default value is 128K.
  162. .IP "\fBbt\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  163. .IX Item "bt integer (encoding,video)"
  164. Set video bitrate tolerance (in bits/s). In 1\-pass mode, bitrate
  165. tolerance specifies how far ratecontrol is willing to deviate from the
  166. target average bitrate value. This is not related to min/max
  167. bitrate. Lowering tolerance too much has an adverse effect on quality.
  168. .IP "\fBflags\fR \fIflags\fR \fB(\fR\fIdecoding/encoding,audio,video,subtitles\fR\fB)\fR" 4
  169. .IX Item "flags flags (decoding/encoding,audio,video,subtitles)"
  170. Set generic flags.
  171. .Sp
  172. Possible values:
  173. .RS 4
  174. .IP "\fBmv4\fR" 4
  175. .IX Item "mv4"
  176. Use four motion vector by macroblock (mpeg4).
  177. .IP "\fBqpel\fR" 4
  178. .IX Item "qpel"
  179. Use 1/4 pel motion compensation.
  180. .IP "\fBloop\fR" 4
  181. .IX Item "loop"
  182. Use loop filter.
  183. .IP "\fBqscale\fR" 4
  184. .IX Item "qscale"
  185. Use fixed qscale.
  186. .IP "\fBgmc\fR" 4
  187. .IX Item "gmc"
  188. Use gmc.
  189. .IP "\fBmv0\fR" 4
  190. .IX Item "mv0"
  191. Always try a mb with mv=<0,0>.
  192. .IP "\fBinput_preserved\fR" 4
  193. .IX Item "input_preserved"
  194. .PD 0
  195. .IP "\fBpass1\fR" 4
  196. .IX Item "pass1"
  197. .PD
  198. Use internal 2pass ratecontrol in first pass mode.
  199. .IP "\fBpass2\fR" 4
  200. .IX Item "pass2"
  201. Use internal 2pass ratecontrol in second pass mode.
  202. .IP "\fBgray\fR" 4
  203. .IX Item "gray"
  204. Only decode/encode grayscale.
  205. .IP "\fBemu_edge\fR" 4
  206. .IX Item "emu_edge"
  207. Do not draw edges.
  208. .IP "\fBpsnr\fR" 4
  209. .IX Item "psnr"
  210. Set error[?] variables during encoding.
  211. .IP "\fBtruncated\fR" 4
  212. .IX Item "truncated"
  213. .PD 0
  214. .IP "\fBnaq\fR" 4
  215. .IX Item "naq"
  216. .PD
  217. Normalize adaptive quantization.
  218. .IP "\fBildct\fR" 4
  219. .IX Item "ildct"
  220. Use interlaced \s-1DCT\s0.
  221. .IP "\fBlow_delay\fR" 4
  222. .IX Item "low_delay"
  223. Force low delay.
  224. .IP "\fBglobal_header\fR" 4
  225. .IX Item "global_header"
  226. Place global headers in extradata instead of every keyframe.
  227. .IP "\fBbitexact\fR" 4
  228. .IX Item "bitexact"
  229. Only write platform\-, build\- and time-independent data. (except (I)DCT).
  230. This ensures that file and data checksums are reproducible and match between
  231. platforms. Its primary use is for regression testing.
  232. .IP "\fBaic\fR" 4
  233. .IX Item "aic"
  234. Apply H263 advanced intra coding / mpeg4 ac prediction.
  235. .IP "\fBcbp\fR" 4
  236. .IX Item "cbp"
  237. Deprecated, use mpegvideo private options instead.
  238. .IP "\fBqprd\fR" 4
  239. .IX Item "qprd"
  240. Deprecated, use mpegvideo private options instead.
  241. .IP "\fBilme\fR" 4
  242. .IX Item "ilme"
  243. Apply interlaced motion estimation.
  244. .IP "\fBcgop\fR" 4
  245. .IX Item "cgop"
  246. Use closed gop.
  247. .RE
  248. .RS 4
  249. .RE
  250. .IP "\fBme_method\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  251. .IX Item "me_method integer (encoding,video)"
  252. Set motion estimation method.
  253. .Sp
  254. Possible values:
  255. .RS 4
  256. .IP "\fBzero\fR" 4
  257. .IX Item "zero"
  258. zero motion estimation (fastest)
  259. .IP "\fBfull\fR" 4
  260. .IX Item "full"
  261. full motion estimation (slowest)
  262. .IP "\fBepzs\fR" 4
  263. .IX Item "epzs"
  264. \&\s-1EPZS\s0 motion estimation (default)
  265. .IP "\fBesa\fR" 4
  266. .IX Item "esa"
  267. esa motion estimation (alias for full)
  268. .IP "\fBtesa\fR" 4
  269. .IX Item "tesa"
  270. tesa motion estimation
  271. .IP "\fBdia\fR" 4
  272. .IX Item "dia"
  273. dia motion estimation (alias for epzs)
  274. .IP "\fBlog\fR" 4
  275. .IX Item "log"
  276. log motion estimation
  277. .IP "\fBphods\fR" 4
  278. .IX Item "phods"
  279. phods motion estimation
  280. .IP "\fBx1\fR" 4
  281. .IX Item "x1"
  282. X1 motion estimation
  283. .IP "\fBhex\fR" 4
  284. .IX Item "hex"
  285. hex motion estimation
  286. .IP "\fBumh\fR" 4
  287. .IX Item "umh"
  288. umh motion estimation
  289. .IP "\fBiter\fR" 4
  290. .IX Item "iter"
  291. iter motion estimation
  292. .RE
  293. .RS 4
  294. .RE
  295. .IP "\fBextradata_size\fR \fIinteger\fR" 4
  296. .IX Item "extradata_size integer"
  297. Set extradata size.
  298. .IP "\fBtime_base\fR \fIrational number\fR" 4
  299. .IX Item "time_base rational number"
  300. Set codec time base.
  301. .Sp
  302. It is the fundamental unit of time (in seconds) in terms of which
  303. frame timestamps are represented. For fixed-fps content, timebase
  304. should be \f(CW\*(C`1 / frame_rate\*(C'\fR and timestamp increments should be
  305. identically 1.
  306. .IP "\fBg\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  307. .IX Item "g integer (encoding,video)"
  308. Set the group of picture size. Default value is 12.
  309. .IP "\fBar\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,audio\fR\fB)\fR" 4
  310. .IX Item "ar integer (decoding/encoding,audio)"
  311. Set audio sampling rate (in Hz).
  312. .IP "\fBac\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,audio\fR\fB)\fR" 4
  313. .IX Item "ac integer (decoding/encoding,audio)"
  314. Set number of audio channels.
  315. .IP "\fBcutoff\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
  316. .IX Item "cutoff integer (encoding,audio)"
  317. Set cutoff bandwidth.
  318. .IP "\fBframe_size\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
  319. .IX Item "frame_size integer (encoding,audio)"
  320. Set audio frame size.
  321. .Sp
  322. Each submitted frame except the last must contain exactly frame_size
  323. samples per channel. May be 0 when the codec has
  324. \&\s-1CODEC_CAP_VARIABLE_FRAME_SIZE\s0 set, in that case the frame size is not
  325. restricted. It is set by some decoders to indicate constant frame
  326. size.
  327. .IP "\fBframe_number\fR \fIinteger\fR" 4
  328. .IX Item "frame_number integer"
  329. Set the frame number.
  330. .IP "\fBdelay\fR \fIinteger\fR" 4
  331. .IX Item "delay integer"
  332. .PD 0
  333. .IP "\fBqcomp\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  334. .IX Item "qcomp float (encoding,video)"
  335. .PD
  336. Set video quantizer scale compression (\s-1VBR\s0). It is used as a constant
  337. in the ratecontrol equation. Recommended range for default rc_eq:
  338. 0.0\-1.0.
  339. .IP "\fBqblur\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  340. .IX Item "qblur float (encoding,video)"
  341. Set video quantizer scale blur (\s-1VBR\s0).
  342. .IP "\fBqmin\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  343. .IX Item "qmin integer (encoding,video)"
  344. Set min video quantizer scale (\s-1VBR\s0). Must be included between \-1 and
  345. 69, default value is 2.
  346. .IP "\fBqmax\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  347. .IX Item "qmax integer (encoding,video)"
  348. Set max video quantizer scale (\s-1VBR\s0). Must be included between \-1 and
  349. 1024, default value is 31.
  350. .IP "\fBqdiff\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  351. .IX Item "qdiff integer (encoding,video)"
  352. Set max difference between the quantizer scale (\s-1VBR\s0).
  353. .IP "\fBbf\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  354. .IX Item "bf integer (encoding,video)"
  355. Set max number of B frames between non\-B\-frames.
  356. .Sp
  357. Must be an integer between \-1 and 16. 0 means that B\-frames are
  358. disabled. If a value of \-1 is used, it will choose an automatic value
  359. depending on the encoder.
  360. .Sp
  361. Default value is 0.
  362. .IP "\fBb_qfactor\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  363. .IX Item "b_qfactor float (encoding,video)"
  364. Set qp factor between P and B frames.
  365. .IP "\fBrc_strategy\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  366. .IX Item "rc_strategy integer (encoding,video)"
  367. Set ratecontrol method.
  368. .IP "\fBb_strategy\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  369. .IX Item "b_strategy integer (encoding,video)"
  370. Set strategy to choose between I/P/B\-frames.
  371. .IP "\fBps\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  372. .IX Item "ps integer (encoding,video)"
  373. Set \s-1RTP\s0 payload size in bytes.
  374. .IP "\fBmv_bits\fR \fIinteger\fR" 4
  375. .IX Item "mv_bits integer"
  376. .PD 0
  377. .IP "\fBheader_bits\fR \fIinteger\fR" 4
  378. .IX Item "header_bits integer"
  379. .IP "\fBi_tex_bits\fR \fIinteger\fR" 4
  380. .IX Item "i_tex_bits integer"
  381. .IP "\fBp_tex_bits\fR \fIinteger\fR" 4
  382. .IX Item "p_tex_bits integer"
  383. .IP "\fBi_count\fR \fIinteger\fR" 4
  384. .IX Item "i_count integer"
  385. .IP "\fBp_count\fR \fIinteger\fR" 4
  386. .IX Item "p_count integer"
  387. .IP "\fBskip_count\fR \fIinteger\fR" 4
  388. .IX Item "skip_count integer"
  389. .IP "\fBmisc_bits\fR \fIinteger\fR" 4
  390. .IX Item "misc_bits integer"
  391. .IP "\fBframe_bits\fR \fIinteger\fR" 4
  392. .IX Item "frame_bits integer"
  393. .IP "\fBcodec_tag\fR \fIinteger\fR" 4
  394. .IX Item "codec_tag integer"
  395. .IP "\fBbug\fR \fIflags\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
  396. .IX Item "bug flags (decoding,video)"
  397. .PD
  398. Workaround not auto detected encoder bugs.
  399. .Sp
  400. Possible values:
  401. .RS 4
  402. .IP "\fBautodetect\fR" 4
  403. .IX Item "autodetect"
  404. .PD 0
  405. .IP "\fBold_msmpeg4\fR" 4
  406. .IX Item "old_msmpeg4"
  407. .PD
  408. some old lavc generated msmpeg4v3 files (no autodetection)
  409. .IP "\fBxvid_ilace\fR" 4
  410. .IX Item "xvid_ilace"
  411. Xvid interlacing bug (autodetected if fourcc==XVIX)
  412. .IP "\fBump4\fR" 4
  413. .IX Item "ump4"
  414. (autodetected if fourcc==UMP4)
  415. .IP "\fBno_padding\fR" 4
  416. .IX Item "no_padding"
  417. padding bug (autodetected)
  418. .IP "\fBamv\fR" 4
  419. .IX Item "amv"
  420. .PD 0
  421. .IP "\fBac_vlc\fR" 4
  422. .IX Item "ac_vlc"
  423. .PD
  424. illegal vlc bug (autodetected per fourcc)
  425. .IP "\fBqpel_chroma\fR" 4
  426. .IX Item "qpel_chroma"
  427. .PD 0
  428. .IP "\fBstd_qpel\fR" 4
  429. .IX Item "std_qpel"
  430. .PD
  431. old standard qpel (autodetected per fourcc/version)
  432. .IP "\fBqpel_chroma2\fR" 4
  433. .IX Item "qpel_chroma2"
  434. .PD 0
  435. .IP "\fBdirect_blocksize\fR" 4
  436. .IX Item "direct_blocksize"
  437. .PD
  438. direct-qpel-blocksize bug (autodetected per fourcc/version)
  439. .IP "\fBedge\fR" 4
  440. .IX Item "edge"
  441. edge padding bug (autodetected per fourcc/version)
  442. .IP "\fBhpel_chroma\fR" 4
  443. .IX Item "hpel_chroma"
  444. .PD 0
  445. .IP "\fBdc_clip\fR" 4
  446. .IX Item "dc_clip"
  447. .IP "\fBms\fR" 4
  448. .IX Item "ms"
  449. .PD
  450. Workaround various bugs in microsoft broken decoders.
  451. .IP "\fBtrunc\fR" 4
  452. .IX Item "trunc"
  453. trancated frames
  454. .RE
  455. .RS 4
  456. .RE
  457. .IP "\fBlelim\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  458. .IX Item "lelim integer (encoding,video)"
  459. Set single coefficient elimination threshold for luminance (negative
  460. values also consider \s-1DC\s0 coefficient).
  461. .IP "\fBcelim\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  462. .IX Item "celim integer (encoding,video)"
  463. Set single coefficient elimination threshold for chrominance (negative
  464. values also consider dc coefficient)
  465. .IP "\fBstrict\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,audio,video\fR\fB)\fR" 4
  466. .IX Item "strict integer (decoding/encoding,audio,video)"
  467. Specify how strictly to follow the standards.
  468. .Sp
  469. Possible values:
  470. .RS 4
  471. .IP "\fBvery\fR" 4
  472. .IX Item "very"
  473. strictly conform to a older more strict version of the spec or reference software
  474. .IP "\fBstrict\fR" 4
  475. .IX Item "strict"
  476. strictly conform to all the things in the spec no matter what consequences
  477. .IP "\fBnormal\fR" 4
  478. .IX Item "normal"
  479. .PD 0
  480. .IP "\fBunofficial\fR" 4
  481. .IX Item "unofficial"
  482. .PD
  483. allow unofficial extensions
  484. .IP "\fBexperimental\fR" 4
  485. .IX Item "experimental"
  486. allow non standardized experimental things, experimental
  487. (unfinished/work in progress/not well tested) decoders and encoders.
  488. Note: experimental decoders can pose a security risk, do not use this for
  489. decoding untrusted input.
  490. .RE
  491. .RS 4
  492. .RE
  493. .IP "\fBb_qoffset\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  494. .IX Item "b_qoffset float (encoding,video)"
  495. Set \s-1QP\s0 offset between P and B frames.
  496. .IP "\fBerr_detect\fR \fIflags\fR \fB(\fR\fIdecoding,audio,video\fR\fB)\fR" 4
  497. .IX Item "err_detect flags (decoding,audio,video)"
  498. Set error detection flags.
  499. .Sp
  500. Possible values:
  501. .RS 4
  502. .IP "\fBcrccheck\fR" 4
  503. .IX Item "crccheck"
  504. verify embedded CRCs
  505. .IP "\fBbitstream\fR" 4
  506. .IX Item "bitstream"
  507. detect bitstream specification deviations
  508. .IP "\fBbuffer\fR" 4
  509. .IX Item "buffer"
  510. detect improper bitstream length
  511. .IP "\fBexplode\fR" 4
  512. .IX Item "explode"
  513. abort decoding on minor error detection
  514. .IP "\fBignore_err\fR" 4
  515. .IX Item "ignore_err"
  516. ignore decoding errors, and continue decoding.
  517. This is useful if you want to analyze the content of a video and thus want
  518. everything to be decoded no matter what. This option will not result in a video
  519. that is pleasing to watch in case of errors.
  520. .IP "\fBcareful\fR" 4
  521. .IX Item "careful"
  522. consider things that violate the spec and have not been seen in the wild as errors
  523. .IP "\fBcompliant\fR" 4
  524. .IX Item "compliant"
  525. consider all spec non compliancies as errors
  526. .IP "\fBaggressive\fR" 4
  527. .IX Item "aggressive"
  528. consider things that a sane encoder should not do as an error
  529. .RE
  530. .RS 4
  531. .RE
  532. .IP "\fBhas_b_frames\fR \fIinteger\fR" 4
  533. .IX Item "has_b_frames integer"
  534. .PD 0
  535. .IP "\fBblock_align\fR \fIinteger\fR" 4
  536. .IX Item "block_align integer"
  537. .IP "\fBmpeg_quant\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  538. .IX Item "mpeg_quant integer (encoding,video)"
  539. .PD
  540. Use \s-1MPEG\s0 quantizers instead of H.263.
  541. .IP "\fBqsquish\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  542. .IX Item "qsquish float (encoding,video)"
  543. How to keep quantizer between qmin and qmax (0 = clip, 1 = use
  544. differentiable function).
  545. .IP "\fBrc_qmod_amp\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  546. .IX Item "rc_qmod_amp float (encoding,video)"
  547. Set experimental quantizer modulation.
  548. .IP "\fBrc_qmod_freq\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  549. .IX Item "rc_qmod_freq integer (encoding,video)"
  550. Set experimental quantizer modulation.
  551. .IP "\fBrc_override_count\fR \fIinteger\fR" 4
  552. .IX Item "rc_override_count integer"
  553. .PD 0
  554. .IP "\fBrc_eq\fR \fIstring\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  555. .IX Item "rc_eq string (encoding,video)"
  556. .PD
  557. Set rate control equation. When computing the expression, besides the
  558. standard functions defined in the section 'Expression Evaluation', the
  559. following functions are available: bits2qp(bits), qp2bits(qp). Also
  560. the following constants are available: iTex pTex tex mv fCode iCount
  561. mcVar var isI isP isB avgQP qComp avgIITex avgPITex avgPPTex avgBPTex
  562. avgTex.
  563. .IP "\fBmaxrate\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
  564. .IX Item "maxrate integer (encoding,audio,video)"
  565. Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
  566. .IP "\fBminrate\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
  567. .IX Item "minrate integer (encoding,audio,video)"
  568. Set min bitrate tolerance (in bits/s). Most useful in setting up a \s-1CBR\s0
  569. encode. It is of little use elsewise.
  570. .IP "\fBbufsize\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
  571. .IX Item "bufsize integer (encoding,audio,video)"
  572. Set ratecontrol buffer size (in bits).
  573. .IP "\fBrc_buf_aggressivity\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  574. .IX Item "rc_buf_aggressivity float (encoding,video)"
  575. Currently useless.
  576. .IP "\fBi_qfactor\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  577. .IX Item "i_qfactor float (encoding,video)"
  578. Set \s-1QP\s0 factor between P and I frames.
  579. .IP "\fBi_qoffset\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  580. .IX Item "i_qoffset float (encoding,video)"
  581. Set \s-1QP\s0 offset between P and I frames.
  582. .IP "\fBrc_init_cplx\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  583. .IX Item "rc_init_cplx float (encoding,video)"
  584. Set initial complexity for 1\-pass encoding.
  585. .IP "\fBdct\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  586. .IX Item "dct integer (encoding,video)"
  587. Set \s-1DCT\s0 algorithm.
  588. .Sp
  589. Possible values:
  590. .RS 4
  591. .IP "\fBauto\fR" 4
  592. .IX Item "auto"
  593. autoselect a good one (default)
  594. .IP "\fBfastint\fR" 4
  595. .IX Item "fastint"
  596. fast integer
  597. .IP "\fBint\fR" 4
  598. .IX Item "int"
  599. accurate integer
  600. .IP "\fBmmx\fR" 4
  601. .IX Item "mmx"
  602. .PD 0
  603. .IP "\fBaltivec\fR" 4
  604. .IX Item "altivec"
  605. .IP "\fBfaan\fR" 4
  606. .IX Item "faan"
  607. .PD
  608. floating point \s-1AAN\s0 \s-1DCT\s0
  609. .RE
  610. .RS 4
  611. .RE
  612. .IP "\fBlumi_mask\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  613. .IX Item "lumi_mask float (encoding,video)"
  614. Compress bright areas stronger than medium ones.
  615. .IP "\fBtcplx_mask\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  616. .IX Item "tcplx_mask float (encoding,video)"
  617. Set temporal complexity masking.
  618. .IP "\fBscplx_mask\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  619. .IX Item "scplx_mask float (encoding,video)"
  620. Set spatial complexity masking.
  621. .IP "\fBp_mask\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  622. .IX Item "p_mask float (encoding,video)"
  623. Set inter masking.
  624. .IP "\fBdark_mask\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  625. .IX Item "dark_mask float (encoding,video)"
  626. Compress dark areas stronger than medium ones.
  627. .IP "\fBidct\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
  628. .IX Item "idct integer (decoding/encoding,video)"
  629. Select \s-1IDCT\s0 implementation.
  630. .Sp
  631. Possible values:
  632. .RS 4
  633. .IP "\fBauto\fR" 4
  634. .IX Item "auto"
  635. .PD 0
  636. .IP "\fBint\fR" 4
  637. .IX Item "int"
  638. .IP "\fBsimple\fR" 4
  639. .IX Item "simple"
  640. .IP "\fBsimplemmx\fR" 4
  641. .IX Item "simplemmx"
  642. .IP "\fBsimpleauto\fR" 4
  643. .IX Item "simpleauto"
  644. .PD
  645. Automatically pick a \s-1IDCT\s0 compatible with the simple one
  646. .IP "\fBarm\fR" 4
  647. .IX Item "arm"
  648. .PD 0
  649. .IP "\fBaltivec\fR" 4
  650. .IX Item "altivec"
  651. .IP "\fBsh4\fR" 4
  652. .IX Item "sh4"
  653. .IP "\fBsimplearm\fR" 4
  654. .IX Item "simplearm"
  655. .IP "\fBsimplearmv5te\fR" 4
  656. .IX Item "simplearmv5te"
  657. .IP "\fBsimplearmv6\fR" 4
  658. .IX Item "simplearmv6"
  659. .IP "\fBsimpleneon\fR" 4
  660. .IX Item "simpleneon"
  661. .IP "\fBsimplealpha\fR" 4
  662. .IX Item "simplealpha"
  663. .IP "\fBipp\fR" 4
  664. .IX Item "ipp"
  665. .IP "\fBxvidmmx\fR" 4
  666. .IX Item "xvidmmx"
  667. .IP "\fBfaani\fR" 4
  668. .IX Item "faani"
  669. .PD
  670. floating point \s-1AAN\s0 \s-1IDCT\s0
  671. .RE
  672. .RS 4
  673. .RE
  674. .IP "\fBslice_count\fR \fIinteger\fR" 4
  675. .IX Item "slice_count integer"
  676. .PD 0
  677. .IP "\fBec\fR \fIflags\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
  678. .IX Item "ec flags (decoding,video)"
  679. .PD
  680. Set error concealment strategy.
  681. .Sp
  682. Possible values:
  683. .RS 4
  684. .IP "\fBguess_mvs\fR" 4
  685. .IX Item "guess_mvs"
  686. iterative motion vector (\s-1MV\s0) search (slow)
  687. .IP "\fBdeblock\fR" 4
  688. .IX Item "deblock"
  689. use strong deblock filter for damaged MBs
  690. .IP "\fBfavor_inter\fR" 4
  691. .IX Item "favor_inter"
  692. favor predicting from the previous frame instead of the current
  693. .RE
  694. .RS 4
  695. .RE
  696. .IP "\fBbits_per_coded_sample\fR \fIinteger\fR" 4
  697. .IX Item "bits_per_coded_sample integer"
  698. .PD 0
  699. .IP "\fBpred\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  700. .IX Item "pred integer (encoding,video)"
  701. .PD
  702. Set prediction method.
  703. .Sp
  704. Possible values:
  705. .RS 4
  706. .IP "\fBleft\fR" 4
  707. .IX Item "left"
  708. .PD 0
  709. .IP "\fBplane\fR" 4
  710. .IX Item "plane"
  711. .IP "\fBmedian\fR" 4
  712. .IX Item "median"
  713. .RE
  714. .RS 4
  715. .RE
  716. .IP "\fBaspect\fR \fIrational number\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  717. .IX Item "aspect rational number (encoding,video)"
  718. .PD
  719. Set sample aspect ratio.
  720. .IP "\fBdebug\fR \fIflags\fR \fB(\fR\fIdecoding/encoding,audio,video,subtitles\fR\fB)\fR" 4
  721. .IX Item "debug flags (decoding/encoding,audio,video,subtitles)"
  722. Print specific debug info.
  723. .Sp
  724. Possible values:
  725. .RS 4
  726. .IP "\fBpict\fR" 4
  727. .IX Item "pict"
  728. picture info
  729. .IP "\fBrc\fR" 4
  730. .IX Item "rc"
  731. rate control
  732. .IP "\fBbitstream\fR" 4
  733. .IX Item "bitstream"
  734. .PD 0
  735. .IP "\fBmb_type\fR" 4
  736. .IX Item "mb_type"
  737. .PD
  738. macroblock (\s-1MB\s0) type
  739. .IP "\fBqp\fR" 4
  740. .IX Item "qp"
  741. per-block quantization parameter (\s-1QP\s0)
  742. .IP "\fBmv\fR" 4
  743. .IX Item "mv"
  744. motion vector
  745. .IP "\fBdct_coeff\fR" 4
  746. .IX Item "dct_coeff"
  747. .PD 0
  748. .IP "\fBgreen_metadata\fR" 4
  749. .IX Item "green_metadata"
  750. .PD
  751. display complexity metadata for the upcoming frame, GoP or for a given duration.
  752. .IP "\fBskip\fR" 4
  753. .IX Item "skip"
  754. .PD 0
  755. .IP "\fBstartcode\fR" 4
  756. .IX Item "startcode"
  757. .IP "\fBpts\fR" 4
  758. .IX Item "pts"
  759. .IP "\fBer\fR" 4
  760. .IX Item "er"
  761. .PD
  762. error recognition
  763. .IP "\fBmmco\fR" 4
  764. .IX Item "mmco"
  765. memory management control operations (H.264)
  766. .IP "\fBbugs\fR" 4
  767. .IX Item "bugs"
  768. .PD 0
  769. .IP "\fBvis_qp\fR" 4
  770. .IX Item "vis_qp"
  771. .PD
  772. visualize quantization parameter (\s-1QP\s0), lower \s-1QP\s0 are tinted greener
  773. .IP "\fBvis_mb_type\fR" 4
  774. .IX Item "vis_mb_type"
  775. visualize block types
  776. .IP "\fBbuffers\fR" 4
  777. .IX Item "buffers"
  778. picture buffer allocations
  779. .IP "\fBthread_ops\fR" 4
  780. .IX Item "thread_ops"
  781. threading operations
  782. .IP "\fBnomc\fR" 4
  783. .IX Item "nomc"
  784. skip motion compensation
  785. .RE
  786. .RS 4
  787. .RE
  788. .IP "\fBvismv\fR \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
  789. .IX Item "vismv integer (decoding,video)"
  790. Visualize motion vectors (MVs).
  791. .Sp
  792. This option is deprecated, see the codecview filter instead.
  793. .Sp
  794. Possible values:
  795. .RS 4
  796. .IP "\fBpf\fR" 4
  797. .IX Item "pf"
  798. forward predicted MVs of P\-frames
  799. .IP "\fBbf\fR" 4
  800. .IX Item "bf"
  801. forward predicted MVs of B\-frames
  802. .IP "\fBbb\fR" 4
  803. .IX Item "bb"
  804. backward predicted MVs of B\-frames
  805. .RE
  806. .RS 4
  807. .RE
  808. .IP "\fBcmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  809. .IX Item "cmp integer (encoding,video)"
  810. Set full pel me compare function.
  811. .Sp
  812. Possible values:
  813. .RS 4
  814. .IP "\fBsad\fR" 4
  815. .IX Item "sad"
  816. sum of absolute differences, fast (default)
  817. .IP "\fBsse\fR" 4
  818. .IX Item "sse"
  819. sum of squared errors
  820. .IP "\fBsatd\fR" 4
  821. .IX Item "satd"
  822. sum of absolute Hadamard transformed differences
  823. .IP "\fBdct\fR" 4
  824. .IX Item "dct"
  825. sum of absolute \s-1DCT\s0 transformed differences
  826. .IP "\fBpsnr\fR" 4
  827. .IX Item "psnr"
  828. sum of squared quantization errors (avoid, low quality)
  829. .IP "\fBbit\fR" 4
  830. .IX Item "bit"
  831. number of bits needed for the block
  832. .IP "\fBrd\fR" 4
  833. .IX Item "rd"
  834. rate distortion optimal, slow
  835. .IP "\fBzero\fR" 4
  836. .IX Item "zero"
  837. 0
  838. .IP "\fBvsad\fR" 4
  839. .IX Item "vsad"
  840. sum of absolute vertical differences
  841. .IP "\fBvsse\fR" 4
  842. .IX Item "vsse"
  843. sum of squared vertical differences
  844. .IP "\fBnsse\fR" 4
  845. .IX Item "nsse"
  846. noise preserving sum of squared differences
  847. .IP "\fBw53\fR" 4
  848. .IX Item "w53"
  849. 5/3 wavelet, only used in snow
  850. .IP "\fBw97\fR" 4
  851. .IX Item "w97"
  852. 9/7 wavelet, only used in snow
  853. .IP "\fBdctmax\fR" 4
  854. .IX Item "dctmax"
  855. .PD 0
  856. .IP "\fBchroma\fR" 4
  857. .IX Item "chroma"
  858. .RE
  859. .RS 4
  860. .RE
  861. .IP "\fBsubcmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  862. .IX Item "subcmp integer (encoding,video)"
  863. .PD
  864. Set sub pel me compare function.
  865. .Sp
  866. Possible values:
  867. .RS 4
  868. .IP "\fBsad\fR" 4
  869. .IX Item "sad"
  870. sum of absolute differences, fast (default)
  871. .IP "\fBsse\fR" 4
  872. .IX Item "sse"
  873. sum of squared errors
  874. .IP "\fBsatd\fR" 4
  875. .IX Item "satd"
  876. sum of absolute Hadamard transformed differences
  877. .IP "\fBdct\fR" 4
  878. .IX Item "dct"
  879. sum of absolute \s-1DCT\s0 transformed differences
  880. .IP "\fBpsnr\fR" 4
  881. .IX Item "psnr"
  882. sum of squared quantization errors (avoid, low quality)
  883. .IP "\fBbit\fR" 4
  884. .IX Item "bit"
  885. number of bits needed for the block
  886. .IP "\fBrd\fR" 4
  887. .IX Item "rd"
  888. rate distortion optimal, slow
  889. .IP "\fBzero\fR" 4
  890. .IX Item "zero"
  891. 0
  892. .IP "\fBvsad\fR" 4
  893. .IX Item "vsad"
  894. sum of absolute vertical differences
  895. .IP "\fBvsse\fR" 4
  896. .IX Item "vsse"
  897. sum of squared vertical differences
  898. .IP "\fBnsse\fR" 4
  899. .IX Item "nsse"
  900. noise preserving sum of squared differences
  901. .IP "\fBw53\fR" 4
  902. .IX Item "w53"
  903. 5/3 wavelet, only used in snow
  904. .IP "\fBw97\fR" 4
  905. .IX Item "w97"
  906. 9/7 wavelet, only used in snow
  907. .IP "\fBdctmax\fR" 4
  908. .IX Item "dctmax"
  909. .PD 0
  910. .IP "\fBchroma\fR" 4
  911. .IX Item "chroma"
  912. .RE
  913. .RS 4
  914. .RE
  915. .IP "\fBmbcmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  916. .IX Item "mbcmp integer (encoding,video)"
  917. .PD
  918. Set macroblock compare function.
  919. .Sp
  920. Possible values:
  921. .RS 4
  922. .IP "\fBsad\fR" 4
  923. .IX Item "sad"
  924. sum of absolute differences, fast (default)
  925. .IP "\fBsse\fR" 4
  926. .IX Item "sse"
  927. sum of squared errors
  928. .IP "\fBsatd\fR" 4
  929. .IX Item "satd"
  930. sum of absolute Hadamard transformed differences
  931. .IP "\fBdct\fR" 4
  932. .IX Item "dct"
  933. sum of absolute \s-1DCT\s0 transformed differences
  934. .IP "\fBpsnr\fR" 4
  935. .IX Item "psnr"
  936. sum of squared quantization errors (avoid, low quality)
  937. .IP "\fBbit\fR" 4
  938. .IX Item "bit"
  939. number of bits needed for the block
  940. .IP "\fBrd\fR" 4
  941. .IX Item "rd"
  942. rate distortion optimal, slow
  943. .IP "\fBzero\fR" 4
  944. .IX Item "zero"
  945. 0
  946. .IP "\fBvsad\fR" 4
  947. .IX Item "vsad"
  948. sum of absolute vertical differences
  949. .IP "\fBvsse\fR" 4
  950. .IX Item "vsse"
  951. sum of squared vertical differences
  952. .IP "\fBnsse\fR" 4
  953. .IX Item "nsse"
  954. noise preserving sum of squared differences
  955. .IP "\fBw53\fR" 4
  956. .IX Item "w53"
  957. 5/3 wavelet, only used in snow
  958. .IP "\fBw97\fR" 4
  959. .IX Item "w97"
  960. 9/7 wavelet, only used in snow
  961. .IP "\fBdctmax\fR" 4
  962. .IX Item "dctmax"
  963. .PD 0
  964. .IP "\fBchroma\fR" 4
  965. .IX Item "chroma"
  966. .RE
  967. .RS 4
  968. .RE
  969. .IP "\fBildctcmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  970. .IX Item "ildctcmp integer (encoding,video)"
  971. .PD
  972. Set interlaced dct compare function.
  973. .Sp
  974. Possible values:
  975. .RS 4
  976. .IP "\fBsad\fR" 4
  977. .IX Item "sad"
  978. sum of absolute differences, fast (default)
  979. .IP "\fBsse\fR" 4
  980. .IX Item "sse"
  981. sum of squared errors
  982. .IP "\fBsatd\fR" 4
  983. .IX Item "satd"
  984. sum of absolute Hadamard transformed differences
  985. .IP "\fBdct\fR" 4
  986. .IX Item "dct"
  987. sum of absolute \s-1DCT\s0 transformed differences
  988. .IP "\fBpsnr\fR" 4
  989. .IX Item "psnr"
  990. sum of squared quantization errors (avoid, low quality)
  991. .IP "\fBbit\fR" 4
  992. .IX Item "bit"
  993. number of bits needed for the block
  994. .IP "\fBrd\fR" 4
  995. .IX Item "rd"
  996. rate distortion optimal, slow
  997. .IP "\fBzero\fR" 4
  998. .IX Item "zero"
  999. 0
  1000. .IP "\fBvsad\fR" 4
  1001. .IX Item "vsad"
  1002. sum of absolute vertical differences
  1003. .IP "\fBvsse\fR" 4
  1004. .IX Item "vsse"
  1005. sum of squared vertical differences
  1006. .IP "\fBnsse\fR" 4
  1007. .IX Item "nsse"
  1008. noise preserving sum of squared differences
  1009. .IP "\fBw53\fR" 4
  1010. .IX Item "w53"
  1011. 5/3 wavelet, only used in snow
  1012. .IP "\fBw97\fR" 4
  1013. .IX Item "w97"
  1014. 9/7 wavelet, only used in snow
  1015. .IP "\fBdctmax\fR" 4
  1016. .IX Item "dctmax"
  1017. .PD 0
  1018. .IP "\fBchroma\fR" 4
  1019. .IX Item "chroma"
  1020. .RE
  1021. .RS 4
  1022. .RE
  1023. .IP "\fBdia_size\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1024. .IX Item "dia_size integer (encoding,video)"
  1025. .PD
  1026. Set diamond type & size for motion estimation.
  1027. .IP "\fBlast_pred\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1028. .IX Item "last_pred integer (encoding,video)"
  1029. Set amount of motion predictors from the previous frame.
  1030. .IP "\fBpreme\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1031. .IX Item "preme integer (encoding,video)"
  1032. Set pre motion estimation.
  1033. .IP "\fBprecmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1034. .IX Item "precmp integer (encoding,video)"
  1035. Set pre motion estimation compare function.
  1036. .Sp
  1037. Possible values:
  1038. .RS 4
  1039. .IP "\fBsad\fR" 4
  1040. .IX Item "sad"
  1041. sum of absolute differences, fast (default)
  1042. .IP "\fBsse\fR" 4
  1043. .IX Item "sse"
  1044. sum of squared errors
  1045. .IP "\fBsatd\fR" 4
  1046. .IX Item "satd"
  1047. sum of absolute Hadamard transformed differences
  1048. .IP "\fBdct\fR" 4
  1049. .IX Item "dct"
  1050. sum of absolute \s-1DCT\s0 transformed differences
  1051. .IP "\fBpsnr\fR" 4
  1052. .IX Item "psnr"
  1053. sum of squared quantization errors (avoid, low quality)
  1054. .IP "\fBbit\fR" 4
  1055. .IX Item "bit"
  1056. number of bits needed for the block
  1057. .IP "\fBrd\fR" 4
  1058. .IX Item "rd"
  1059. rate distortion optimal, slow
  1060. .IP "\fBzero\fR" 4
  1061. .IX Item "zero"
  1062. 0
  1063. .IP "\fBvsad\fR" 4
  1064. .IX Item "vsad"
  1065. sum of absolute vertical differences
  1066. .IP "\fBvsse\fR" 4
  1067. .IX Item "vsse"
  1068. sum of squared vertical differences
  1069. .IP "\fBnsse\fR" 4
  1070. .IX Item "nsse"
  1071. noise preserving sum of squared differences
  1072. .IP "\fBw53\fR" 4
  1073. .IX Item "w53"
  1074. 5/3 wavelet, only used in snow
  1075. .IP "\fBw97\fR" 4
  1076. .IX Item "w97"
  1077. 9/7 wavelet, only used in snow
  1078. .IP "\fBdctmax\fR" 4
  1079. .IX Item "dctmax"
  1080. .PD 0
  1081. .IP "\fBchroma\fR" 4
  1082. .IX Item "chroma"
  1083. .RE
  1084. .RS 4
  1085. .RE
  1086. .IP "\fBpre_dia_size\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1087. .IX Item "pre_dia_size integer (encoding,video)"
  1088. .PD
  1089. Set diamond type & size for motion estimation pre\-pass.
  1090. .IP "\fBsubq\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1091. .IX Item "subq integer (encoding,video)"
  1092. Set sub pel motion estimation quality.
  1093. .IP "\fBdtg_active_format\fR \fIinteger\fR" 4
  1094. .IX Item "dtg_active_format integer"
  1095. .PD 0
  1096. .IP "\fBme_range\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1097. .IX Item "me_range integer (encoding,video)"
  1098. .PD
  1099. Set limit motion vectors range (1023 for DivX player).
  1100. .IP "\fBibias\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1101. .IX Item "ibias integer (encoding,video)"
  1102. Set intra quant bias.
  1103. .IP "\fBpbias\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1104. .IX Item "pbias integer (encoding,video)"
  1105. Set inter quant bias.
  1106. .IP "\fBcolor_table_id\fR \fIinteger\fR" 4
  1107. .IX Item "color_table_id integer"
  1108. .PD 0
  1109. .IP "\fBglobal_quality\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
  1110. .IX Item "global_quality integer (encoding,audio,video)"
  1111. .IP "\fBcoder\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1112. .IX Item "coder integer (encoding,video)"
  1113. .PD
  1114. Possible values:
  1115. .RS 4
  1116. .IP "\fBvlc\fR" 4
  1117. .IX Item "vlc"
  1118. variable length coder / huffman coder
  1119. .IP "\fBac\fR" 4
  1120. .IX Item "ac"
  1121. arithmetic coder
  1122. .IP "\fBraw\fR" 4
  1123. .IX Item "raw"
  1124. raw (no encoding)
  1125. .IP "\fBrle\fR" 4
  1126. .IX Item "rle"
  1127. run-length coder
  1128. .IP "\fBdeflate\fR" 4
  1129. .IX Item "deflate"
  1130. deflate-based coder
  1131. .RE
  1132. .RS 4
  1133. .RE
  1134. .IP "\fBcontext\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1135. .IX Item "context integer (encoding,video)"
  1136. Set context model.
  1137. .IP "\fBslice_flags\fR \fIinteger\fR" 4
  1138. .IX Item "slice_flags integer"
  1139. .PD 0
  1140. .IP "\fBxvmc_acceleration\fR \fIinteger\fR" 4
  1141. .IX Item "xvmc_acceleration integer"
  1142. .IP "\fBmbd\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1143. .IX Item "mbd integer (encoding,video)"
  1144. .PD
  1145. Set macroblock decision algorithm (high quality mode).
  1146. .Sp
  1147. Possible values:
  1148. .RS 4
  1149. .IP "\fBsimple\fR" 4
  1150. .IX Item "simple"
  1151. use mbcmp (default)
  1152. .IP "\fBbits\fR" 4
  1153. .IX Item "bits"
  1154. use fewest bits
  1155. .IP "\fBrd\fR" 4
  1156. .IX Item "rd"
  1157. use best rate distortion
  1158. .RE
  1159. .RS 4
  1160. .RE
  1161. .IP "\fBstream_codec_tag\fR \fIinteger\fR" 4
  1162. .IX Item "stream_codec_tag integer"
  1163. .PD 0
  1164. .IP "\fBsc_threshold\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1165. .IX Item "sc_threshold integer (encoding,video)"
  1166. .PD
  1167. Set scene change threshold.
  1168. .IP "\fBlmin\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1169. .IX Item "lmin integer (encoding,video)"
  1170. Set min lagrange factor (\s-1VBR\s0).
  1171. .IP "\fBlmax\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1172. .IX Item "lmax integer (encoding,video)"
  1173. Set max lagrange factor (\s-1VBR\s0).
  1174. .IP "\fBnr\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1175. .IX Item "nr integer (encoding,video)"
  1176. Set noise reduction.
  1177. .IP "\fBrc_init_occupancy\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1178. .IX Item "rc_init_occupancy integer (encoding,video)"
  1179. Set number of bits which should be loaded into the rc buffer before
  1180. decoding starts.
  1181. .IP "\fBflags2\fR \fIflags\fR \fB(\fR\fIdecoding/encoding,audio,video\fR\fB)\fR" 4
  1182. .IX Item "flags2 flags (decoding/encoding,audio,video)"
  1183. Possible values:
  1184. .RS 4
  1185. .IP "\fBfast\fR" 4
  1186. .IX Item "fast"
  1187. Allow non spec compliant speedup tricks.
  1188. .IP "\fBsgop\fR" 4
  1189. .IX Item "sgop"
  1190. Deprecated, use mpegvideo private options instead.
  1191. .IP "\fBnoout\fR" 4
  1192. .IX Item "noout"
  1193. Skip bitstream encoding.
  1194. .IP "\fBignorecrop\fR" 4
  1195. .IX Item "ignorecrop"
  1196. Ignore cropping information from sps.
  1197. .IP "\fBlocal_header\fR" 4
  1198. .IX Item "local_header"
  1199. Place global headers at every keyframe instead of in extradata.
  1200. .IP "\fBchunks\fR" 4
  1201. .IX Item "chunks"
  1202. Frame data might be split into multiple chunks.
  1203. .IP "\fBshowall\fR" 4
  1204. .IX Item "showall"
  1205. Show all frames before the first keyframe.
  1206. .IP "\fBskiprd\fR" 4
  1207. .IX Item "skiprd"
  1208. Deprecated, use mpegvideo private options instead.
  1209. .IP "\fBexport_mvs\fR" 4
  1210. .IX Item "export_mvs"
  1211. Export motion vectors into frame side-data (see \f(CW\*(C`AV_FRAME_DATA_MOTION_VECTORS\*(C'\fR)
  1212. for codecs that support it. See also \fIdoc/examples/export_mvs.c\fR.
  1213. .RE
  1214. .RS 4
  1215. .RE
  1216. .IP "\fBerror\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1217. .IX Item "error integer (encoding,video)"
  1218. .PD 0
  1219. .IP "\fBqns\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1220. .IX Item "qns integer (encoding,video)"
  1221. .PD
  1222. Deprecated, use mpegvideo private options instead.
  1223. .IP "\fBthreads\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
  1224. .IX Item "threads integer (decoding/encoding,video)"
  1225. Possible values:
  1226. .RS 4
  1227. .IP "\fBauto\fR" 4
  1228. .IX Item "auto"
  1229. detect a good number of threads
  1230. .RE
  1231. .RS 4
  1232. .RE
  1233. .IP "\fBme_threshold\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1234. .IX Item "me_threshold integer (encoding,video)"
  1235. Set motion estimation threshold.
  1236. .IP "\fBmb_threshold\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1237. .IX Item "mb_threshold integer (encoding,video)"
  1238. Set macroblock threshold.
  1239. .IP "\fBdc\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1240. .IX Item "dc integer (encoding,video)"
  1241. Set intra_dc_precision.
  1242. .IP "\fBnssew\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1243. .IX Item "nssew integer (encoding,video)"
  1244. Set nsse weight.
  1245. .IP "\fBskip_top\fR \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
  1246. .IX Item "skip_top integer (decoding,video)"
  1247. Set number of macroblock rows at the top which are skipped.
  1248. .IP "\fBskip_bottom\fR \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
  1249. .IX Item "skip_bottom integer (decoding,video)"
  1250. Set number of macroblock rows at the bottom which are skipped.
  1251. .IP "\fBprofile\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
  1252. .IX Item "profile integer (encoding,audio,video)"
  1253. Possible values:
  1254. .RS 4
  1255. .IP "\fBunknown\fR" 4
  1256. .IX Item "unknown"
  1257. .PD 0
  1258. .IP "\fBaac_main\fR" 4
  1259. .IX Item "aac_main"
  1260. .IP "\fBaac_low\fR" 4
  1261. .IX Item "aac_low"
  1262. .IP "\fBaac_ssr\fR" 4
  1263. .IX Item "aac_ssr"
  1264. .IP "\fBaac_ltp\fR" 4
  1265. .IX Item "aac_ltp"
  1266. .IP "\fBaac_he\fR" 4
  1267. .IX Item "aac_he"
  1268. .IP "\fBaac_he_v2\fR" 4
  1269. .IX Item "aac_he_v2"
  1270. .IP "\fBaac_ld\fR" 4
  1271. .IX Item "aac_ld"
  1272. .IP "\fBaac_eld\fR" 4
  1273. .IX Item "aac_eld"
  1274. .IP "\fBmpeg2_aac_low\fR" 4
  1275. .IX Item "mpeg2_aac_low"
  1276. .IP "\fBmpeg2_aac_he\fR" 4
  1277. .IX Item "mpeg2_aac_he"
  1278. .IP "\fBmpeg4_sp\fR" 4
  1279. .IX Item "mpeg4_sp"
  1280. .IP "\fBmpeg4_core\fR" 4
  1281. .IX Item "mpeg4_core"
  1282. .IP "\fBmpeg4_main\fR" 4
  1283. .IX Item "mpeg4_main"
  1284. .IP "\fBmpeg4_asp\fR" 4
  1285. .IX Item "mpeg4_asp"
  1286. .IP "\fBdts\fR" 4
  1287. .IX Item "dts"
  1288. .IP "\fBdts_es\fR" 4
  1289. .IX Item "dts_es"
  1290. .IP "\fBdts_96_24\fR" 4
  1291. .IX Item "dts_96_24"
  1292. .IP "\fBdts_hd_hra\fR" 4
  1293. .IX Item "dts_hd_hra"
  1294. .IP "\fBdts_hd_ma\fR" 4
  1295. .IX Item "dts_hd_ma"
  1296. .RE
  1297. .RS 4
  1298. .RE
  1299. .IP "\fBlevel\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
  1300. .IX Item "level integer (encoding,audio,video)"
  1301. .PD
  1302. Possible values:
  1303. .RS 4
  1304. .IP "\fBunknown\fR" 4
  1305. .IX Item "unknown"
  1306. .RE
  1307. .RS 4
  1308. .RE
  1309. .PD 0
  1310. .IP "\fBlowres\fR \fIinteger\fR \fB(\fR\fIdecoding,audio,video\fR\fB)\fR" 4
  1311. .IX Item "lowres integer (decoding,audio,video)"
  1312. .PD
  1313. Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
  1314. .IP "\fBskip_threshold\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1315. .IX Item "skip_threshold integer (encoding,video)"
  1316. Set frame skip threshold.
  1317. .IP "\fBskip_factor\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1318. .IX Item "skip_factor integer (encoding,video)"
  1319. Set frame skip factor.
  1320. .IP "\fBskip_exp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1321. .IX Item "skip_exp integer (encoding,video)"
  1322. Set frame skip exponent.
  1323. Negative values behave identical to the corresponding positive ones, except
  1324. that the score is normalized.
  1325. Positive values exist primarily for compatibility reasons and are not so useful.
  1326. .IP "\fBskipcmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1327. .IX Item "skipcmp integer (encoding,video)"
  1328. Set frame skip compare function.
  1329. .Sp
  1330. Possible values:
  1331. .RS 4
  1332. .IP "\fBsad\fR" 4
  1333. .IX Item "sad"
  1334. sum of absolute differences, fast (default)
  1335. .IP "\fBsse\fR" 4
  1336. .IX Item "sse"
  1337. sum of squared errors
  1338. .IP "\fBsatd\fR" 4
  1339. .IX Item "satd"
  1340. sum of absolute Hadamard transformed differences
  1341. .IP "\fBdct\fR" 4
  1342. .IX Item "dct"
  1343. sum of absolute \s-1DCT\s0 transformed differences
  1344. .IP "\fBpsnr\fR" 4
  1345. .IX Item "psnr"
  1346. sum of squared quantization errors (avoid, low quality)
  1347. .IP "\fBbit\fR" 4
  1348. .IX Item "bit"
  1349. number of bits needed for the block
  1350. .IP "\fBrd\fR" 4
  1351. .IX Item "rd"
  1352. rate distortion optimal, slow
  1353. .IP "\fBzero\fR" 4
  1354. .IX Item "zero"
  1355. 0
  1356. .IP "\fBvsad\fR" 4
  1357. .IX Item "vsad"
  1358. sum of absolute vertical differences
  1359. .IP "\fBvsse\fR" 4
  1360. .IX Item "vsse"
  1361. sum of squared vertical differences
  1362. .IP "\fBnsse\fR" 4
  1363. .IX Item "nsse"
  1364. noise preserving sum of squared differences
  1365. .IP "\fBw53\fR" 4
  1366. .IX Item "w53"
  1367. 5/3 wavelet, only used in snow
  1368. .IP "\fBw97\fR" 4
  1369. .IX Item "w97"
  1370. 9/7 wavelet, only used in snow
  1371. .IP "\fBdctmax\fR" 4
  1372. .IX Item "dctmax"
  1373. .PD 0
  1374. .IP "\fBchroma\fR" 4
  1375. .IX Item "chroma"
  1376. .RE
  1377. .RS 4
  1378. .RE
  1379. .IP "\fBborder_mask\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1380. .IX Item "border_mask float (encoding,video)"
  1381. .PD
  1382. Increase the quantizer for macroblocks close to borders.
  1383. .IP "\fBmblmin\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1384. .IX Item "mblmin integer (encoding,video)"
  1385. Set min macroblock lagrange factor (\s-1VBR\s0).
  1386. .IP "\fBmblmax\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1387. .IX Item "mblmax integer (encoding,video)"
  1388. Set max macroblock lagrange factor (\s-1VBR\s0).
  1389. .IP "\fBmepc\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1390. .IX Item "mepc integer (encoding,video)"
  1391. Set motion estimation bitrate penalty compensation (1.0 = 256).
  1392. .IP "\fBskip_loop_filter\fR \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
  1393. .IX Item "skip_loop_filter integer (decoding,video)"
  1394. .PD 0
  1395. .IP "\fBskip_idct\fR        \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
  1396. .IX Item "skip_idct        integer (decoding,video)"
  1397. .IP "\fBskip_frame\fR       \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
  1398. .IX Item "skip_frame       integer (decoding,video)"
  1399. .PD
  1400. Make decoder discard processing depending on the frame type selected
  1401. by the option value.
  1402. .Sp
  1403. \&\fBskip_loop_filter\fR skips frame loop filtering, \fBskip_idct\fR
  1404. skips frame IDCT/dequantization, \fBskip_frame\fR skips decoding.
  1405. .Sp
  1406. Possible values:
  1407. .RS 4
  1408. .IP "\fBnone\fR" 4
  1409. .IX Item "none"
  1410. Discard no frame.
  1411. .IP "\fBdefault\fR" 4
  1412. .IX Item "default"
  1413. Discard useless frames like 0\-sized frames.
  1414. .IP "\fBnoref\fR" 4
  1415. .IX Item "noref"
  1416. Discard all non-reference frames.
  1417. .IP "\fBbidir\fR" 4
  1418. .IX Item "bidir"
  1419. Discard all bidirectional frames.
  1420. .IP "\fBnokey\fR" 4
  1421. .IX Item "nokey"
  1422. Discard all frames excepts keyframes.
  1423. .IP "\fBall\fR" 4
  1424. .IX Item "all"
  1425. Discard all frames.
  1426. .RE
  1427. .RS 4
  1428. .Sp
  1429. Default value is \fBdefault\fR.
  1430. .RE
  1431. .IP "\fBbidir_refine\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1432. .IX Item "bidir_refine integer (encoding,video)"
  1433. Refine the two motion vectors used in bidirectional macroblocks.
  1434. .IP "\fBbrd_scale\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1435. .IX Item "brd_scale integer (encoding,video)"
  1436. Downscale frames for dynamic B\-frame decision.
  1437. .IP "\fBkeyint_min\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1438. .IX Item "keyint_min integer (encoding,video)"
  1439. Set minimum interval between IDR\-frames.
  1440. .IP "\fBrefs\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1441. .IX Item "refs integer (encoding,video)"
  1442. Set reference frames to consider for motion compensation.
  1443. .IP "\fBchromaoffset\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1444. .IX Item "chromaoffset integer (encoding,video)"
  1445. Set chroma qp offset from luma.
  1446. .IP "\fBtrellis\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
  1447. .IX Item "trellis integer (encoding,audio,video)"
  1448. Set rate-distortion optimal quantization.
  1449. .IP "\fBsc_factor\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1450. .IX Item "sc_factor integer (encoding,video)"
  1451. Set value multiplied by qscale for each frame and added to
  1452. scene_change_score.
  1453. .IP "\fBmv0_threshold\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1454. .IX Item "mv0_threshold integer (encoding,video)"
  1455. .PD 0
  1456. .IP "\fBb_sensitivity\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1457. .IX Item "b_sensitivity integer (encoding,video)"
  1458. .PD
  1459. Adjust sensitivity of b_frame_strategy 1.
  1460. .IP "\fBcompression_level\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
  1461. .IX Item "compression_level integer (encoding,audio,video)"
  1462. .PD 0
  1463. .IP "\fBmin_prediction_order\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
  1464. .IX Item "min_prediction_order integer (encoding,audio)"
  1465. .IP "\fBmax_prediction_order\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
  1466. .IX Item "max_prediction_order integer (encoding,audio)"
  1467. .IP "\fBtimecode_frame_start\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1468. .IX Item "timecode_frame_start integer (encoding,video)"
  1469. .PD
  1470. Set \s-1GOP\s0 timecode frame start number, in non drop frame format.
  1471. .IP "\fBrequest_channels\fR \fIinteger\fR \fB(\fR\fIdecoding,audio\fR\fB)\fR" 4
  1472. .IX Item "request_channels integer (decoding,audio)"
  1473. Set desired number of audio channels.
  1474. .IP "\fBbits_per_raw_sample\fR \fIinteger\fR" 4
  1475. .IX Item "bits_per_raw_sample integer"
  1476. .PD 0
  1477. .IP "\fBchannel_layout\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,audio\fR\fB)\fR" 4
  1478. .IX Item "channel_layout integer (decoding/encoding,audio)"
  1479. .PD
  1480. Possible values:
  1481. .RS 4
  1482. .RE
  1483. .RS 4
  1484. .RE
  1485. .IP "\fBrequest_channel_layout\fR \fIinteger\fR \fB(\fR\fIdecoding,audio\fR\fB)\fR" 4
  1486. .IX Item "request_channel_layout integer (decoding,audio)"
  1487. Possible values:
  1488. .RS 4
  1489. .RE
  1490. .RS 4
  1491. .RE
  1492. .IP "\fBrc_max_vbv_use\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1493. .IX Item "rc_max_vbv_use float (encoding,video)"
  1494. .PD 0
  1495. .IP "\fBrc_min_vbv_use\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1496. .IX Item "rc_min_vbv_use float (encoding,video)"
  1497. .IP "\fBticks_per_frame\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,audio,video\fR\fB)\fR" 4
  1498. .IX Item "ticks_per_frame integer (decoding/encoding,audio,video)"
  1499. .IP "\fBcolor_primaries\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
  1500. .IX Item "color_primaries integer (decoding/encoding,video)"
  1501. .IP "\fBcolor_trc\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
  1502. .IX Item "color_trc integer (decoding/encoding,video)"
  1503. .IP "\fBcolorspace\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
  1504. .IX Item "colorspace integer (decoding/encoding,video)"
  1505. .IP "\fBcolor_range\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
  1506. .IX Item "color_range integer (decoding/encoding,video)"
  1507. .PD
  1508. If used as input parameter, it serves as a hint to the decoder, which
  1509. color_range the input has.
  1510. .IP "\fBchroma_sample_location\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
  1511. .IX Item "chroma_sample_location integer (decoding/encoding,video)"
  1512. .PD 0
  1513. .IP "\fBlog_level_offset\fR \fIinteger\fR" 4
  1514. .IX Item "log_level_offset integer"
  1515. .PD
  1516. Set the log level offset.
  1517. .IP "\fBslices\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
  1518. .IX Item "slices integer (encoding,video)"
  1519. Number of slices, used in parallelized encoding.
  1520. .IP "\fBthread_type\fR \fIflags\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
  1521. .IX Item "thread_type flags (decoding/encoding,video)"
  1522. Select which multithreading methods to use.
  1523. .Sp
  1524. Use of \fBframe\fR will increase decoding delay by one frame per
  1525. thread, so clients which cannot provide future frames should not use
  1526. it.
  1527. .Sp
  1528. Possible values:
  1529. .RS 4
  1530. .IP "\fBslice\fR" 4
  1531. .IX Item "slice"
  1532. Decode more than one part of a single frame at once.
  1533. .Sp
  1534. Multithreading using slices works only when the video was encoded with
  1535. slices.
  1536. .IP "\fBframe\fR" 4
  1537. .IX Item "frame"
  1538. Decode more than one frame at once.
  1539. .RE
  1540. .RS 4
  1541. .Sp
  1542. Default value is \fBslice+frame\fR.
  1543. .RE
  1544. .IP "\fBaudio_service_type\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
  1545. .IX Item "audio_service_type integer (encoding,audio)"
  1546. Set audio service type.
  1547. .Sp
  1548. Possible values:
  1549. .RS 4
  1550. .IP "\fBma\fR" 4
  1551. .IX Item "ma"
  1552. Main Audio Service
  1553. .IP "\fBef\fR" 4
  1554. .IX Item "ef"
  1555. Effects
  1556. .IP "\fBvi\fR" 4
  1557. .IX Item "vi"
  1558. Visually Impaired
  1559. .IP "\fBhi\fR" 4
  1560. .IX Item "hi"
  1561. Hearing Impaired
  1562. .IP "\fBdi\fR" 4
  1563. .IX Item "di"
  1564. Dialogue
  1565. .IP "\fBco\fR" 4
  1566. .IX Item "co"
  1567. Commentary
  1568. .IP "\fBem\fR" 4
  1569. .IX Item "em"
  1570. Emergency
  1571. .IP "\fBvo\fR" 4
  1572. .IX Item "vo"
  1573. Voice Over
  1574. .IP "\fBka\fR" 4
  1575. .IX Item "ka"
  1576. Karaoke
  1577. .RE
  1578. .RS 4
  1579. .RE
  1580. .IP "\fBrequest_sample_fmt\fR \fIsample_fmt\fR \fB(\fR\fIdecoding,audio\fR\fB)\fR" 4
  1581. .IX Item "request_sample_fmt sample_fmt (decoding,audio)"
  1582. Set sample format audio decoders should prefer. Default value is
  1583. \&\f(CW\*(C`none\*(C'\fR.
  1584. .IP "\fBpkt_timebase\fR \fIrational number\fR" 4
  1585. .IX Item "pkt_timebase rational number"
  1586. .PD 0
  1587. .IP "\fBsub_charenc\fR \fIencoding\fR \fB(\fR\fIdecoding,subtitles\fR\fB)\fR" 4
  1588. .IX Item "sub_charenc encoding (decoding,subtitles)"
  1589. .PD
  1590. Set the input subtitles character encoding.
  1591. .IP "\fBfield_order\fR  \fIfield_order\fR \fB(\fR\fIvideo\fR\fB)\fR" 4
  1592. .IX Item "field_order  field_order (video)"
  1593. Set/override the field order of the video.
  1594. Possible values:
  1595. .RS 4
  1596. .IP "\fBprogressive\fR" 4
  1597. .IX Item "progressive"
  1598. Progressive video
  1599. .IP "\fBtt\fR" 4
  1600. .IX Item "tt"
  1601. Interlaced video, top field coded and displayed first
  1602. .IP "\fBbb\fR" 4
  1603. .IX Item "bb"
  1604. Interlaced video, bottom field coded and displayed first
  1605. .IP "\fBtb\fR" 4
  1606. .IX Item "tb"
  1607. Interlaced video, top coded first, bottom displayed first
  1608. .IP "\fBbt\fR" 4
  1609. .IX Item "bt"
  1610. Interlaced video, bottom coded first, top displayed first
  1611. .RE
  1612. .RS 4
  1613. .RE
  1614. .IP "\fBskip_alpha\fR \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
  1615. .IX Item "skip_alpha integer (decoding,video)"
  1616. Set to 1 to disable processing alpha (transparency). This works like the
  1617. \&\fBgray\fR flag in the \fBflags\fR option which skips chroma information
  1618. instead of alpha. Default is 0.
  1619. .IP "\fBcodec_whitelist\fR \fIlist\fR \fB(\fR\fIinput\fR\fB)\fR" 4
  1620. .IX Item "codec_whitelist list (input)"
  1621. \&\*(L",\*(R" separated List of allowed decoders. By default all are allowed.
  1622. .IP "\fBdump_separator\fR \fIstring\fR \fB(\fR\fIinput\fR\fB)\fR" 4
  1623. .IX Item "dump_separator string (input)"
  1624. Separator used to separate the fields printed on the command line about the
  1625. Stream parameters.
  1626. For example to separate the fields with newlines and indention:
  1627. .Sp
  1628. .Vb 2
  1629. \&        ffprobe -dump_separator "
  1630. \&                                  "  -i ~/videos/matrixbench_mpeg2.mpg
  1631. .Ve
  1632. .SH "DECODERS"
  1633. .IX Header "DECODERS"
  1634. Decoders are configured elements in FFmpeg which allow the decoding of
  1635. multimedia streams.
  1636. .PP
  1637. When you configure your FFmpeg build, all the supported native decoders
  1638. are enabled by default. Decoders requiring an external library must be enabled
  1639. manually via the corresponding \f(CW\*(C`\-\-enable\-lib\*(C'\fR option. You can list all
  1640. available decoders using the configure option \f(CW\*(C`\-\-list\-decoders\*(C'\fR.
  1641. .PP
  1642. You can disable all the decoders with the configure option
  1643. \&\f(CW\*(C`\-\-disable\-decoders\*(C'\fR and selectively enable / disable single decoders
  1644. with the options \f(CW\*(C`\-\-enable\-decoder=\f(CI\s-1DECODER\s0\f(CW\*(C'\fR /
  1645. \&\f(CW\*(C`\-\-disable\-decoder=\f(CI\s-1DECODER\s0\f(CW\*(C'\fR.
  1646. .PP
  1647. The option \f(CW\*(C`\-decoders\*(C'\fR of the ff* tools will display the list of
  1648. enabled decoders.
  1649. .SH "VIDEO DECODERS"
  1650. .IX Header "VIDEO DECODERS"
  1651. A description of some of the currently available video decoders
  1652. follows.
  1653. .Sh "hevc"
  1654. .IX Subsection "hevc"
  1655. \&\s-1HEVC\s0 / H.265 decoder.
  1656. .PP
  1657. Note: the \fBskip_loop_filter\fR option has effect only at level
  1658. \&\f(CW\*(C`all\*(C'\fR.
  1659. .Sh "rawvideo"
  1660. .IX Subsection "rawvideo"
  1661. Raw video decoder.
  1662. .PP
  1663. This decoder decodes rawvideo streams.
  1664. .PP
  1665. \fIOptions\fR
  1666. .IX Subsection "Options"
  1667. .IP "\fBtop\fR \fItop_field_first\fR" 4
  1668. .IX Item "top top_field_first"
  1669. Specify the assumed field type of the input video.
  1670. .RS 4
  1671. .IP "\fB\-1\fR" 4
  1672. .IX Item "-1"
  1673. the video is assumed to be progressive (default)
  1674. .IP "\fB0\fR" 4
  1675. .IX Item "0"
  1676. bottom-field-first is assumed
  1677. .IP "\fB1\fR" 4
  1678. .IX Item "1"
  1679. top-field-first is assumed
  1680. .RE
  1681. .RS 4
  1682. .RE
  1683. .SH "AUDIO DECODERS"
  1684. .IX Header "AUDIO DECODERS"
  1685. A description of some of the currently available audio decoders
  1686. follows.
  1687. .Sh "ac3"
  1688. .IX Subsection "ac3"
  1689. \&\s-1AC\-3\s0 audio decoder.
  1690. .PP
  1691. This decoder implements part of \s-1ATSC\s0 A/52:2010 and \s-1ETSI\s0 \s-1TS\s0 102 366, as well as
  1692. the undocumented RealAudio 3 (a.k.a. dnet).
  1693. .PP
  1694. \fI\s-1AC\-3\s0 Decoder Options\fR
  1695. .IX Subsection "AC-3 Decoder Options"
  1696. .IP "\fB\-drc_scale\fR \fIvalue\fR" 4
  1697. .IX Item "-drc_scale value"
  1698. Dynamic Range Scale Factor. The factor to apply to dynamic range values
  1699. from the \s-1AC\-3\s0 stream. This factor is applied exponentially.
  1700. There are 3 notable scale factor ranges:
  1701. .RS 4
  1702. .IP "\fBdrc_scale == 0\fR" 4
  1703. .IX Item "drc_scale == 0"
  1704. \&\s-1DRC\s0 disabled. Produces full range audio.
  1705. .IP "\fB0 < drc_scale <= 1\fR" 4
  1706. .IX Item "0 < drc_scale <= 1"
  1707. \&\s-1DRC\s0 enabled.  Applies a fraction of the stream \s-1DRC\s0 value.
  1708. Audio reproduction is between full range and full compression.
  1709. .IP "\fBdrc_scale > 1\fR" 4
  1710. .IX Item "drc_scale > 1"
  1711. \&\s-1DRC\s0 enabled. Applies drc_scale asymmetrically.
  1712. Loud sounds are fully compressed.  Soft sounds are enhanced.
  1713. .RE
  1714. .RS 4
  1715. .RE
  1716. .Sh "flac"
  1717. .IX Subsection "flac"
  1718. \&\s-1FLAC\s0 audio decoder.
  1719. .PP
  1720. This decoder aims to implement the complete \s-1FLAC\s0 specification from Xiph.
  1721. .PP
  1722. \fI\s-1FLAC\s0 Decoder options\fR
  1723. .IX Subsection "FLAC Decoder options"
  1724. .IP "\fB\-use_buggy_lpc\fR" 4
  1725. .IX Item "-use_buggy_lpc"
  1726. The lavc \s-1FLAC\s0 encoder used to produce buggy streams with high lpc values
  1727. (like the default value). This option makes it possible to decode such streams
  1728. correctly by using lavc's old buggy lpc logic for decoding.
  1729. .Sh "ffwavesynth"
  1730. .IX Subsection "ffwavesynth"
  1731. Internal wave synthetizer.
  1732. .PP
  1733. This decoder generates wave patterns according to predefined sequences. Its
  1734. use is purely internal and the format of the data it accepts is not publicly
  1735. documented.
  1736. .Sh "libcelt"
  1737. .IX Subsection "libcelt"
  1738. libcelt decoder wrapper.
  1739. .PP
  1740. libcelt allows libavcodec to decode the Xiph \s-1CELT\s0 ultra-low delay audio codec.
  1741. Requires the presence of the libcelt headers and library during configuration.
  1742. You need to explicitly configure the build with \f(CW\*(C`\-\-enable\-libcelt\*(C'\fR.
  1743. .Sh "libgsm"
  1744. .IX Subsection "libgsm"
  1745. libgsm decoder wrapper.
  1746. .PP
  1747. libgsm allows libavcodec to decode the \s-1GSM\s0 full rate audio codec. Requires
  1748. the presence of the libgsm headers and library during configuration. You need
  1749. to explicitly configure the build with \f(CW\*(C`\-\-enable\-libgsm\*(C'\fR.
  1750. .PP
  1751. This decoder supports both the ordinary \s-1GSM\s0 and the Microsoft variant.
  1752. .Sh "libilbc"
  1753. .IX Subsection "libilbc"
  1754. libilbc decoder wrapper.
  1755. .PP
  1756. libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  1757. audio codec. Requires the presence of the libilbc headers and library during
  1758. configuration. You need to explicitly configure the build with
  1759. \&\f(CW\*(C`\-\-enable\-libilbc\*(C'\fR.
  1760. .PP
  1761. \fIOptions\fR
  1762. .IX Subsection "Options"
  1763. .PP
  1764. The following option is supported by the libilbc wrapper.
  1765. .IP "\fBenhance\fR" 4
  1766. .IX Item "enhance"
  1767. Enable the enhancement of the decoded audio when set to 1. The default
  1768. value is 0 (disabled).
  1769. .Sh "libopencore-amrnb"
  1770. .IX Subsection "libopencore-amrnb"
  1771. libopencore-amrnb decoder wrapper.
  1772. .PP
  1773. libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  1774. Narrowband audio codec. Using it requires the presence of the
  1775. libopencore-amrnb headers and library during configuration. You need to
  1776. explicitly configure the build with \f(CW\*(C`\-\-enable\-libopencore\-amrnb\*(C'\fR.
  1777. .PP
  1778. An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  1779. without this library.
  1780. .Sh "libopencore-amrwb"
  1781. .IX Subsection "libopencore-amrwb"
  1782. libopencore-amrwb decoder wrapper.
  1783. .PP
  1784. libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  1785. Wideband audio codec. Using it requires the presence of the
  1786. libopencore-amrwb headers and library during configuration. You need to
  1787. explicitly configure the build with \f(CW\*(C`\-\-enable\-libopencore\-amrwb\*(C'\fR.
  1788. .PP
  1789. An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  1790. without this library.
  1791. .Sh "libopus"
  1792. .IX Subsection "libopus"
  1793. libopus decoder wrapper.
  1794. .PP
  1795. libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  1796. Requires the presence of the libopus headers and library during
  1797. configuration. You need to explicitly configure the build with
  1798. \&\f(CW\*(C`\-\-enable\-libopus\*(C'\fR.
  1799. .PP
  1800. An FFmpeg native decoder for Opus exists, so users can decode Opus
  1801. without this library.
  1802. .SH "SUBTITLES DECODERS"
  1803. .IX Header "SUBTITLES DECODERS"
  1804. .Sh "dvbsub"
  1805. .IX Subsection "dvbsub"
  1806. \fIOptions\fR
  1807. .IX Subsection "Options"
  1808. .IP "\fBcompute_clut\fR" 4
  1809. .IX Item "compute_clut"
  1810. .RS 4
  1811. .PD 0
  1812. .IP "\fB\-1\fR" 4
  1813. .IX Item "-1"
  1814. .PD
  1815. Compute clut if no matching \s-1CLUT\s0 is in the stream.
  1816. .IP "\fB0\fR" 4
  1817. .IX Item "0"
  1818. Never compute \s-1CLUT\s0
  1819. .IP "\fB1\fR" 4
  1820. .IX Item "1"
  1821. Always compute \s-1CLUT\s0 and override the one provided in the stream.
  1822. .RE
  1823. .RS 4
  1824. .RE
  1825. .IP "\fBdvb_substream\fR" 4
  1826. .IX Item "dvb_substream"
  1827. Selects the dvb substream, or all substreams if \-1 which is default.
  1828. .Sh "dvdsub"
  1829. .IX Subsection "dvdsub"
  1830. This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  1831. also be found in VobSub file pairs and in some Matroska files.
  1832. .PP
  1833. \fIOptions\fR
  1834. .IX Subsection "Options"
  1835. .IP "\fBpalette\fR" 4
  1836. .IX Item "palette"
  1837. Specify the global palette used by the bitmaps. When stored in VobSub, the
  1838. palette is normally specified in the index file; in Matroska, the palette is
  1839. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  1840. palette is stored in the \s-1IFO\s0 file, and therefore not available when reading
  1841. from dumped \s-1VOB\s0 files.
  1842. .Sp
  1843. The format for this option is a string containing 16 24\-bits hexadecimal
  1844. numbers (without 0x prefix) separated by comas, for example \f(CW\*(C`0d00ee,
  1845. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  1846. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b\*(C'\fR.
  1847. .IP "\fBifo_palette\fR" 4
  1848. .IX Item "ifo_palette"
  1849. Specify the \s-1IFO\s0 file from which the global palette is obtained.
  1850. (experimental)
  1851. .IP "\fBforced_subs_only\fR" 4
  1852. .IX Item "forced_subs_only"
  1853. Only decode subtitle entries marked as forced. Some titles have forced
  1854. and non-forced subtitles in the same track. Setting this flag to \f(CW1\fR
  1855. will only keep the forced subtitles. Default value is \f(CW0\fR.
  1856. .Sh "libzvbi-teletext"
  1857. .IX Subsection "libzvbi-teletext"
  1858. Libzvbi allows libavcodec to decode \s-1DVB\s0 teletext pages and \s-1DVB\s0 teletext
  1859. subtitles. Requires the presence of the libzvbi headers and library during
  1860. configuration. You need to explicitly configure the build with
  1861. \&\f(CW\*(C`\-\-enable\-libzvbi\*(C'\fR.
  1862. .PP
  1863. \fIOptions\fR
  1864. .IX Subsection "Options"
  1865. .IP "\fBtxt_page\fR" 4
  1866. .IX Item "txt_page"
  1867. List of teletext page numbers to decode. You may use the special * string to
  1868. match all pages. Pages that do not match the specified list are dropped.
  1869. Default value is *.
  1870. .IP "\fBtxt_chop_top\fR" 4
  1871. .IX Item "txt_chop_top"
  1872. Discards the top teletext line. Default value is 1.
  1873. .IP "\fBtxt_format\fR" 4
  1874. .IX Item "txt_format"
  1875. Specifies the format of the decoded subtitles. The teletext decoder is capable
  1876. of decoding the teletext pages to bitmaps or to simple text, you should use
  1877. \&\*(L"bitmap\*(R" for teletext pages, because certain graphics and colors cannot be
  1878. expressed in simple text. You might use \*(L"text\*(R" for teletext based subtitles if
  1879. your application can handle simple text based subtitles. Default value is
  1880. bitmap.
  1881. .IP "\fBtxt_left\fR" 4
  1882. .IX Item "txt_left"
  1883. X offset of generated bitmaps, default is 0.
  1884. .IP "\fBtxt_top\fR" 4
  1885. .IX Item "txt_top"
  1886. Y offset of generated bitmaps, default is 0.
  1887. .IP "\fBtxt_chop_spaces\fR" 4
  1888. .IX Item "txt_chop_spaces"
  1889. Chops leading and trailing spaces and removes empty lines from the generated
  1890. text. This option is useful for teletext based subtitles where empty spaces may
  1891. be present at the start or at the end of the lines or empty lines may be
  1892. present between the subtitle lines because of double-sized teletext charactes.
  1893. Default value is 1.
  1894. .IP "\fBtxt_duration\fR" 4
  1895. .IX Item "txt_duration"
  1896. Sets the display duration of the decoded teletext pages or subtitles in
  1897. miliseconds. Default value is 30000 which is 30 seconds.
  1898. .IP "\fBtxt_transparent\fR" 4
  1899. .IX Item "txt_transparent"
  1900. Force transparent background of the generated teletext bitmaps. Default value
  1901. is 0 which means an opaque (black) background.
  1902. .SH "ENCODERS"
  1903. .IX Header "ENCODERS"
  1904. Encoders are configured elements in FFmpeg which allow the encoding of
  1905. multimedia streams.
  1906. .PP
  1907. When you configure your FFmpeg build, all the supported native encoders
  1908. are enabled by default. Encoders requiring an external library must be enabled
  1909. manually via the corresponding \f(CW\*(C`\-\-enable\-lib\*(C'\fR option. You can list all
  1910. available encoders using the configure option \f(CW\*(C`\-\-list\-encoders\*(C'\fR.
  1911. .PP
  1912. You can disable all the encoders with the configure option
  1913. \&\f(CW\*(C`\-\-disable\-encoders\*(C'\fR and selectively enable / disable single encoders
  1914. with the options \f(CW\*(C`\-\-enable\-encoder=\f(CI\s-1ENCODER\s0\f(CW\*(C'\fR /
  1915. \&\f(CW\*(C`\-\-disable\-encoder=\f(CI\s-1ENCODER\s0\f(CW\*(C'\fR.
  1916. .PP
  1917. The option \f(CW\*(C`\-encoders\*(C'\fR of the ff* tools will display the list of
  1918. enabled encoders.
  1919. .SH "AUDIO ENCODERS"
  1920. .IX Header "AUDIO ENCODERS"
  1921. A description of some of the currently available audio encoders
  1922. follows.
  1923. .Sh "aac"
  1924. .IX Subsection "aac"
  1925. Advanced Audio Coding (\s-1AAC\s0) encoder.
  1926. .PP
  1927. This encoder is an experimental FFmpeg-native \s-1AAC\s0 encoder. Currently only the
  1928. low complexity (\s-1AAC\-LC\s0) profile is supported. To use this encoder, you must set
  1929. \&\fBstrict\fR option to \fBexperimental\fR or lower.
  1930. .PP
  1931. As this encoder is experimental, unexpected behavior may exist from time to
  1932. time. For a more stable \s-1AAC\s0 encoder, see \fBlibvo-aacenc\fR. However, be warned
  1933. that it has a worse quality reported by some users.
  1934. .PP
  1935. See also \fBlibfdk_aac\fR.
  1936. .PP
  1937. \fIOptions\fR
  1938. .IX Subsection "Options"
  1939. .IP "\fBb\fR" 4
  1940. .IX Item "b"
  1941. Set bit rate in bits/s. Setting this automatically activates constant bit rate
  1942. (\s-1CBR\s0) mode.
  1943. .IP "\fBq\fR" 4
  1944. .IX Item "q"
  1945. Set quality for variable bit rate (\s-1VBR\s0) mode. This option is valid only using
  1946. the \fBffmpeg\fR command-line tool. For library interface users, use
  1947. \&\fBglobal_quality\fR.
  1948. .IP "\fBstereo_mode\fR" 4
  1949. .IX Item "stereo_mode"
  1950. Set stereo encoding mode. Possible values:
  1951. .RS 4
  1952. .IP "\fBauto\fR" 4
  1953. .IX Item "auto"
  1954. Automatically selected by the encoder.
  1955. .IP "\fBms_off\fR" 4
  1956. .IX Item "ms_off"
  1957. Disable middle/side encoding. This is the default.
  1958. .IP "\fBms_force\fR" 4
  1959. .IX Item "ms_force"
  1960. Force middle/side encoding.
  1961. .RE
  1962. .RS 4
  1963. .RE
  1964. .IP "\fBaac_coder\fR" 4
  1965. .IX Item "aac_coder"
  1966. Set \s-1AAC\s0 encoder coding method. Possible values:
  1967. .RS 4
  1968. .IP "\fBfaac\fR" 4
  1969. .IX Item "faac"
  1970. FAAC-inspired method.
  1971. .Sp
  1972. This method is a simplified reimplementation of the method used in \s-1FAAC\s0, which
  1973. sets thresholds proportional to the band energies, and then decreases all the
  1974. thresholds with quantizer steps to find the appropriate quantization with
  1975. distortion below threshold band by band.
  1976. .Sp
  1977. The quality of this method is comparable to the two loop searching method
  1978. described below, but somewhat a little better and slower.
  1979. .IP "\fBanmr\fR" 4
  1980. .IX Item "anmr"
  1981. Average noise to mask ratio (\s-1ANMR\s0) trellis-based solution.
  1982. .Sp
  1983. This has a theoretic best quality out of all the coding methods, but at the
  1984. cost of the slowest speed.
  1985. .IP "\fBtwoloop\fR" 4
  1986. .IX Item "twoloop"
  1987. Two loop searching (\s-1TLS\s0) method.
  1988. .Sp
  1989. This method first sets quantizers depending on band thresholds and then tries
  1990. to find an optimal combination by adding or subtracting a specific value from
  1991. all quantizers and adjusting some individual quantizer a little.
  1992. .Sp
  1993. This method produces similar quality with the \s-1FAAC\s0 method and is the default.
  1994. .IP "\fBfast\fR" 4
  1995. .IX Item "fast"
  1996. Constant quantizer method.
  1997. .Sp
  1998. This method sets a constant quantizer for all bands. This is the fastest of all
  1999. the methods, yet produces the worst quality.
  2000. .RE
  2001. .RS 4
  2002. .RE
  2003. .Sh "ac3 and ac3_fixed"
  2004. .IX Subsection "ac3 and ac3_fixed"
  2005. \&\s-1AC\-3\s0 audio encoders.
  2006. .PP
  2007. These encoders implement part of \s-1ATSC\s0 A/52:2010 and \s-1ETSI\s0 \s-1TS\s0 102 366, as well as
  2008. the undocumented RealAudio 3 (a.k.a. dnet).
  2009. .PP
  2010. The \fIac3\fR encoder uses floating-point math, while the \fIac3_fixed\fR
  2011. encoder only uses fixed-point integer math. This does not mean that one is
  2012. always faster, just that one or the other may be better suited to a
  2013. particular system. The floating-point encoder will generally produce better
  2014. quality audio for a given bitrate. The \fIac3_fixed\fR encoder is not the
  2015. default codec for any of the output formats, so it must be specified explicitly
  2016. using the option \f(CW\*(C`\-acodec ac3_fixed\*(C'\fR in order to use it.
  2017. .PP
  2018. \fI\s-1AC\-3\s0 Metadata\fR
  2019. .IX Subsection "AC-3 Metadata"
  2020. .PP
  2021. The \s-1AC\-3\s0 metadata options are used to set parameters that describe the audio,
  2022. but in most cases do not affect the audio encoding itself. Some of the options
  2023. do directly affect or influence the decoding and playback of the resulting
  2024. bitstream, while others are just for informational purposes. A few of the
  2025. options will add bits to the output stream that could otherwise be used for
  2026. audio data, and will thus affect the quality of the output. Those will be
  2027. indicated accordingly with a note in the option list below.
  2028. .PP
  2029. These parameters are described in detail in several publicly-available
  2030. documents.
  2031. .IP "*<<\fBhttp://www.atsc.org/cms/standards/a_52\-2010.pdf\fR>>" 4
  2032. .IX Item "*<<http://www.atsc.org/cms/standards/a_52-2010.pdf>>"
  2033. .PD 0
  2034. .IP "*<<\fBhttp://www.atsc.org/cms/standards/a_54a_with_corr_1.pdf\fR>>" 4
  2035. .IX Item "*<<http://www.atsc.org/cms/standards/a_54a_with_corr_1.pdf>>"
  2036. .IP "*<<\fBhttp://www.dolby.com/uploadedFiles/zz\-_Shared_Assets/English_PDFs/Professional/18_Metadata.Guide.pdf\fR>>" 4
  2037. .IX Item "*<<http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/18_Metadata.Guide.pdf>>"
  2038. .IP "*<<\fBhttp://www.dolby.com/uploadedFiles/zz\-_Shared_Assets/English_PDFs/Professional/46_DDEncodingGuidelines.pdf\fR>>" 4
  2039. .IX Item "*<<http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/46_DDEncodingGuidelines.pdf>>"
  2040. .PD
  2041. .PP
  2042. Metadata Control Options
  2043. .IX Subsection "Metadata Control Options"
  2044. .IP "\fB\-per_frame_metadata\fR \fIboolean\fR" 4
  2045. .IX Item "-per_frame_metadata boolean"
  2046. Allow Per-Frame Metadata. Specifies if the encoder should check for changing
  2047. metadata for each frame.
  2048. .RS 4
  2049. .IP "\fB0\fR" 4
  2050. .IX Item "0"
  2051. The metadata values set at initialization will be used for every frame in the
  2052. stream. (default)
  2053. .IP "\fB1\fR" 4
  2054. .IX Item "1"
  2055. Metadata values can be changed before encoding each frame.
  2056. .RE
  2057. .RS 4
  2058. .RE
  2059. .PP
  2060. Downmix Levels
  2061. .IX Subsection "Downmix Levels"
  2062. .IP "\fB\-center_mixlev\fR \fIlevel\fR" 4
  2063. .IX Item "-center_mixlev level"
  2064. Center Mix Level. The amount of gain the decoder should apply to the center
  2065. channel when downmixing to stereo. This field will only be written to the
  2066. bitstream if a center channel is present. The value is specified as a scale
  2067. factor. There are 3 valid values:
  2068. .RS 4
  2069. .IP "\fB0.707\fR" 4
  2070. .IX Item "0.707"
  2071. Apply \-3dB gain
  2072. .IP "\fB0.595\fR" 4
  2073. .IX Item "0.595"
  2074. Apply \-4.5dB gain (default)
  2075. .IP "\fB0.500\fR" 4
  2076. .IX Item "0.500"
  2077. Apply \-6dB gain
  2078. .RE
  2079. .RS 4
  2080. .RE
  2081. .IP "\fB\-surround_mixlev\fR \fIlevel\fR" 4
  2082. .IX Item "-surround_mixlev level"
  2083. Surround Mix Level. The amount of gain the decoder should apply to the surround
  2084. channel(s) when downmixing to stereo. This field will only be written to the
  2085. bitstream if one or more surround channels are present. The value is specified
  2086. as a scale factor.  There are 3 valid values:
  2087. .RS 4
  2088. .IP "\fB0.707\fR" 4
  2089. .IX Item "0.707"
  2090. Apply \-3dB gain
  2091. .IP "\fB0.500\fR" 4
  2092. .IX Item "0.500"
  2093. Apply \-6dB gain (default)
  2094. .IP "\fB0.000\fR" 4
  2095. .IX Item "0.000"
  2096. Silence Surround Channel(s)
  2097. .RE
  2098. .RS 4
  2099. .RE
  2100. .PP
  2101. Audio Production Information
  2102. .IX Subsection "Audio Production Information"
  2103. .PP
  2104. Audio Production Information is optional information describing the mixing
  2105. environment.  Either none or both of the fields are written to the bitstream.
  2106. .IP "\fB\-mixing_level\fR \fInumber\fR" 4
  2107. .IX Item "-mixing_level number"
  2108. Mixing Level. Specifies peak sound pressure level (\s-1SPL\s0) in the production
  2109. environment when the mix was mastered. Valid values are 80 to 111, or \-1 for
  2110. unknown or not indicated. The default value is \-1, but that value cannot be
  2111. used if the Audio Production Information is written to the bitstream. Therefore,
  2112. if the \f(CW\*(C`room_type\*(C'\fR option is not the default value, the \f(CW\*(C`mixing_level\*(C'\fR
  2113. option must not be \-1.
  2114. .IP "\fB\-room_type\fR \fItype\fR" 4
  2115. .IX Item "-room_type type"
  2116. Room Type. Describes the equalization used during the final mixing session at
  2117. the studio or on the dubbing stage. A large room is a dubbing stage with the
  2118. industry standard X\-curve equalization; a small room has flat equalization.
  2119. This field will not be written to the bitstream if both the \f(CW\*(C`mixing_level\*(C'\fR
  2120. option and the \f(CW\*(C`room_type\*(C'\fR option have the default values.
  2121. .RS 4
  2122. .IP "\fB0\fR" 4
  2123. .IX Item "0"
  2124. .PD 0
  2125. .IP "\fBnotindicated\fR" 4
  2126. .IX Item "notindicated"
  2127. .PD
  2128. Not Indicated (default)
  2129. .IP "\fB1\fR" 4
  2130. .IX Item "1"
  2131. .PD 0
  2132. .IP "\fBlarge\fR" 4
  2133. .IX Item "large"
  2134. .PD
  2135. Large Room
  2136. .IP "\fB2\fR" 4
  2137. .IX Item "2"
  2138. .PD 0
  2139. .IP "\fBsmall\fR" 4
  2140. .IX Item "small"
  2141. .PD
  2142. Small Room
  2143. .RE
  2144. .RS 4
  2145. .RE
  2146. .PP
  2147. Other Metadata Options
  2148. .IX Subsection "Other Metadata Options"
  2149. .IP "\fB\-copyright\fR \fIboolean\fR" 4
  2150. .IX Item "-copyright boolean"
  2151. Copyright Indicator. Specifies whether a copyright exists for this audio.
  2152. .RS 4
  2153. .IP "\fB0\fR" 4
  2154. .IX Item "0"
  2155. .PD 0
  2156. .IP "\fBoff\fR" 4
  2157. .IX Item "off"
  2158. .PD
  2159. No Copyright Exists (default)
  2160. .IP "\fB1\fR" 4
  2161. .IX Item "1"
  2162. .PD 0
  2163. .IP "\fBon\fR" 4
  2164. .IX Item "on"
  2165. .PD
  2166. Copyright Exists
  2167. .RE
  2168. .RS 4
  2169. .RE
  2170. .IP "\fB\-dialnorm\fR \fIvalue\fR" 4
  2171. .IX Item "-dialnorm value"
  2172. Dialogue Normalization. Indicates how far the average dialogue level of the
  2173. program is below digital 100% full scale (0 dBFS). This parameter determines a
  2174. level shift during audio reproduction that sets the average volume of the
  2175. dialogue to a preset level. The goal is to match volume level between program
  2176. sources. A value of \-31dB will result in no volume level change, relative to
  2177. the source volume, during audio reproduction. Valid values are whole numbers in
  2178. the range \-31 to \-1, with \-31 being the default.
  2179. .IP "\fB\-dsur_mode\fR \fImode\fR" 4
  2180. .IX Item "-dsur_mode mode"
  2181. Dolby Surround Mode. Specifies whether the stereo signal uses Dolby Surround
  2182. (Pro Logic). This field will only be written to the bitstream if the audio
  2183. stream is stereo. Using this option does \fB\s-1NOT\s0\fR mean the encoder will actually
  2184. apply Dolby Surround processing.
  2185. .RS 4
  2186. .IP "\fB0\fR" 4
  2187. .IX Item "0"
  2188. .PD 0
  2189. .IP "\fBnotindicated\fR" 4
  2190. .IX Item "notindicated"
  2191. .PD
  2192. Not Indicated (default)
  2193. .IP "\fB1\fR" 4
  2194. .IX Item "1"
  2195. .PD 0
  2196. .IP "\fBoff\fR" 4
  2197. .IX Item "off"
  2198. .PD
  2199. Not Dolby Surround Encoded
  2200. .IP "\fB2\fR" 4
  2201. .IX Item "2"
  2202. .PD 0
  2203. .IP "\fBon\fR" 4
  2204. .IX Item "on"
  2205. .PD
  2206. Dolby Surround Encoded
  2207. .RE
  2208. .RS 4
  2209. .RE
  2210. .IP "\fB\-original\fR \fIboolean\fR" 4
  2211. .IX Item "-original boolean"
  2212. Original Bit Stream Indicator. Specifies whether this audio is from the
  2213. original source and not a copy.
  2214. .RS 4
  2215. .IP "\fB0\fR" 4
  2216. .IX Item "0"
  2217. .PD 0
  2218. .IP "\fBoff\fR" 4
  2219. .IX Item "off"
  2220. .PD
  2221. Not Original Source
  2222. .IP "\fB1\fR" 4
  2223. .IX Item "1"
  2224. .PD 0
  2225. .IP "\fBon\fR" 4
  2226. .IX Item "on"
  2227. .PD
  2228. Original Source (default)
  2229. .RE
  2230. .RS 4
  2231. .RE
  2232. .PP
  2233. \fIExtended Bitstream Information\fR
  2234. .IX Subsection "Extended Bitstream Information"
  2235. .PP
  2236. The extended bitstream options are part of the Alternate Bit Stream Syntax as
  2237. specified in Annex D of the A/52:2010 standard. It is grouped into 2 parts.
  2238. If any one parameter in a group is specified, all values in that group will be
  2239. written to the bitstream.  Default values are used for those that are written
  2240. but have not been specified.  If the mixing levels are written, the decoder
  2241. will use these values instead of the ones specified in the \f(CW\*(C`center_mixlev\*(C'\fR
  2242. and \f(CW\*(C`surround_mixlev\*(C'\fR options if it supports the Alternate Bit Stream
  2243. Syntax.
  2244. .PP
  2245. Extended Bitstream Information \- Part 1
  2246. .IX Subsection "Extended Bitstream Information - Part 1"
  2247. .IP "\fB\-dmix_mode\fR \fImode\fR" 4
  2248. .IX Item "-dmix_mode mode"
  2249. Preferred Stereo Downmix Mode. Allows the user to select either Lt/Rt
  2250. (Dolby Surround) or Lo/Ro (normal stereo) as the preferred stereo downmix mode.
  2251. .RS 4
  2252. .IP "\fB0\fR" 4
  2253. .IX Item "0"
  2254. .PD 0
  2255. .IP "\fBnotindicated\fR" 4
  2256. .IX Item "notindicated"
  2257. .PD
  2258. Not Indicated (default)
  2259. .IP "\fB1\fR" 4
  2260. .IX Item "1"
  2261. .PD 0
  2262. .IP "\fBltrt\fR" 4
  2263. .IX Item "ltrt"
  2264. .PD
  2265. Lt/Rt Downmix Preferred
  2266. .IP "\fB2\fR" 4
  2267. .IX Item "2"
  2268. .PD 0
  2269. .IP "\fBloro\fR" 4
  2270. .IX Item "loro"
  2271. .PD
  2272. Lo/Ro Downmix Preferred
  2273. .RE
  2274. .RS 4
  2275. .RE
  2276. .IP "\fB\-ltrt_cmixlev\fR \fIlevel\fR" 4
  2277. .IX Item "-ltrt_cmixlev level"
  2278. Lt/Rt Center Mix Level. The amount of gain the decoder should apply to the
  2279. center channel when downmixing to stereo in Lt/Rt mode.
  2280. .RS 4
  2281. .IP "\fB1.414\fR" 4
  2282. .IX Item "1.414"
  2283. Apply +3dB gain
  2284. .IP "\fB1.189\fR" 4
  2285. .IX Item "1.189"
  2286. Apply +1.5dB gain
  2287. .IP "\fB1.000\fR" 4
  2288. .IX Item "1.000"
  2289. Apply 0dB gain
  2290. .IP "\fB0.841\fR" 4
  2291. .IX Item "0.841"
  2292. Apply \-1.5dB gain
  2293. .IP "\fB0.707\fR" 4
  2294. .IX Item "0.707"
  2295. Apply \-3.0dB gain
  2296. .IP "\fB0.595\fR" 4
  2297. .IX Item "0.595"
  2298. Apply \-4.5dB gain (default)
  2299. .IP "\fB0.500\fR" 4
  2300. .IX Item "0.500"
  2301. Apply \-6.0dB gain
  2302. .IP "\fB0.000\fR" 4
  2303. .IX Item "0.000"
  2304. Silence Center Channel
  2305. .RE
  2306. .RS 4
  2307. .RE
  2308. .IP "\fB\-ltrt_surmixlev\fR \fIlevel\fR" 4
  2309. .IX Item "-ltrt_surmixlev level"
  2310. Lt/Rt Surround Mix Level. The amount of gain the decoder should apply to the
  2311. surround channel(s) when downmixing to stereo in Lt/Rt mode.
  2312. .RS 4
  2313. .IP "\fB0.841\fR" 4
  2314. .IX Item "0.841"
  2315. Apply \-1.5dB gain
  2316. .IP "\fB0.707\fR" 4
  2317. .IX Item "0.707"
  2318. Apply \-3.0dB gain
  2319. .IP "\fB0.595\fR" 4
  2320. .IX Item "0.595"
  2321. Apply \-4.5dB gain
  2322. .IP "\fB0.500\fR" 4
  2323. .IX Item "0.500"
  2324. Apply \-6.0dB gain (default)
  2325. .IP "\fB0.000\fR" 4
  2326. .IX Item "0.000"
  2327. Silence Surround Channel(s)
  2328. .RE
  2329. .RS 4
  2330. .RE
  2331. .IP "\fB\-loro_cmixlev\fR \fIlevel\fR" 4
  2332. .IX Item "-loro_cmixlev level"
  2333. Lo/Ro Center Mix Level. The amount of gain the decoder should apply to the
  2334. center channel when downmixing to stereo in Lo/Ro mode.
  2335. .RS 4
  2336. .IP "\fB1.414\fR" 4
  2337. .IX Item "1.414"
  2338. Apply +3dB gain
  2339. .IP "\fB1.189\fR" 4
  2340. .IX Item "1.189"
  2341. Apply +1.5dB gain
  2342. .IP "\fB1.000\fR" 4
  2343. .IX Item "1.000"
  2344. Apply 0dB gain
  2345. .IP "\fB0.841\fR" 4
  2346. .IX Item "0.841"
  2347. Apply \-1.5dB gain
  2348. .IP "\fB0.707\fR" 4
  2349. .IX Item "0.707"
  2350. Apply \-3.0dB gain
  2351. .IP "\fB0.595\fR" 4
  2352. .IX Item "0.595"
  2353. Apply \-4.5dB gain (default)
  2354. .IP "\fB0.500\fR" 4
  2355. .IX Item "0.500"
  2356. Apply \-6.0dB gain
  2357. .IP "\fB0.000\fR" 4
  2358. .IX Item "0.000"
  2359. Silence Center Channel
  2360. .RE
  2361. .RS 4
  2362. .RE
  2363. .IP "\fB\-loro_surmixlev\fR \fIlevel\fR" 4
  2364. .IX Item "-loro_surmixlev level"
  2365. Lo/Ro Surround Mix Level. The amount of gain the decoder should apply to the
  2366. surround channel(s) when downmixing to stereo in Lo/Ro mode.
  2367. .RS 4
  2368. .IP "\fB0.841\fR" 4
  2369. .IX Item "0.841"
  2370. Apply \-1.5dB gain
  2371. .IP "\fB0.707\fR" 4
  2372. .IX Item "0.707"
  2373. Apply \-3.0dB gain
  2374. .IP "\fB0.595\fR" 4
  2375. .IX Item "0.595"
  2376. Apply \-4.5dB gain
  2377. .IP "\fB0.500\fR" 4
  2378. .IX Item "0.500"
  2379. Apply \-6.0dB gain (default)
  2380. .IP "\fB0.000\fR" 4
  2381. .IX Item "0.000"
  2382. Silence Surround Channel(s)
  2383. .RE
  2384. .RS 4
  2385. .RE
  2386. .PP
  2387. Extended Bitstream Information \- Part 2
  2388. .IX Subsection "Extended Bitstream Information - Part 2"
  2389. .IP "\fB\-dsurex_mode\fR \fImode\fR" 4
  2390. .IX Item "-dsurex_mode mode"
  2391. Dolby Surround \s-1EX\s0 Mode. Indicates whether the stream uses Dolby Surround \s-1EX\s0
  2392. (7.1 matrixed to 5.1). Using this option does \fB\s-1NOT\s0\fR mean the encoder will actually
  2393. apply Dolby Surround \s-1EX\s0 processing.
  2394. .RS 4
  2395. .IP "\fB0\fR" 4
  2396. .IX Item "0"
  2397. .PD 0
  2398. .IP "\fBnotindicated\fR" 4
  2399. .IX Item "notindicated"
  2400. .PD
  2401. Not Indicated (default)
  2402. .IP "\fB1\fR" 4
  2403. .IX Item "1"
  2404. .PD 0
  2405. .IP "\fBon\fR" 4
  2406. .IX Item "on"
  2407. .PD
  2408. Dolby Surround \s-1EX\s0 Off
  2409. .IP "\fB2\fR" 4
  2410. .IX Item "2"
  2411. .PD 0
  2412. .IP "\fBoff\fR" 4
  2413. .IX Item "off"
  2414. .PD
  2415. Dolby Surround \s-1EX\s0 On
  2416. .RE
  2417. .RS 4
  2418. .RE
  2419. .IP "\fB\-dheadphone_mode\fR \fImode\fR" 4
  2420. .IX Item "-dheadphone_mode mode"
  2421. Dolby Headphone Mode. Indicates whether the stream uses Dolby Headphone
  2422. encoding (multi\-channel matrixed to 2.0 for use with headphones). Using this
  2423. option does \fB\s-1NOT\s0\fR mean the encoder will actually apply Dolby Headphone
  2424. processing.
  2425. .RS 4
  2426. .IP "\fB0\fR" 4
  2427. .IX Item "0"
  2428. .PD 0
  2429. .IP "\fBnotindicated\fR" 4
  2430. .IX Item "notindicated"
  2431. .PD
  2432. Not Indicated (default)
  2433. .IP "\fB1\fR" 4
  2434. .IX Item "1"
  2435. .PD 0
  2436. .IP "\fBon\fR" 4
  2437. .IX Item "on"
  2438. .PD
  2439. Dolby Headphone Off
  2440. .IP "\fB2\fR" 4
  2441. .IX Item "2"
  2442. .PD 0
  2443. .IP "\fBoff\fR" 4
  2444. .IX Item "off"
  2445. .PD
  2446. Dolby Headphone On
  2447. .RE
  2448. .RS 4
  2449. .RE
  2450. .IP "\fB\-ad_conv_type\fR \fItype\fR" 4
  2451. .IX Item "-ad_conv_type type"
  2452. A/D Converter Type. Indicates whether the audio has passed through \s-1HDCD\s0 A/D
  2453. conversion.
  2454. .RS 4
  2455. .IP "\fB0\fR" 4
  2456. .IX Item "0"
  2457. .PD 0
  2458. .IP "\fBstandard\fR" 4
  2459. .IX Item "standard"
  2460. .PD
  2461. Standard A/D Converter (default)
  2462. .IP "\fB1\fR" 4
  2463. .IX Item "1"
  2464. .PD 0
  2465. .IP "\fBhdcd\fR" 4
  2466. .IX Item "hdcd"
  2467. .PD
  2468. \&\s-1HDCD\s0 A/D Converter
  2469. .RE
  2470. .RS 4
  2471. .RE
  2472. .PP
  2473. \fIOther \s-1AC\-3\s0 Encoding Options\fR
  2474. .IX Subsection "Other AC-3 Encoding Options"
  2475. .IP "\fB\-stereo_rematrixing\fR \fIboolean\fR" 4
  2476. .IX Item "-stereo_rematrixing boolean"
  2477. Stereo Rematrixing. Enables/Disables use of rematrixing for stereo input. This
  2478. is an optional \s-1AC\-3\s0 feature that increases quality by selectively encoding
  2479. the left/right channels as mid/side. This option is enabled by default, and it
  2480. is highly recommended that it be left as enabled except for testing purposes.
  2481. .PP
  2482. \fIFloating-Point-Only \s-1AC\-3\s0 Encoding Options\fR
  2483. .IX Subsection "Floating-Point-Only AC-3 Encoding Options"
  2484. .PP
  2485. These options are only valid for the floating-point encoder and do not exist
  2486. for the fixed-point encoder due to the corresponding features not being
  2487. implemented in fixed\-point.
  2488. .IP "\fB\-channel_coupling\fR \fIboolean\fR" 4
  2489. .IX Item "-channel_coupling boolean"
  2490. Enables/Disables use of channel coupling, which is an optional \s-1AC\-3\s0 feature
  2491. that increases quality by combining high frequency information from multiple
  2492. channels into a single channel. The per-channel high frequency information is
  2493. sent with less accuracy in both the frequency and time domains. This allows
  2494. more bits to be used for lower frequencies while preserving enough information
  2495. to reconstruct the high frequencies. This option is enabled by default for the
  2496. floating-point encoder and should generally be left as enabled except for
  2497. testing purposes or to increase encoding speed.
  2498. .RS 4
  2499. .IP "\fB\-1\fR" 4
  2500. .IX Item "-1"
  2501. .PD 0
  2502. .IP "\fBauto\fR" 4
  2503. .IX Item "auto"
  2504. .PD
  2505. Selected by Encoder (default)
  2506. .IP "\fB0\fR" 4
  2507. .IX Item "0"
  2508. .PD 0
  2509. .IP "\fBoff\fR" 4
  2510. .IX Item "off"
  2511. .PD
  2512. Disable Channel Coupling
  2513. .IP "\fB1\fR" 4
  2514. .IX Item "1"
  2515. .PD 0
  2516. .IP "\fBon\fR" 4
  2517. .IX Item "on"
  2518. .PD
  2519. Enable Channel Coupling
  2520. .RE
  2521. .RS 4
  2522. .RE
  2523. .IP "\fB\-cpl_start_band\fR \fInumber\fR" 4
  2524. .IX Item "-cpl_start_band number"
  2525. Coupling Start Band. Sets the channel coupling start band, from 1 to 15. If a
  2526. value higher than the bandwidth is used, it will be reduced to 1 less than the
  2527. coupling end band. If \fIauto\fR is used, the start band will be determined by
  2528. the encoder based on the bit rate, sample rate, and channel layout. This option
  2529. has no effect if channel coupling is disabled.
  2530. .RS 4
  2531. .IP "\fB\-1\fR" 4
  2532. .IX Item "-1"
  2533. .PD 0
  2534. .IP "\fBauto\fR" 4
  2535. .IX Item "auto"
  2536. .PD
  2537. Selected by Encoder (default)
  2538. .RE
  2539. .RS 4
  2540. .RE
  2541. .Sh "flac"
  2542. .IX Subsection "flac"
  2543. \&\s-1FLAC\s0 (Free Lossless Audio Codec) Encoder
  2544. .PP
  2545. \fIOptions\fR
  2546. .IX Subsection "Options"
  2547. .PP
  2548. The following options are supported by FFmpeg's flac encoder.
  2549. .IP "\fBcompression_level\fR" 4
  2550. .IX Item "compression_level"
  2551. Sets the compression level, which chooses defaults for many other options
  2552. if they are not set explicitly.
  2553. .IP "\fBframe_size\fR" 4
  2554. .IX Item "frame_size"
  2555. Sets the size of the frames in samples per channel.
  2556. .IP "\fBlpc_coeff_precision\fR" 4
  2557. .IX Item "lpc_coeff_precision"
  2558. Sets the \s-1LPC\s0 coefficient precision, valid values are from 1 to 15, 15 is the
  2559. default.
  2560. .IP "\fBlpc_type\fR" 4
  2561. .IX Item "lpc_type"
  2562. Sets the first stage \s-1LPC\s0 algorithm
  2563. .RS 4
  2564. .IP "\fBnone\fR" 4
  2565. .IX Item "none"
  2566. \&\s-1LPC\s0 is not used
  2567. .IP "\fBfixed\fR" 4
  2568. .IX Item "fixed"
  2569. fixed \s-1LPC\s0 coefficients
  2570. .IP "\fBlevinson\fR" 4
  2571. .IX Item "levinson"
  2572. .PD 0
  2573. .IP "\fBcholesky\fR" 4
  2574. .IX Item "cholesky"
  2575. .RE
  2576. .RS 4
  2577. .RE
  2578. .IP "\fBlpc_passes\fR" 4
  2579. .IX Item "lpc_passes"
  2580. .PD
  2581. Number of passes to use for Cholesky factorization during \s-1LPC\s0 analysis
  2582. .IP "\fBmin_partition_order\fR" 4
  2583. .IX Item "min_partition_order"
  2584. The minimum partition order
  2585. .IP "\fBmax_partition_order\fR" 4
  2586. .IX Item "max_partition_order"
  2587. The maximum partition order
  2588. .IP "\fBprediction_order_method\fR" 4
  2589. .IX Item "prediction_order_method"
  2590. .RS 4
  2591. .PD 0
  2592. .IP "\fBestimation\fR" 4
  2593. .IX Item "estimation"
  2594. .IP "\fB2level\fR" 4
  2595. .IX Item "2level"
  2596. .IP "\fB4level\fR" 4
  2597. .IX Item "4level"
  2598. .IP "\fB8level\fR" 4
  2599. .IX Item "8level"
  2600. .IP "\fBsearch\fR" 4
  2601. .IX Item "search"
  2602. .PD
  2603. Bruteforce search
  2604. .IP "\fBlog\fR" 4
  2605. .IX Item "log"
  2606. .RE
  2607. .RS 4
  2608. .RE
  2609. .PD 0
  2610. .IP "\fBch_mode\fR" 4
  2611. .IX Item "ch_mode"
  2612. .PD
  2613. Channel mode
  2614. .RS 4
  2615. .IP "\fBauto\fR" 4
  2616. .IX Item "auto"
  2617. The mode is chosen automatically for each frame
  2618. .IP "\fBindep\fR" 4
  2619. .IX Item "indep"
  2620. Chanels are independently coded
  2621. .IP "\fBleft_side\fR" 4
  2622. .IX Item "left_side"
  2623. .PD 0
  2624. .IP "\fBright_side\fR" 4
  2625. .IX Item "right_side"
  2626. .IP "\fBmid_side\fR" 4
  2627. .IX Item "mid_side"
  2628. .RE
  2629. .RS 4
  2630. .RE
  2631. .IP "\fBexact_rice_parameters\fR" 4
  2632. .IX Item "exact_rice_parameters"
  2633. .PD
  2634. Chooses if rice parameters are calculated exactly or approximately.
  2635. if set to 1 then they are chosen exactly, which slows the code down slightly and
  2636. improves compression slightly.
  2637. .IP "\fBmulti_dim_quant\fR" 4
  2638. .IX Item "multi_dim_quant"
  2639. Multi Dimensional Quantization. If set to 1 then a 2nd stage \s-1LPC\s0 algorithm is
  2640. applied after the first stage to finetune the coefficients. This is quite slow
  2641. and slightly improves compression.
  2642. .Sh "libfaac"
  2643. .IX Subsection "libfaac"
  2644. libfaac \s-1AAC\s0 (Advanced Audio Coding) encoder wrapper.
  2645. .PP
  2646. Requires the presence of the libfaac headers and library during
  2647. configuration. You need to explicitly configure the build with
  2648. \&\f(CW\*(C`\-\-enable\-libfaac \-\-enable\-nonfree\*(C'\fR.
  2649. .PP
  2650. This encoder is considered to be of higher quality with respect to the
  2651. \&\fBthe native experimental FFmpeg \s-1AAC\s0 encoder\fR.
  2652. .PP
  2653. For more information see the libfaac project at
  2654. <\fBhttp://www.audiocoding.com/faac.html/\fR>.
  2655. .PP
  2656. \fIOptions\fR
  2657. .IX Subsection "Options"
  2658. .PP
  2659. The following shared FFmpeg codec options are recognized.
  2660. .PP
  2661. The following options are supported by the libfaac wrapper. The
  2662. \&\fBfaac\fR\-equivalent of the options are listed in parentheses.
  2663. .IP "\fBb (\fR\fI\-b\fR\fB)\fR" 4
  2664. .IX Item "b (-b)"
  2665. Set bit rate in bits/s for \s-1ABR\s0 (Average Bit Rate) mode. If the bit rate
  2666. is not explicitly specified, it is automatically set to a suitable
  2667. value depending on the selected profile. \fBfaac\fR bitrate is
  2668. expressed in kilobits/s.
  2669. .Sp
  2670. Note that libfaac does not support \s-1CBR\s0 (Constant Bit Rate) but only
  2671. \&\s-1ABR\s0 (Average Bit Rate).
  2672. .Sp
  2673. If \s-1VBR\s0 mode is enabled this option is ignored.
  2674. .IP "\fBar (\fR\fI\-R\fR\fB)\fR" 4
  2675. .IX Item "ar (-R)"
  2676. Set audio sampling rate (in Hz).
  2677. .IP "\fBac (\fR\fI\-c\fR\fB)\fR" 4
  2678. .IX Item "ac (-c)"
  2679. Set the number of audio channels.
  2680. .IP "\fBcutoff (\fR\fI\-C\fR\fB)\fR" 4
  2681. .IX Item "cutoff (-C)"
  2682. Set cutoff frequency. If not specified (or explicitly set to 0) it
  2683. will use a value automatically computed by the library. Default value
  2684. is 0.
  2685. .IP "\fBprofile\fR" 4
  2686. .IX Item "profile"
  2687. Set audio profile.
  2688. .Sp
  2689. The following profiles are recognized:
  2690. .RS 4
  2691. .IP "\fBaac_main\fR" 4
  2692. .IX Item "aac_main"
  2693. Main \s-1AAC\s0 (Main)
  2694. .IP "\fBaac_low\fR" 4
  2695. .IX Item "aac_low"
  2696. Low Complexity \s-1AAC\s0 (\s-1LC\s0)
  2697. .IP "\fBaac_ssr\fR" 4
  2698. .IX Item "aac_ssr"
  2699. Scalable Sample Rate (\s-1SSR\s0)
  2700. .IP "\fBaac_ltp\fR" 4
  2701. .IX Item "aac_ltp"
  2702. Long Term Prediction (\s-1LTP\s0)
  2703. .RE
  2704. .RS 4
  2705. .Sp
  2706. If not specified it is set to \fBaac_low\fR.
  2707. .RE
  2708. .IP "\fBflags +qscale\fR" 4
  2709. .IX Item "flags +qscale"
  2710. Set constant quality \s-1VBR\s0 (Variable Bit Rate) mode.
  2711. .IP "\fBglobal_quality\fR" 4
  2712. .IX Item "global_quality"
  2713. Set quality in \s-1VBR\s0 mode as an integer number of lambda units.
  2714. .Sp
  2715. Only relevant when \s-1VBR\s0 mode is enabled with \f(CW\*(C`flags +qscale\*(C'\fR.  The
  2716. value is converted to \s-1QP\s0 units by dividing it by \f(CW\*(C`FF_QP2LAMBDA\*(C'\fR,
  2717. and used to set the quality value used by libfaac. A reasonable range
  2718. for the option value in \s-1QP\s0 units is [10\-500], the higher the value the
  2719. higher the quality.
  2720. .IP "\fBq (\fR\fI\-q\fR\fB)\fR" 4
  2721. .IX Item "q (-q)"
  2722. Enable \s-1VBR\s0 mode when set to a non-negative value, and set constant
  2723. quality value as a double floating point value in \s-1QP\s0 units.
  2724. .Sp
  2725. The value sets the quality value used by libfaac. A reasonable range
  2726. for the option value is [10\-500], the higher the value the higher the
  2727. quality.
  2728. .Sp
  2729. This option is valid only using the \fBffmpeg\fR command-line
  2730. tool. For library interface users, use \fBglobal_quality\fR.
  2731. .PP
  2732. \fIExamples\fR
  2733. .IX Subsection "Examples"
  2734. .IP "\(bu" 4
  2735. Use \fBffmpeg\fR to convert an audio file to \s-1ABR\s0 128 kbps \s-1AAC\s0 in an M4A (\s-1MP4\s0)
  2736. container:
  2737. .Sp
  2738. .Vb 1
  2739. \&        ffmpeg -i input.wav -codec:a libfaac -b:a 128k -output.m4a
  2740. .Ve
  2741. .IP "\(bu" 4
  2742. Use \fBffmpeg\fR to convert an audio file to \s-1VBR\s0 \s-1AAC\s0, using the
  2743. \&\s-1LTP\s0 \s-1AAC\s0 profile:
  2744. .Sp
  2745. .Vb 1
  2746. \&        ffmpeg -i input.wav -c:a libfaac -profile:a aac_ltp -q:a 100 output.m4a
  2747. .Ve
  2748. .Sh "libfdk_aac"
  2749. .IX Subsection "libfdk_aac"
  2750. libfdk-aac \s-1AAC\s0 (Advanced Audio Coding) encoder wrapper.
  2751. .PP
  2752. The libfdk-aac library is based on the Fraunhofer \s-1FDK\s0 \s-1AAC\s0 code from
  2753. the Android project.
  2754. .PP
  2755. Requires the presence of the libfdk-aac headers and library during
  2756. configuration. You need to explicitly configure the build with
  2757. \&\f(CW\*(C`\-\-enable\-libfdk\-aac\*(C'\fR. The library is also incompatible with \s-1GPL\s0,
  2758. so if you allow the use of \s-1GPL\s0, you should configure with
  2759. \&\f(CW\*(C`\-\-enable\-gpl \-\-enable\-nonfree \-\-enable\-libfdk\-aac\*(C'\fR.
  2760. .PP
  2761. This encoder is considered to be of higher quality with respect to
  2762. both \fBthe native experimental FFmpeg \s-1AAC\s0 encoder\fR and
  2763. \&\fBlibfaac\fR.
  2764. .PP
  2765. \&\s-1VBR\s0 encoding, enabled through the \fBvbr\fR or \fBflags
  2766. +qscale\fR options, is experimental and only works with some
  2767. combinations of parameters.
  2768. .PP
  2769. Support for encoding 7.1 audio is only available with libfdk-aac 0.1.3 or
  2770. higher.
  2771. .PP
  2772. For more information see the fdk-aac project at
  2773. <\fBhttp://sourceforge.net/p/opencore\-amr/fdk\-aac/\fR>.
  2774. .PP
  2775. \fIOptions\fR
  2776. .IX Subsection "Options"
  2777. .PP
  2778. The following options are mapped on the shared FFmpeg codec options.
  2779. .IP "\fBb\fR" 4
  2780. .IX Item "b"
  2781. Set bit rate in bits/s. If the bitrate is not explicitly specified, it
  2782. is automatically set to a suitable value depending on the selected
  2783. profile.
  2784. .Sp
  2785. In case \s-1VBR\s0 mode is enabled the option is ignored.
  2786. .IP "\fBar\fR" 4
  2787. .IX Item "ar"
  2788. Set audio sampling rate (in Hz).
  2789. .IP "\fBchannels\fR" 4
  2790. .IX Item "channels"
  2791. Set the number of audio channels.
  2792. .IP "\fBflags +qscale\fR" 4
  2793. .IX Item "flags +qscale"
  2794. Enable fixed quality, \s-1VBR\s0 (Variable Bit Rate) mode.
  2795. Note that \s-1VBR\s0 is implicitly enabled when the \fBvbr\fR value is
  2796. positive.
  2797. .IP "\fBcutoff\fR" 4
  2798. .IX Item "cutoff"
  2799. Set cutoff frequency. If not specified (or explicitly set to 0) it
  2800. will use a value automatically computed by the library. Default value
  2801. is 0.
  2802. .IP "\fBprofile\fR" 4
  2803. .IX Item "profile"
  2804. Set audio profile.
  2805. .Sp
  2806. The following profiles are recognized:
  2807. .RS 4
  2808. .IP "\fBaac_low\fR" 4
  2809. .IX Item "aac_low"
  2810. Low Complexity \s-1AAC\s0 (\s-1LC\s0)
  2811. .IP "\fBaac_he\fR" 4
  2812. .IX Item "aac_he"
  2813. High Efficiency \s-1AAC\s0 (\s-1HE\-AAC\s0)
  2814. .IP "\fBaac_he_v2\fR" 4
  2815. .IX Item "aac_he_v2"
  2816. High Efficiency \s-1AAC\s0 version 2 (HE\-AACv2)
  2817. .IP "\fBaac_ld\fR" 4
  2818. .IX Item "aac_ld"
  2819. Low Delay \s-1AAC\s0 (\s-1LD\s0)
  2820. .IP "\fBaac_eld\fR" 4
  2821. .IX Item "aac_eld"
  2822. Enhanced Low Delay \s-1AAC\s0 (\s-1ELD\s0)
  2823. .RE
  2824. .RS 4
  2825. .Sp
  2826. If not specified it is set to \fBaac_low\fR.
  2827. .RE
  2828. .PP
  2829. The following are private options of the libfdk_aac encoder.
  2830. .IP "\fBafterburner\fR" 4
  2831. .IX Item "afterburner"
  2832. Enable afterburner feature if set to 1, disabled if set to 0. This
  2833. improves the quality but also the required processing power.
  2834. .Sp
  2835. Default value is 1.
  2836. .IP "\fBeld_sbr\fR" 4
  2837. .IX Item "eld_sbr"
  2838. Enable \s-1SBR\s0 (Spectral Band Replication) for \s-1ELD\s0 if set to 1, disabled
  2839. if set to 0.
  2840. .Sp
  2841. Default value is 0.
  2842. .IP "\fBsignaling\fR" 4
  2843. .IX Item "signaling"
  2844. Set \s-1SBR/PS\s0 signaling style.
  2845. .Sp
  2846. It can assume one of the following values:
  2847. .RS 4
  2848. .IP "\fBdefault\fR" 4
  2849. .IX Item "default"
  2850. choose signaling implicitly (explicit hierarchical by default,
  2851. implicit if global header is disabled)
  2852. .IP "\fBimplicit\fR" 4
  2853. .IX Item "implicit"
  2854. implicit backwards compatible signaling
  2855. .IP "\fBexplicit_sbr\fR" 4
  2856. .IX Item "explicit_sbr"
  2857. explicit \s-1SBR\s0, implicit \s-1PS\s0 signaling
  2858. .IP "\fBexplicit_hierarchical\fR" 4
  2859. .IX Item "explicit_hierarchical"
  2860. explicit hierarchical signaling
  2861. .RE
  2862. .RS 4
  2863. .Sp
  2864. Default value is \fBdefault\fR.
  2865. .RE
  2866. .IP "\fBlatm\fR" 4
  2867. .IX Item "latm"
  2868. Output \s-1LATM/LOAS\s0 encapsulated data if set to 1, disabled if set to 0.
  2869. .Sp
  2870. Default value is 0.
  2871. .IP "\fBheader_period\fR" 4
  2872. .IX Item "header_period"
  2873. Set StreamMuxConfig and \s-1PCE\s0 repetition period (in frames) for sending
  2874. in-band configuration buffers within \s-1LATM/LOAS\s0 transport layer.
  2875. .Sp
  2876. Must be a 16\-bits non-negative integer.
  2877. .Sp
  2878. Default value is 0.
  2879. .IP "\fBvbr\fR" 4
  2880. .IX Item "vbr"
  2881. Set \s-1VBR\s0 mode, from 1 to 5. 1 is lowest quality (though still pretty
  2882. good) and 5 is highest quality. A value of 0 will disable \s-1VBR\s0, and \s-1CBR\s0
  2883. (Constant Bit Rate) is enabled.
  2884. .Sp
  2885. Currently only the \fBaac_low\fR profile supports \s-1VBR\s0 encoding.
  2886. .Sp
  2887. \&\s-1VBR\s0 modes 1\-5 correspond to roughly the following average bit rates:
  2888. .RS 4
  2889. .IP "\fB1\fR" 4
  2890. .IX Item "1"
  2891. 32 kbps/channel
  2892. .IP "\fB2\fR" 4
  2893. .IX Item "2"
  2894. 40 kbps/channel
  2895. .IP "\fB3\fR" 4
  2896. .IX Item "3"
  2897. 48\-56 kbps/channel
  2898. .IP "\fB4\fR" 4
  2899. .IX Item "4"
  2900. 64 kbps/channel
  2901. .IP "\fB5\fR" 4
  2902. .IX Item "5"
  2903. about 80\-96 kbps/channel
  2904. .RE
  2905. .RS 4
  2906. .Sp
  2907. Default value is 0.
  2908. .RE
  2909. .PP
  2910. \fIExamples\fR
  2911. .IX Subsection "Examples"
  2912. .IP "\(bu" 4
  2913. Use \fBffmpeg\fR to convert an audio file to \s-1VBR\s0 \s-1AAC\s0 in an M4A (\s-1MP4\s0)
  2914. container:
  2915. .Sp
  2916. .Vb 1
  2917. \&        ffmpeg -i input.wav -codec:a libfdk_aac -vbr 3 output.m4a
  2918. .Ve
  2919. .IP "\(bu" 4
  2920. Use \fBffmpeg\fR to convert an audio file to \s-1CBR\s0 64k kbps \s-1AAC\s0, using the
  2921. High-Efficiency \s-1AAC\s0 profile:
  2922. .Sp
  2923. .Vb 1
  2924. \&        ffmpeg -i input.wav -c:a libfdk_aac -profile:a aac_he -b:a 64k output.m4a
  2925. .Ve
  2926. .Sh "libmp3lame"
  2927. .IX Subsection "libmp3lame"
  2928. \&\s-1LAME\s0 (Lame Ain't an \s-1MP3\s0 Encoder) \s-1MP3\s0 encoder wrapper.
  2929. .PP
  2930. Requires the presence of the libmp3lame headers and library during
  2931. configuration. You need to explicitly configure the build with
  2932. \&\f(CW\*(C`\-\-enable\-libmp3lame\*(C'\fR.
  2933. .PP
  2934. See \fBlibshine\fR for a fixed-point \s-1MP3\s0 encoder, although with a
  2935. lower quality.
  2936. .PP
  2937. \fIOptions\fR
  2938. .IX Subsection "Options"
  2939. .PP
  2940. The following options are supported by the libmp3lame wrapper. The
  2941. \&\fBlame\fR\-equivalent of the options are listed in parentheses.
  2942. .IP "\fBb (\fR\fI\-b\fR\fB)\fR" 4
  2943. .IX Item "b (-b)"
  2944. Set bitrate expressed in bits/s for \s-1CBR\s0 or \s-1ABR\s0. \s-1LAME\s0 \f(CW\*(C`bitrate\*(C'\fR is
  2945. expressed in kilobits/s.
  2946. .IP "\fBq (\fR\fI\-V\fR\fB)\fR" 4
  2947. .IX Item "q (-V)"
  2948. Set constant quality setting for \s-1VBR\s0. This option is valid only
  2949. using the \fBffmpeg\fR command-line tool. For library interface
  2950. users, use \fBglobal_quality\fR.
  2951. .IP "\fBcompression_level (\fR\fI\-q\fR\fB)\fR" 4
  2952. .IX Item "compression_level (-q)"
  2953. Set algorithm quality. Valid arguments are integers in the 0\-9 range,
  2954. with 0 meaning highest quality but slowest, and 9 meaning fastest
  2955. while producing the worst quality.
  2956. .IP "\fBreservoir\fR" 4
  2957. .IX Item "reservoir"
  2958. Enable use of bit reservoir when set to 1. Default value is 1. \s-1LAME\s0
  2959. has this enabled by default, but can be overridden by use
  2960. \&\fB\-\-nores\fR option.
  2961. .IP "\fBjoint_stereo (\fR\fI\-m j\fR\fB)\fR" 4
  2962. .IX Item "joint_stereo (-m j)"
  2963. Enable the encoder to use (on a frame by frame basis) either L/R
  2964. stereo or mid/side stereo. Default value is 1.
  2965. .IP "\fBabr (\fR\fI\-\-abr\fR\fB)\fR" 4
  2966. .IX Item "abr (--abr)"
  2967. Enable the encoder to use \s-1ABR\s0 when set to 1. The \fBlame\fR
  2968. \&\fB\-\-abr\fR sets the target bitrate, while this options only
  2969. tells FFmpeg to use \s-1ABR\s0 still relies on \fBb\fR to set bitrate.
  2970. .Sh "libopencore-amrnb"
  2971. .IX Subsection "libopencore-amrnb"
  2972. OpenCORE Adaptive Multi-Rate Narrowband encoder.
  2973. .PP
  2974. Requires the presence of the libopencore-amrnb headers and library during
  2975. configuration. You need to explicitly configure the build with
  2976. \&\f(CW\*(C`\-\-enable\-libopencore\-amrnb \-\-enable\-version3\*(C'\fR.
  2977. .PP
  2978. This is a mono-only encoder. Officially it only supports 8000Hz sample rate,
  2979. but you can override it by setting \fBstrict\fR to \fBunofficial\fR or
  2980. lower.
  2981. .PP
  2982. \fIOptions\fR
  2983. .IX Subsection "Options"
  2984. .IP "\fBb\fR" 4
  2985. .IX Item "b"
  2986. Set bitrate in bits per second. Only the following bitrates are supported,
  2987. otherwise libavcodec will round to the nearest valid bitrate.
  2988. .RS 4
  2989. .IP "\fB4750\fR" 4
  2990. .IX Item "4750"
  2991. .PD 0
  2992. .IP "\fB5150\fR" 4
  2993. .IX Item "5150"
  2994. .IP "\fB5900\fR" 4
  2995. .IX Item "5900"
  2996. .IP "\fB6700\fR" 4
  2997. .IX Item "6700"
  2998. .IP "\fB7400\fR" 4
  2999. .IX Item "7400"
  3000. .IP "\fB7950\fR" 4
  3001. .IX Item "7950"
  3002. .IP "\fB10200\fR" 4
  3003. .IX Item "10200"
  3004. .IP "\fB12200\fR" 4
  3005. .IX Item "12200"
  3006. .RE
  3007. .RS 4
  3008. .RE
  3009. .IP "\fBdtx\fR" 4
  3010. .IX Item "dtx"
  3011. .PD
  3012. Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3013. default value is 0 (disabled).
  3014. .Sh "libshine"
  3015. .IX Subsection "libshine"
  3016. Shine Fixed-Point \s-1MP3\s0 encoder wrapper.
  3017. .PP
  3018. Shine is a fixed-point \s-1MP3\s0 encoder. It has a far better performance on
  3019. platforms without an \s-1FPU\s0, e.g. armel CPUs, and some phones and tablets.
  3020. However, as it is more targeted on performance than quality, it is not on par
  3021. with \s-1LAME\s0 and other production-grade encoders quality\-wise. Also, according to
  3022. the project's homepage, this encoder may not be free of bugs as the code was
  3023. written a long time ago and the project was dead for at least 5 years.
  3024. .PP
  3025. This encoder only supports stereo and mono input. This is also CBR\-only.
  3026. .PP
  3027. The original project (last updated in early 2007) is at
  3028. <\fBhttp://sourceforge.net/projects/libshine\-fxp/\fR>. We only support the
  3029. updated fork by the Savonet/Liquidsoap project at <\fBhttps://github.com/savonet/shine\fR>.
  3030. .PP
  3031. Requires the presence of the libshine headers and library during
  3032. configuration. You need to explicitly configure the build with
  3033. \&\f(CW\*(C`\-\-enable\-libshine\*(C'\fR.
  3034. .PP
  3035. See also \fBlibmp3lame\fR.
  3036. .PP
  3037. \fIOptions\fR
  3038. .IX Subsection "Options"
  3039. .PP
  3040. The following options are supported by the libshine wrapper. The
  3041. \&\fBshineenc\fR\-equivalent of the options are listed in parentheses.
  3042. .IP "\fBb (\fR\fI\-b\fR\fB)\fR" 4
  3043. .IX Item "b (-b)"
  3044. Set bitrate expressed in bits/s for \s-1CBR\s0. \fBshineenc\fR \fB\-b\fR option
  3045. is expressed in kilobits/s.
  3046. .Sh "libtwolame"
  3047. .IX Subsection "libtwolame"
  3048. TwoLAME \s-1MP2\s0 encoder wrapper.
  3049. .PP
  3050. Requires the presence of the libtwolame headers and library during
  3051. configuration. You need to explicitly configure the build with
  3052. \&\f(CW\*(C`\-\-enable\-libtwolame\*(C'\fR.
  3053. .PP
  3054. \fIOptions\fR
  3055. .IX Subsection "Options"
  3056. .PP
  3057. The following options are supported by the libtwolame wrapper. The
  3058. \&\fBtwolame\fR\-equivalent options follow the FFmpeg ones and are in
  3059. parentheses.
  3060. .IP "\fBb (\fR\fI\-b\fR\fB)\fR" 4
  3061. .IX Item "b (-b)"
  3062. Set bitrate expressed in bits/s for \s-1CBR\s0. \fBtwolame\fR \fBb\fR
  3063. option is expressed in kilobits/s. Default value is 128k.
  3064. .IP "\fBq (\fR\fI\-V\fR\fB)\fR" 4
  3065. .IX Item "q (-V)"
  3066. Set quality for experimental \s-1VBR\s0 support. Maximum value range is
  3067. from \-50 to 50, useful range is from \-10 to 10. The higher the
  3068. value, the better the quality. This option is valid only using the
  3069. \&\fBffmpeg\fR command-line tool. For library interface users,
  3070. use \fBglobal_quality\fR.
  3071. .IP "\fBmode (\fR\fI\-\-mode\fR\fB)\fR" 4
  3072. .IX Item "mode (--mode)"
  3073. Set the mode of the resulting audio. Possible values:
  3074. .RS 4
  3075. .IP "\fBauto\fR" 4
  3076. .IX Item "auto"
  3077. Choose mode automatically based on the input. This is the default.
  3078. .IP "\fBstereo\fR" 4
  3079. .IX Item "stereo"
  3080. Stereo
  3081. .IP "\fBjoint_stereo\fR" 4
  3082. .IX Item "joint_stereo"
  3083. Joint stereo
  3084. .IP "\fBdual_channel\fR" 4
  3085. .IX Item "dual_channel"
  3086. Dual channel
  3087. .IP "\fBmono\fR" 4
  3088. .IX Item "mono"
  3089. Mono
  3090. .RE
  3091. .RS 4
  3092. .RE
  3093. .IP "\fBpsymodel (\fR\fI\-\-psyc\-mode\fR\fB)\fR" 4
  3094. .IX Item "psymodel (--psyc-mode)"
  3095. Set psychoacoustic model to use in encoding. The argument must be
  3096. an integer between \-1 and 4, inclusive. The higher the value, the
  3097. better the quality. The default value is 3.
  3098. .IP "\fBenergy_levels (\fR\fI\-\-energy\fR\fB)\fR" 4
  3099. .IX Item "energy_levels (--energy)"
  3100. Enable energy levels extensions when set to 1. The default value is
  3101. 0 (disabled).
  3102. .IP "\fBerror_protection (\fR\fI\-\-protect\fR\fB)\fR" 4
  3103. .IX Item "error_protection (--protect)"
  3104. Enable \s-1CRC\s0 error protection when set to 1. The default value is 0
  3105. (disabled).
  3106. .IP "\fBcopyright (\fR\fI\-\-copyright\fR\fB)\fR" 4
  3107. .IX Item "copyright (--copyright)"
  3108. Set \s-1MPEG\s0 audio copyright flag when set to 1. The default value is 0
  3109. (disabled).
  3110. .IP "\fBoriginal (\fR\fI\-\-original\fR\fB)\fR" 4
  3111. .IX Item "original (--original)"
  3112. Set \s-1MPEG\s0 audio original flag when set to 1. The default value is 0
  3113. (disabled).
  3114. .Sh "libvo-aacenc"
  3115. .IX Subsection "libvo-aacenc"
  3116. VisualOn \s-1AAC\s0 encoder.
  3117. .PP
  3118. Requires the presence of the libvo-aacenc headers and library during
  3119. configuration. You need to explicitly configure the build with
  3120. \&\f(CW\*(C`\-\-enable\-libvo\-aacenc \-\-enable\-version3\*(C'\fR.
  3121. .PP
  3122. This encoder is considered to be worse than the
  3123. \&\fBnative experimental FFmpeg \s-1AAC\s0 encoder\fR, according to
  3124. multiple sources.
  3125. .PP
  3126. \fIOptions\fR
  3127. .IX Subsection "Options"
  3128. .PP
  3129. The VisualOn \s-1AAC\s0 encoder only support encoding AAC-LC and up to 2
  3130. channels. It is also CBR\-only.
  3131. .IP "\fBb\fR" 4
  3132. .IX Item "b"
  3133. Set bit rate in bits/s.
  3134. .Sh "libvo-amrwbenc"
  3135. .IX Subsection "libvo-amrwbenc"
  3136. VisualOn Adaptive Multi-Rate Wideband encoder.
  3137. .PP
  3138. Requires the presence of the libvo-amrwbenc headers and library during
  3139. configuration. You need to explicitly configure the build with
  3140. \&\f(CW\*(C`\-\-enable\-libvo\-amrwbenc \-\-enable\-version3\*(C'\fR.
  3141. .PP
  3142. This is a mono-only encoder. Officially it only supports 16000Hz sample
  3143. rate, but you can override it by setting \fBstrict\fR to
  3144. \&\fBunofficial\fR or lower.
  3145. .PP
  3146. \fIOptions\fR
  3147. .IX Subsection "Options"
  3148. .IP "\fBb\fR" 4
  3149. .IX Item "b"
  3150. Set bitrate in bits/s. Only the following bitrates are supported, otherwise
  3151. libavcodec will round to the nearest valid bitrate.
  3152. .RS 4
  3153. .IP "\fB6600\fR" 4
  3154. .IX Item "6600"
  3155. .PD 0
  3156. .IP "\fB8850\fR" 4
  3157. .IX Item "8850"
  3158. .IP "\fB12650\fR" 4
  3159. .IX Item "12650"
  3160. .IP "\fB14250\fR" 4
  3161. .IX Item "14250"
  3162. .IP "\fB15850\fR" 4
  3163. .IX Item "15850"
  3164. .IP "\fB18250\fR" 4
  3165. .IX Item "18250"
  3166. .IP "\fB19850\fR" 4
  3167. .IX Item "19850"
  3168. .IP "\fB23050\fR" 4
  3169. .IX Item "23050"
  3170. .IP "\fB23850\fR" 4
  3171. .IX Item "23850"
  3172. .RE
  3173. .RS 4
  3174. .RE
  3175. .IP "\fBdtx\fR" 4
  3176. .IX Item "dtx"
  3177. .PD
  3178. Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3179. default value is 0 (disabled).
  3180. .Sh "libopus"
  3181. .IX Subsection "libopus"
  3182. libopus Opus Interactive Audio Codec encoder wrapper.
  3183. .PP
  3184. Requires the presence of the libopus headers and library during
  3185. configuration. You need to explicitly configure the build with
  3186. \&\f(CW\*(C`\-\-enable\-libopus\*(C'\fR.
  3187. .PP
  3188. \fIOption Mapping\fR
  3189. .IX Subsection "Option Mapping"
  3190. .PP
  3191. Most libopus options are modelled after the \fBopusenc\fR utility from
  3192. opus\-tools. The following is an option mapping chart describing options
  3193. supported by the libopus wrapper, and their \fBopusenc\fR\-equivalent
  3194. in parentheses.
  3195. .IP "\fBb (\fR\fIbitrate\fR\fB)\fR" 4
  3196. .IX Item "b (bitrate)"
  3197. Set the bit rate in bits/s.  FFmpeg's \fBb\fR option is
  3198. expressed in bits/s, while \fBopusenc\fR's \fBbitrate\fR in
  3199. kilobits/s.
  3200. .IP "\fBvbr (\fR\fIvbr\fR\fB,\fR \fIhard-cbr\fR\fB, and\fR \fIcvbr\fR\fB)\fR" 4
  3201. .IX Item "vbr (vbr, hard-cbr, and cvbr)"
  3202. Set \s-1VBR\s0 mode. The FFmpeg \fBvbr\fR option has the following
  3203. valid arguments, with the their \fBopusenc\fR equivalent options
  3204. in parentheses:
  3205. .RS 4
  3206. .IP "\fBoff (\fR\fIhard-cbr\fR\fB)\fR" 4
  3207. .IX Item "off (hard-cbr)"
  3208. Use constant bit rate encoding.
  3209. .IP "\fBon (\fR\fIvbr\fR\fB)\fR" 4
  3210. .IX Item "on (vbr)"
  3211. Use variable bit rate encoding (the default).
  3212. .IP "\fBconstrained (\fR\fIcvbr\fR\fB)\fR" 4
  3213. .IX Item "constrained (cvbr)"
  3214. Use constrained variable bit rate encoding.
  3215. .RE
  3216. .RS 4
  3217. .RE
  3218. .IP "\fBcompression_level (\fR\fIcomp\fR\fB)\fR" 4
  3219. .IX Item "compression_level (comp)"
  3220. Set encoding algorithm complexity. Valid options are integers in
  3221. the 0\-10 range. 0 gives the fastest encodes but lower quality, while 10
  3222. gives the highest quality but slowest encoding. The default is 10.
  3223. .IP "\fBframe_duration (\fR\fIframesize\fR\fB)\fR" 4
  3224. .IX Item "frame_duration (framesize)"
  3225. Set maximum frame size, or duration of a frame in milliseconds. The
  3226. argument must be exactly the following: 2.5, 5, 10, 20, 40, 60. Smaller
  3227. frame sizes achieve lower latency but less quality at a given bitrate.
  3228. Sizes greater than 20ms are only interesting at fairly low bitrates.
  3229. The default is 20ms.
  3230. .IP "\fBpacket_loss (\fR\fIexpect-loss\fR\fB)\fR" 4
  3231. .IX Item "packet_loss (expect-loss)"
  3232. Set expected packet loss percentage. The default is 0.
  3233. .IP "\fBapplication (N.A.)\fR" 4
  3234. .IX Item "application (N.A.)"
  3235. Set intended application type. Valid options are listed below:
  3236. .RS 4
  3237. .IP "\fBvoip\fR" 4
  3238. .IX Item "voip"
  3239. Favor improved speech intelligibility.
  3240. .IP "\fBaudio\fR" 4
  3241. .IX Item "audio"
  3242. Favor faithfulness to the input (the default).
  3243. .IP "\fBlowdelay\fR" 4
  3244. .IX Item "lowdelay"
  3245. Restrict to only the lowest delay modes.
  3246. .RE
  3247. .RS 4
  3248. .RE
  3249. .IP "\fBcutoff (N.A.)\fR" 4
  3250. .IX Item "cutoff (N.A.)"
  3251. Set cutoff bandwidth in Hz. The argument must be exactly one of the
  3252. following: 4000, 6000, 8000, 12000, or 20000, corresponding to
  3253. narrowband, mediumband, wideband, super wideband, and fullband
  3254. respectively. The default is 0 (cutoff disabled).
  3255. .Sh "libvorbis"
  3256. .IX Subsection "libvorbis"
  3257. libvorbis encoder wrapper.
  3258. .PP
  3259. Requires the presence of the libvorbisenc headers and library during
  3260. configuration. You need to explicitly configure the build with
  3261. \&\f(CW\*(C`\-\-enable\-libvorbis\*(C'\fR.
  3262. .PP
  3263. \fIOptions\fR
  3264. .IX Subsection "Options"
  3265. .PP
  3266. The following options are supported by the libvorbis wrapper. The
  3267. \&\fBoggenc\fR\-equivalent of the options are listed in parentheses.
  3268. .PP
  3269. To get a more accurate and extensive documentation of the libvorbis
  3270. options, consult the libvorbisenc's and \fBoggenc\fR's documentations.
  3271. See <\fBhttp://xiph.org/vorbis/\fR>,
  3272. <\fBhttp://wiki.xiph.org/Vorbis\-tools\fR>, and \fIoggenc\fR\|(1).
  3273. .IP "\fBb (\fR\fI\-b\fR\fB)\fR" 4
  3274. .IX Item "b (-b)"
  3275. Set bitrate expressed in bits/s for \s-1ABR\s0. \fBoggenc\fR \fB\-b\fR is
  3276. expressed in kilobits/s.
  3277. .IP "\fBq (\fR\fI\-q\fR\fB)\fR" 4
  3278. .IX Item "q (-q)"
  3279. Set constant quality setting for \s-1VBR\s0. The value should be a float
  3280. number in the range of \-1.0 to 10.0. The higher the value, the better
  3281. the quality. The default value is \fB3.0\fR.
  3282. .Sp
  3283. This option is valid only using the \fBffmpeg\fR command-line tool.
  3284. For library interface users, use \fBglobal_quality\fR.
  3285. .IP "\fBcutoff (\fR\fI\-\-advanced\-encode\-option lowpass_frequency=N\fR\fB)\fR" 4
  3286. .IX Item "cutoff (--advanced-encode-option lowpass_frequency=N)"
  3287. Set cutoff bandwidth in Hz, a value of 0 disables cutoff. \fBoggenc\fR's
  3288. related option is expressed in kHz. The default value is \fB0\fR (cutoff
  3289. disabled).
  3290. .IP "\fBminrate (\fR\fI\-m\fR\fB)\fR" 4
  3291. .IX Item "minrate (-m)"
  3292. Set minimum bitrate expressed in bits/s. \fBoggenc\fR \fB\-m\fR is
  3293. expressed in kilobits/s.
  3294. .IP "\fBmaxrate (\fR\fI\-M\fR\fB)\fR" 4
  3295. .IX Item "maxrate (-M)"
  3296. Set maximum bitrate expressed in bits/s. \fBoggenc\fR \fB\-M\fR is
  3297. expressed in kilobits/s. This only has effect on \s-1ABR\s0 mode.
  3298. .IP "\fBiblock (\fR\fI\-\-advanced\-encode\-option impulse_noisetune=N\fR\fB)\fR" 4
  3299. .IX Item "iblock (--advanced-encode-option impulse_noisetune=N)"
  3300. Set noise floor bias for impulse blocks. The value is a float number from
  3301. \&\-15.0 to 0.0. A negative bias instructs the encoder to pay special attention
  3302. to the crispness of transients in the encoded audio. The tradeoff for better
  3303. transient response is a higher bitrate.
  3304. .Sh "libwavpack"
  3305. .IX Subsection "libwavpack"
  3306. A wrapper providing WavPack encoding through libwavpack.
  3307. .PP
  3308. Only lossless mode using 32\-bit integer samples is supported currently.
  3309. .PP
  3310. Requires the presence of the libwavpack headers and library during
  3311. configuration. You need to explicitly configure the build with
  3312. \&\f(CW\*(C`\-\-enable\-libwavpack\*(C'\fR.
  3313. .PP
  3314. Note that a libavcodec-native encoder for the WavPack codec exists so users can
  3315. encode audios with this codec without using this encoder. See \fBwavpackenc\fR.
  3316. .PP
  3317. \fIOptions\fR
  3318. .IX Subsection "Options"
  3319. .PP
  3320. \&\fBwavpack\fR command line utility's corresponding options are listed in
  3321. parentheses, if any.
  3322. .IP "\fBframe_size (\fR\fI\-\-blocksize\fR\fB)\fR" 4
  3323. .IX Item "frame_size (--blocksize)"
  3324. Default is 32768.
  3325. .IP "\fBcompression_level\fR" 4
  3326. .IX Item "compression_level"
  3327. Set speed vs. compression tradeoff. Acceptable arguments are listed below:
  3328. .RS 4
  3329. .IP "\fB0 (\fR\fI\-f\fR\fB)\fR" 4
  3330. .IX Item "0 (-f)"
  3331. Fast mode.
  3332. .IP "\fB1\fR" 4
  3333. .IX Item "1"
  3334. Normal (default) settings.
  3335. .IP "\fB2 (\fR\fI\-h\fR\fB)\fR" 4
  3336. .IX Item "2 (-h)"
  3337. High quality.
  3338. .IP "\fB3 (\fR\fI\-hh\fR\fB)\fR" 4
  3339. .IX Item "3 (-hh)"
  3340. Very high quality.
  3341. .IP "\fB4\-8 (\fR\fI\-hh \-x\fR\fI\s-1EXTRAPROC\s0\fR\fB)\fR" 4
  3342. .IX Item "4-8 (-hh -xEXTRAPROC)"
  3343. Same as \fB3\fR, but with extra processing enabled.
  3344. .Sp
  3345. \&\fB4\fR is the same as \fB\-x2\fR and \fB8\fR is the same as \fB\-x6\fR.
  3346. .RE
  3347. .RS 4
  3348. .RE
  3349. .Sh "wavpack"
  3350. .IX Subsection "wavpack"
  3351. WavPack lossless audio encoder.
  3352. .PP
  3353. This is a libavcodec-native WavPack encoder. There is also an encoder based on
  3354. libwavpack, but there is virtually no reason to use that encoder.
  3355. .PP
  3356. See also \fBlibwavpack\fR.
  3357. .PP
  3358. \fIOptions\fR
  3359. .IX Subsection "Options"
  3360. .PP
  3361. The equivalent options for \fBwavpack\fR command line utility are listed in
  3362. parentheses.
  3363. .PP
  3364. Shared options
  3365. .IX Subsection "Shared options"
  3366. .PP
  3367. The following shared options are effective for this encoder. Only special notes
  3368. about this particular encoder will be documented here. For the general meaning
  3369. of the options, see \fBthe Codec Options chapter\fR.
  3370. .IP "\fBframe_size (\fR\fI\-\-blocksize\fR\fB)\fR" 4
  3371. .IX Item "frame_size (--blocksize)"
  3372. For this encoder, the range for this option is between 128 and 131072. Default
  3373. is automatically decided based on sample rate and number of channel.
  3374. .Sp
  3375. For the complete formula of calculating default, see
  3376. \&\fIlibavcodec/wavpackenc.c\fR.
  3377. .IP "\fBcompression_level (\fR\fI\-f\fR\fB,\fR \fI\-h\fR\fB,\fR \fI\-hh\fR\fB, and\fR \fI\-x\fR\fB)\fR" 4
  3378. .IX Item "compression_level (-f, -h, -hh, and -x)"
  3379. This option's syntax is consistent with \fBlibwavpack\fR's.
  3380. .PP
  3381. Private options
  3382. .IX Subsection "Private options"
  3383. .IP "\fBjoint_stereo (\fR\fI\-j\fR\fB)\fR" 4
  3384. .IX Item "joint_stereo (-j)"
  3385. Set whether to enable joint stereo. Valid values are:
  3386. .RS 4
  3387. .IP "\fBon (\fR\fI1\fR\fB)\fR" 4
  3388. .IX Item "on (1)"
  3389. Force mid/side audio encoding.
  3390. .IP "\fBoff (\fR\fI0\fR\fB)\fR" 4
  3391. .IX Item "off (0)"
  3392. Force left/right audio encoding.
  3393. .IP "\fBauto\fR" 4
  3394. .IX Item "auto"
  3395. Let the encoder decide automatically.
  3396. .RE
  3397. .RS 4
  3398. .RE
  3399. .IP "\fBoptimize_mono\fR" 4
  3400. .IX Item "optimize_mono"
  3401. Set whether to enable optimization for mono. This option is only effective for
  3402. non-mono streams. Available values:
  3403. .RS 4
  3404. .IP "\fBon\fR" 4
  3405. .IX Item "on"
  3406. enabled
  3407. .IP "\fBoff\fR" 4
  3408. .IX Item "off"
  3409. disabled
  3410. .RE
  3411. .RS 4
  3412. .RE
  3413. .SH "VIDEO ENCODERS"
  3414. .IX Header "VIDEO ENCODERS"
  3415. A description of some of the currently available video encoders
  3416. follows.
  3417. .Sh "jpeg2000"
  3418. .IX Subsection "jpeg2000"
  3419. The native jpeg 2000 encoder is lossy by default, the \f(CW\*(C`\-q:v\*(C'\fR
  3420. option can be used to set the encoding quality. Lossless encoding
  3421. can be selected with \f(CW\*(C`\-pred 1\*(C'\fR.
  3422. .PP
  3423. \fIOptions\fR
  3424. .IX Subsection "Options"
  3425. .IP "\fBformat\fR" 4
  3426. .IX Item "format"
  3427. Can be set to either \f(CW\*(C`j2k\*(C'\fR or \f(CW\*(C`jp2\*(C'\fR (the default) that
  3428. makes it possible to store non-rgb pix_fmts.
  3429. .Sh "snow"
  3430. .IX Subsection "snow"
  3431. \fIOptions\fR
  3432. .IX Subsection "Options"
  3433. .IP "\fBiterative_dia_size\fR" 4
  3434. .IX Item "iterative_dia_size"
  3435. dia size for the iterative motion estimation
  3436. .Sh "libtheora"
  3437. .IX Subsection "libtheora"
  3438. libtheora Theora encoder wrapper.
  3439. .PP
  3440. Requires the presence of the libtheora headers and library during
  3441. configuration. You need to explicitly configure the build with
  3442. \&\f(CW\*(C`\-\-enable\-libtheora\*(C'\fR.
  3443. .PP
  3444. For more information about the libtheora project see
  3445. <\fBhttp://www.theora.org/\fR>.
  3446. .PP
  3447. \fIOptions\fR
  3448. .IX Subsection "Options"
  3449. .PP
  3450. The following global options are mapped to internal libtheora options
  3451. which affect the quality and the bitrate of the encoded stream.
  3452. .IP "\fBb\fR" 4
  3453. .IX Item "b"
  3454. Set the video bitrate in bit/s for \s-1CBR\s0 (Constant Bit Rate) mode.  In
  3455. case \s-1VBR\s0 (Variable Bit Rate) mode is enabled this option is ignored.
  3456. .IP "\fBflags\fR" 4
  3457. .IX Item "flags"
  3458. Used to enable constant quality mode (\s-1VBR\s0) encoding through the
  3459. \&\fBqscale\fR flag, and to enable the \f(CW\*(C`pass1\*(C'\fR and \f(CW\*(C`pass2\*(C'\fR
  3460. modes.
  3461. .IP "\fBg\fR" 4
  3462. .IX Item "g"
  3463. Set the \s-1GOP\s0 size.
  3464. .IP "\fBglobal_quality\fR" 4
  3465. .IX Item "global_quality"
  3466. Set the global quality as an integer in lambda units.
  3467. .Sp
  3468. Only relevant when \s-1VBR\s0 mode is enabled with \f(CW\*(C`flags +qscale\*(C'\fR. The
  3469. value is converted to \s-1QP\s0 units by dividing it by \f(CW\*(C`FF_QP2LAMBDA\*(C'\fR,
  3470. clipped in the [0 \- 10] range, and then multiplied by 6.3 to get a
  3471. value in the native libtheora range [0\-63]. A higher value corresponds
  3472. to a higher quality.
  3473. .IP "\fBq\fR" 4
  3474. .IX Item "q"
  3475. Enable \s-1VBR\s0 mode when set to a non-negative value, and set constant
  3476. quality value as a double floating point value in \s-1QP\s0 units.
  3477. .Sp
  3478. The value is clipped in the [0\-10] range, and then multiplied by 6.3
  3479. to get a value in the native libtheora range [0\-63].
  3480. .Sp
  3481. This option is valid only using the \fBffmpeg\fR command-line
  3482. tool. For library interface users, use \fBglobal_quality\fR.
  3483. .PP
  3484. \fIExamples\fR
  3485. .IX Subsection "Examples"
  3486. .IP "\(bu" 4
  3487. Set maximum constant quality (\s-1VBR\s0) encoding with \fBffmpeg\fR:
  3488. .Sp
  3489. .Vb 1
  3490. \&        ffmpeg -i INPUT -codec:v libtheora -q:v 10 OUTPUT.ogg
  3491. .Ve
  3492. .IP "\(bu" 4
  3493. Use \fBffmpeg\fR to convert a \s-1CBR\s0 1000 kbps Theora video stream:
  3494. .Sp
  3495. .Vb 1
  3496. \&        ffmpeg -i INPUT -codec:v libtheora -b:v 1000k OUTPUT.ogg
  3497. .Ve
  3498. .Sh "libvpx"
  3499. .IX Subsection "libvpx"
  3500. \&\s-1VP8/VP9\s0 format supported through libvpx.
  3501. .PP
  3502. Requires the presence of the libvpx headers and library during configuration.
  3503. You need to explicitly configure the build with \f(CW\*(C`\-\-enable\-libvpx\*(C'\fR.
  3504. .PP
  3505. \fIOptions\fR
  3506. .IX Subsection "Options"
  3507. .PP
  3508. The following options are supported by the libvpx wrapper. The
  3509. \&\fBvpxenc\fR\-equivalent options or values are listed in parentheses
  3510. for easy migration.
  3511. .PP
  3512. To reduce the duplication of documentation, only the private options
  3513. and some others requiring special attention are documented here. For
  3514. the documentation of the undocumented generic options, see
  3515. \&\fBthe Codec Options chapter\fR.
  3516. .PP
  3517. To get more documentation of the libvpx options, invoke the command
  3518. \&\fBffmpeg \-h encoder=libvpx\fR, \fBffmpeg \-h encoder=libvpx\-vp9\fR or
  3519. \&\fBvpxenc \-\-help\fR. Further information is available in the libvpx \s-1API\s0
  3520. documentation.
  3521. .IP "\fBb (\fR\fItarget-bitrate\fR\fB)\fR" 4
  3522. .IX Item "b (target-bitrate)"
  3523. Set bitrate in bits/s. Note that FFmpeg's \fBb\fR option is
  3524. expressed in bits/s, while \fBvpxenc\fR's \fBtarget-bitrate\fR is in
  3525. kilobits/s.
  3526. .IP "\fBg (\fR\fIkf-max-dist\fR\fB)\fR" 4
  3527. .IX Item "g (kf-max-dist)"
  3528. .PD 0
  3529. .IP "\fBkeyint_min (\fR\fIkf-min-dist\fR\fB)\fR" 4
  3530. .IX Item "keyint_min (kf-min-dist)"
  3531. .IP "\fBqmin (\fR\fImin-q\fR\fB)\fR" 4
  3532. .IX Item "qmin (min-q)"
  3533. .IP "\fBqmax (\fR\fImax-q\fR\fB)\fR" 4
  3534. .IX Item "qmax (max-q)"
  3535. .IP "\fBbufsize (\fR\fIbuf-sz\fR\fB,\fR \fIbuf-optimal-sz\fR\fB)\fR" 4
  3536. .IX Item "bufsize (buf-sz, buf-optimal-sz)"
  3537. .PD
  3538. Set ratecontrol buffer size (in bits). Note \fBvpxenc\fR's options are
  3539. specified in milliseconds, the libvpx wrapper converts this value as follows:
  3540. \&\f(CW\*(C`buf\-sz = bufsize * 1000 / bitrate\*(C'\fR,
  3541. \&\f(CW\*(C`buf\-optimal\-sz = bufsize * 1000 / bitrate * 5 / 6\*(C'\fR.
  3542. .IP "\fBrc_init_occupancy (\fR\fIbuf-initial-sz\fR\fB)\fR" 4
  3543. .IX Item "rc_init_occupancy (buf-initial-sz)"
  3544. Set number of bits which should be loaded into the rc buffer before decoding
  3545. starts. Note \fBvpxenc\fR's option is specified in milliseconds, the libvpx
  3546. wrapper converts this value as follows:
  3547. \&\f(CW\*(C`rc_init_occupancy * 1000 / bitrate\*(C'\fR.
  3548. .IP "\fBundershoot-pct\fR" 4
  3549. .IX Item "undershoot-pct"
  3550. Set datarate undershoot (min) percentage of the target bitrate.
  3551. .IP "\fBovershoot-pct\fR" 4
  3552. .IX Item "overshoot-pct"
  3553. Set datarate overshoot (max) percentage of the target bitrate.
  3554. .IP "\fBskip_threshold (\fR\fIdrop-frame\fR\fB)\fR" 4
  3555. .IX Item "skip_threshold (drop-frame)"
  3556. .PD 0
  3557. .IP "\fBqcomp (\fR\fIbias-pct\fR\fB)\fR" 4
  3558. .IX Item "qcomp (bias-pct)"
  3559. .IP "\fBmaxrate (\fR\fImaxsection-pct\fR\fB)\fR" 4
  3560. .IX Item "maxrate (maxsection-pct)"
  3561. .PD
  3562. Set \s-1GOP\s0 max bitrate in bits/s. Note \fBvpxenc\fR's option is specified as a
  3563. percentage of the target bitrate, the libvpx wrapper converts this value as
  3564. follows: \f(CW\*(C`(maxrate * 100 / bitrate)\*(C'\fR.
  3565. .IP "\fBminrate (\fR\fIminsection-pct\fR\fB)\fR" 4
  3566. .IX Item "minrate (minsection-pct)"
  3567. Set \s-1GOP\s0 min bitrate in bits/s. Note \fBvpxenc\fR's option is specified as a
  3568. percentage of the target bitrate, the libvpx wrapper converts this value as
  3569. follows: \f(CW\*(C`(minrate * 100 / bitrate)\*(C'\fR.
  3570. .IP "\fBminrate, maxrate, b\fR \fIend\-usage=cbr\fR" 4
  3571. .IX Item "minrate, maxrate, b end-usage=cbr"
  3572. \&\f(CW\*(C`(minrate == maxrate == bitrate)\*(C'\fR.
  3573. .IP "\fBcrf (\fR\fIend\-usage=cq\fR\fB,\fR \fIcq-level\fR\fB)\fR" 4
  3574. .IX Item "crf (end-usage=cq, cq-level)"
  3575. .PD 0
  3576. .IP "\fBquality, deadline (\fR\fIdeadline\fR\fB)\fR" 4
  3577. .IX Item "quality, deadline (deadline)"
  3578. .RS 4
  3579. .IP "\fBbest\fR" 4
  3580. .IX Item "best"
  3581. .PD
  3582. Use best quality deadline. Poorly named and quite slow, this option should be
  3583. avoided as it may give worse quality output than good.
  3584. .IP "\fBgood\fR" 4
  3585. .IX Item "good"
  3586. Use good quality deadline. This is a good trade-off between speed and quality
  3587. when used with the \fBcpu-used\fR option.
  3588. .IP "\fBrealtime\fR" 4
  3589. .IX Item "realtime"
  3590. Use realtime quality deadline.
  3591. .RE
  3592. .RS 4
  3593. .RE
  3594. .IP "\fBspeed, cpu-used (\fR\fIcpu-used\fR\fB)\fR" 4
  3595. .IX Item "speed, cpu-used (cpu-used)"
  3596. Set quality/speed ratio modifier. Higher values speed up the encode at the cost
  3597. of quality.
  3598. .IP "\fBnr (\fR\fInoise-sensitivity\fR\fB)\fR" 4
  3599. .IX Item "nr (noise-sensitivity)"
  3600. .PD 0
  3601. .IP "\fBstatic-thresh\fR" 4
  3602. .IX Item "static-thresh"
  3603. .PD
  3604. Set a change threshold on blocks below which they will be skipped by the
  3605. encoder.
  3606. .IP "\fBslices (\fR\fItoken-parts\fR\fB)\fR" 4
  3607. .IX Item "slices (token-parts)"
  3608. Note that FFmpeg's \fBslices\fR option gives the total number of partitions,
  3609. while \fBvpxenc\fR's \fBtoken-parts\fR is given as
  3610. \&\f(CW\*(C`log2(partitions)\*(C'\fR.
  3611. .IP "\fBmax-intra-rate\fR" 4
  3612. .IX Item "max-intra-rate"
  3613. Set maximum I\-frame bitrate as a percentage of the target bitrate. A value of 0
  3614. means unlimited.
  3615. .IP "\fBforce_key_frames\fR" 4
  3616. .IX Item "force_key_frames"
  3617. \&\f(CW\*(C`VPX_EFLAG_FORCE_KF\*(C'\fR
  3618. .IP "\fBAlternate reference frame related\fR" 4
  3619. .IX Item "Alternate reference frame related"
  3620. .RS 4
  3621. .PD 0
  3622. .IP "\fBauto-alt-ref\fR" 4
  3623. .IX Item "auto-alt-ref"
  3624. .PD
  3625. Enable use of alternate reference frames (2\-pass only).
  3626. .IP "\fBarnr-max-frames\fR" 4
  3627. .IX Item "arnr-max-frames"
  3628. Set altref noise reduction max frame count.
  3629. .IP "\fBarnr-type\fR" 4
  3630. .IX Item "arnr-type"
  3631. Set altref noise reduction filter type: backward, forward, centered.
  3632. .IP "\fBarnr-strength\fR" 4
  3633. .IX Item "arnr-strength"
  3634. Set altref noise reduction filter strength.
  3635. .IP "\fBrc\-lookahead, lag-in-frames (\fR\fIlag-in-frames\fR\fB)\fR" 4
  3636. .IX Item "rc-lookahead, lag-in-frames (lag-in-frames)"
  3637. Set number of frames to look ahead for frametype and ratecontrol.
  3638. .RE
  3639. .RS 4
  3640. .RE
  3641. .IP "\fBerror-resilient\fR" 4
  3642. .IX Item "error-resilient"
  3643. Enable error resiliency features.
  3644. .IP "\fBVP9\-specific options\fR" 4
  3645. .IX Item "VP9-specific options"
  3646. .RS 4
  3647. .PD 0
  3648. .IP "\fBlossless\fR" 4
  3649. .IX Item "lossless"
  3650. .PD
  3651. Enable lossless mode.
  3652. .IP "\fBtile-columns\fR" 4
  3653. .IX Item "tile-columns"
  3654. Set number of tile columns to use. Note this is given as
  3655. \&\f(CW\*(C`log2(tile_columns)\*(C'\fR. For example, 8 tile columns would be requested by
  3656. setting the \fBtile-columns\fR option to 3.
  3657. .IP "\fBtile-rows\fR" 4
  3658. .IX Item "tile-rows"
  3659. Set number of tile rows to use. Note this is given as \f(CW\*(C`log2(tile_rows)\*(C'\fR.
  3660. For example, 4 tile rows would be requested by setting the \fBtile-rows\fR
  3661. option to 2.
  3662. .IP "\fBframe-parallel\fR" 4
  3663. .IX Item "frame-parallel"
  3664. Enable frame parallel decodability features.
  3665. .IP "\fBaq-mode\fR" 4
  3666. .IX Item "aq-mode"
  3667. Set adaptive quantization mode (0: off (default), 1: variance 2: complexity, 3:
  3668. cyclic refresh).
  3669. .IP "\fBcolorspace\fR \fIcolor-space\fR" 4
  3670. .IX Item "colorspace color-space"
  3671. Set input color space. The \s-1VP9\s0 bitstream supports signaling the following
  3672. colorspaces:
  3673. .RS 4
  3674. .IP "\fB\fBrgb\fB \f(BIsRGB\fB\fR" 4
  3675. .IX Item "rgb sRGB"
  3676. .PD 0
  3677. .IP "\fB\fBbt709\fB \f(BIbt709\fB\fR" 4
  3678. .IX Item "bt709 bt709"
  3679. .IP "\fB\fBunspecified\fB \f(BIunknown\fB\fR" 4
  3680. .IX Item "unspecified unknown"
  3681. .IP "\fB\fBbt470bg\fB \f(BIbt601\fB\fR" 4
  3682. .IX Item "bt470bg bt601"
  3683. .IP "\fB\fBsmpte170m\fB \f(BIsmpte170\fB\fR" 4
  3684. .IX Item "smpte170m smpte170"
  3685. .IP "\fB\fBsmpte240m\fB \f(BIsmpte240\fB\fR" 4
  3686. .IX Item "smpte240m smpte240"
  3687. .IP "\fB\fBbt2020_ncl\fB \f(BIbt2020\fB\fR" 4
  3688. .IX Item "bt2020_ncl bt2020"
  3689. .RE
  3690. .RS 4
  3691. .RE
  3692. .RE
  3693. .RS 4
  3694. .RE
  3695. .PD
  3696. .PP
  3697. For more information about libvpx see:
  3698. <\fBhttp://www.webmproject.org/\fR>
  3699. .Sh "libwebp"
  3700. .IX Subsection "libwebp"
  3701. libwebp WebP Image encoder wrapper
  3702. .PP
  3703. libwebp is Google's official encoder for WebP images. It can encode in either
  3704. lossy or lossless mode. Lossy images are essentially a wrapper around a \s-1VP8\s0
  3705. frame. Lossless images are a separate codec developed by Google.
  3706. .PP
  3707. \fIPixel Format\fR
  3708. .IX Subsection "Pixel Format"
  3709. .PP
  3710. Currently, libwebp only supports \s-1YUV420\s0 for lossy and \s-1RGB\s0 for lossless due
  3711. to limitations of the format and libwebp. Alpha is supported for either mode.
  3712. Because of \s-1API\s0 limitations, if \s-1RGB\s0 is passed in when encoding lossy or \s-1YUV\s0 is
  3713. passed in for encoding lossless, the pixel format will automatically be
  3714. converted using functions from libwebp. This is not ideal and is done only for
  3715. convenience.
  3716. .PP
  3717. \fIOptions\fR
  3718. .IX Subsection "Options"
  3719. .IP "\fB\-lossless\fR \fIboolean\fR" 4
  3720. .IX Item "-lossless boolean"
  3721. Enables/Disables use of lossless mode. Default is 0.
  3722. .IP "\fB\-compression_level\fR \fIinteger\fR" 4
  3723. .IX Item "-compression_level integer"
  3724. For lossy, this is a quality/speed tradeoff. Higher values give better quality
  3725. for a given size at the cost of increased encoding time. For lossless, this is
  3726. a size/speed tradeoff. Higher values give smaller size at the cost of increased
  3727. encoding time. More specifically, it controls the number of extra algorithms
  3728. and compression tools used, and varies the combination of these tools. This
  3729. maps to the \fImethod\fR option in libwebp. The valid range is 0 to 6.
  3730. Default is 4.
  3731. .IP "\fB\-qscale\fR \fIfloat\fR" 4
  3732. .IX Item "-qscale float"
  3733. For lossy encoding, this controls image quality, 0 to 100. For lossless
  3734. encoding, this controls the effort and time spent at compressing more. The
  3735. default value is 75. Note that for usage via libavcodec, this option is called
  3736. \&\fIglobal_quality\fR and must be multiplied by \fI\s-1FF_QP2LAMBDA\s0\fR.
  3737. .IP "\fB\-preset\fR \fItype\fR" 4
  3738. .IX Item "-preset type"
  3739. Configuration preset. This does some automatic settings based on the general
  3740. type of the image.
  3741. .RS 4
  3742. .IP "\fBnone\fR" 4
  3743. .IX Item "none"
  3744. Do not use a preset.
  3745. .IP "\fBdefault\fR" 4
  3746. .IX Item "default"
  3747. Use the encoder default.
  3748. .IP "\fBpicture\fR" 4
  3749. .IX Item "picture"
  3750. Digital picture, like portrait, inner shot
  3751. .IP "\fBphoto\fR" 4
  3752. .IX Item "photo"
  3753. Outdoor photograph, with natural lighting
  3754. .IP "\fBdrawing\fR" 4
  3755. .IX Item "drawing"
  3756. Hand or line drawing, with high-contrast details
  3757. .IP "\fBicon\fR" 4
  3758. .IX Item "icon"
  3759. Small-sized colorful images
  3760. .IP "\fBtext\fR" 4
  3761. .IX Item "text"
  3762. Text-like
  3763. .RE
  3764. .RS 4
  3765. .RE
  3766. .Sh "libx264, libx264rgb"
  3767. .IX Subsection "libx264, libx264rgb"
  3768. x264 H.264/MPEG\-4 \s-1AVC\s0 encoder wrapper.
  3769. .PP
  3770. This encoder requires the presence of the libx264 headers and library
  3771. during configuration. You need to explicitly configure the build with
  3772. \&\f(CW\*(C`\-\-enable\-libx264\*(C'\fR.
  3773. .PP
  3774. libx264 supports an impressive number of features, including 8x8 and
  3775. 4x4 adaptive spatial transform, adaptive B\-frame placement, \s-1CAVLC/CABAC\s0
  3776. entropy coding, interlacing (\s-1MBAFF\s0), lossless mode, psy optimizations
  3777. for detail retention (adaptive quantization, psy\-RD, psy\-trellis).
  3778. .PP
  3779. Many libx264 encoder options are mapped to FFmpeg global codec
  3780. options, while unique encoder options are provided through private
  3781. options. Additionally the \fBx264opts\fR and \fBx264\-params\fR
  3782. private options allows one to pass a list of key=value tuples as accepted
  3783. by the libx264 \f(CW\*(C`x264_param_parse\*(C'\fR function.
  3784. .PP
  3785. The x264 project website is at
  3786. <\fBhttp://www.videolan.org/developers/x264.html\fR>.
  3787. .PP
  3788. The libx264rgb encoder is the same as libx264, except it accepts packed \s-1RGB\s0
  3789. pixel formats as input instead of \s-1YUV\s0.
  3790. .PP
  3791. \fISupported Pixel Formats\fR
  3792. .IX Subsection "Supported Pixel Formats"
  3793. .PP
  3794. x264 supports 8\- to 10\-bit color spaces. The exact bit depth is controlled at
  3795. x264's configure time. FFmpeg only supports one bit depth in one particular
  3796. build. In other words, it is not possible to build one FFmpeg with multiple
  3797. versions of x264 with different bit depths.
  3798. .PP
  3799. \fIOptions\fR
  3800. .IX Subsection "Options"
  3801. .PP
  3802. The following options are supported by the libx264 wrapper. The
  3803. \&\fBx264\fR\-equivalent options or values are listed in parentheses
  3804. for easy migration.
  3805. .PP
  3806. To reduce the duplication of documentation, only the private options
  3807. and some others requiring special attention are documented here. For
  3808. the documentation of the undocumented generic options, see
  3809. \&\fBthe Codec Options chapter\fR.
  3810. .PP
  3811. To get a more accurate and extensive documentation of the libx264
  3812. options, invoke the command \fBx264 \-\-full\-help\fR or consult
  3813. the libx264 documentation.
  3814. .IP "\fBb (\fR\fIbitrate\fR\fB)\fR" 4
  3815. .IX Item "b (bitrate)"
  3816. Set bitrate in bits/s. Note that FFmpeg's \fBb\fR option is
  3817. expressed in bits/s, while \fBx264\fR's \fBbitrate\fR is in
  3818. kilobits/s.
  3819. .IP "\fBbf (\fR\fIbframes\fR\fB)\fR" 4
  3820. .IX Item "bf (bframes)"
  3821. .PD 0
  3822. .IP "\fBg (\fR\fIkeyint\fR\fB)\fR" 4
  3823. .IX Item "g (keyint)"
  3824. .IP "\fBqmin (\fR\fIqpmin\fR\fB)\fR" 4
  3825. .IX Item "qmin (qpmin)"
  3826. .PD
  3827. Minimum quantizer scale.
  3828. .IP "\fBqmax (\fR\fIqpmax\fR\fB)\fR" 4
  3829. .IX Item "qmax (qpmax)"
  3830. Maximum quantizer scale.
  3831. .IP "\fBqdiff (\fR\fIqpstep\fR\fB)\fR" 4
  3832. .IX Item "qdiff (qpstep)"
  3833. Maximum difference between quantizer scales.
  3834. .IP "\fBqblur (\fR\fIqblur\fR\fB)\fR" 4
  3835. .IX Item "qblur (qblur)"
  3836. Quantizer curve blur
  3837. .IP "\fBqcomp (\fR\fIqcomp\fR\fB)\fR" 4
  3838. .IX Item "qcomp (qcomp)"
  3839. Quantizer curve compression factor
  3840. .IP "\fBrefs (\fR\fIref\fR\fB)\fR" 4
  3841. .IX Item "refs (ref)"
  3842. Number of reference frames each P\-frame can use. The range is from \fI0\-16\fR.
  3843. .IP "\fBsc_threshold (\fR\fIscenecut\fR\fB)\fR" 4
  3844. .IX Item "sc_threshold (scenecut)"
  3845. Sets the threshold for the scene change detection.
  3846. .IP "\fBtrellis (\fR\fItrellis\fR\fB)\fR" 4
  3847. .IX Item "trellis (trellis)"
  3848. Performs Trellis quantization to increase efficiency. Enabled by default.
  3849. .IP "\fBnr  (\fR\fInr\fR\fB)\fR" 4
  3850. .IX Item "nr  (nr)"
  3851. .PD 0
  3852. .IP "\fBme_range (\fR\fImerange\fR\fB)\fR" 4
  3853. .IX Item "me_range (merange)"
  3854. .PD
  3855. Maximum range of the motion search in pixels.
  3856. .IP "\fBme_method (\fR\fIme\fR\fB)\fR" 4
  3857. .IX Item "me_method (me)"
  3858. Set motion estimation method. Possible values in the decreasing order
  3859. of speed:
  3860. .RS 4
  3861. .IP "\fBdia (\fR\fIdia\fR\fB)\fR" 4
  3862. .IX Item "dia (dia)"
  3863. .PD 0
  3864. .IP "\fBepzs (\fR\fIdia\fR\fB)\fR" 4
  3865. .IX Item "epzs (dia)"
  3866. .PD
  3867. Diamond search with radius 1 (fastest). \fBepzs\fR is an alias for
  3868. \&\fBdia\fR.
  3869. .IP "\fBhex (\fR\fIhex\fR\fB)\fR" 4
  3870. .IX Item "hex (hex)"
  3871. Hexagonal search with radius 2.
  3872. .IP "\fBumh (\fR\fIumh\fR\fB)\fR" 4
  3873. .IX Item "umh (umh)"
  3874. Uneven multi-hexagon search.
  3875. .IP "\fBesa (\fR\fIesa\fR\fB)\fR" 4
  3876. .IX Item "esa (esa)"
  3877. Exhaustive search.
  3878. .IP "\fBtesa (\fR\fItesa\fR\fB)\fR" 4
  3879. .IX Item "tesa (tesa)"
  3880. Hadamard exhaustive search (slowest).
  3881. .RE
  3882. .RS 4
  3883. .RE
  3884. .IP "\fBsubq (\fR\fIsubme\fR\fB)\fR" 4
  3885. .IX Item "subq (subme)"
  3886. Sub-pixel motion estimation method.
  3887. .IP "\fBb_strategy (\fR\fIb\-adapt\fR\fB)\fR" 4
  3888. .IX Item "b_strategy (b-adapt)"
  3889. Adaptive B\-frame placement decision algorithm. Use only on first\-pass.
  3890. .IP "\fBkeyint_min (\fR\fImin-keyint\fR\fB)\fR" 4
  3891. .IX Item "keyint_min (min-keyint)"
  3892. Minimum \s-1GOP\s0 size.
  3893. .IP "\fBcoder\fR" 4
  3894. .IX Item "coder"
  3895. Set entropy encoder. Possible values:
  3896. .RS 4
  3897. .IP "\fBac\fR" 4
  3898. .IX Item "ac"
  3899. Enable \s-1CABAC\s0.
  3900. .IP "\fBvlc\fR" 4
  3901. .IX Item "vlc"
  3902. Enable \s-1CAVLC\s0 and disable \s-1CABAC\s0. It generates the same effect as
  3903. \&\fBx264\fR's \fB\-\-no\-cabac\fR option.
  3904. .RE
  3905. .RS 4
  3906. .RE
  3907. .IP "\fBcmp\fR" 4
  3908. .IX Item "cmp"
  3909. Set full pixel motion estimation comparation algorithm. Possible values:
  3910. .RS 4
  3911. .IP "\fBchroma\fR" 4
  3912. .IX Item "chroma"
  3913. Enable chroma in motion estimation.
  3914. .IP "\fBsad\fR" 4
  3915. .IX Item "sad"
  3916. Ignore chroma in motion estimation. It generates the same effect as
  3917. \&\fBx264\fR's \fB\-\-no\-chroma\-me\fR option.
  3918. .RE
  3919. .RS 4
  3920. .RE
  3921. .IP "\fBthreads (\fR\fIthreads\fR\fB)\fR" 4
  3922. .IX Item "threads (threads)"
  3923. Number of encoding threads.
  3924. .IP "\fBthread_type\fR" 4
  3925. .IX Item "thread_type"
  3926. Set multithreading technique. Possible values:
  3927. .RS 4
  3928. .IP "\fBslice\fR" 4
  3929. .IX Item "slice"
  3930. Slice-based multithreading. It generates the same effect as
  3931. \&\fBx264\fR's \fB\-\-sliced\-threads\fR option.
  3932. .IP "\fBframe\fR" 4
  3933. .IX Item "frame"
  3934. Frame-based multithreading.
  3935. .RE
  3936. .RS 4
  3937. .RE
  3938. .IP "\fBflags\fR" 4
  3939. .IX Item "flags"
  3940. Set encoding flags. It can be used to disable closed \s-1GOP\s0 and enable
  3941. open \s-1GOP\s0 by setting it to \f(CW\*(C`\-cgop\*(C'\fR. The result is similar to
  3942. the behavior of \fBx264\fR's \fB\-\-open\-gop\fR option.
  3943. .IP "\fBrc_init_occupancy (\fR\fIvbv-init\fR\fB)\fR" 4
  3944. .IX Item "rc_init_occupancy (vbv-init)"
  3945. .PD 0
  3946. .IP "\fBpreset (\fR\fIpreset\fR\fB)\fR" 4
  3947. .IX Item "preset (preset)"
  3948. .PD
  3949. Set the encoding preset.
  3950. .IP "\fBtune (\fR\fItune\fR\fB)\fR" 4
  3951. .IX Item "tune (tune)"
  3952. Set tuning of the encoding params.
  3953. .IP "\fBprofile (\fR\fIprofile\fR\fB)\fR" 4
  3954. .IX Item "profile (profile)"
  3955. Set profile restrictions.
  3956. .IP "\fBfastfirstpass\fR" 4
  3957. .IX Item "fastfirstpass"
  3958. Enable fast settings when encoding first pass, when set to 1. When set
  3959. to 0, it has the same effect of \fBx264\fR's
  3960. \&\fB\-\-slow\-firstpass\fR option.
  3961. .IP "\fBcrf (\fR\fIcrf\fR\fB)\fR" 4
  3962. .IX Item "crf (crf)"
  3963. Set the quality for constant quality mode.
  3964. .IP "\fBcrf_max (\fR\fIcrf-max\fR\fB)\fR" 4
  3965. .IX Item "crf_max (crf-max)"
  3966. In \s-1CRF\s0 mode, prevents \s-1VBV\s0 from lowering quality beyond this point.
  3967. .IP "\fBqp (\fR\fIqp\fR\fB)\fR" 4
  3968. .IX Item "qp (qp)"
  3969. Set constant quantization rate control method parameter.
  3970. .IP "\fBaq-mode (\fR\fIaq-mode\fR\fB)\fR" 4
  3971. .IX Item "aq-mode (aq-mode)"
  3972. Set \s-1AQ\s0 method. Possible values:
  3973. .RS 4
  3974. .IP "\fBnone (\fR\fI0\fR\fB)\fR" 4
  3975. .IX Item "none (0)"
  3976. Disabled.
  3977. .IP "\fBvariance (\fR\fI1\fR\fB)\fR" 4
  3978. .IX Item "variance (1)"
  3979. Variance \s-1AQ\s0 (complexity mask).
  3980. .IP "\fBautovariance (\fR\fI2\fR\fB)\fR" 4
  3981. .IX Item "autovariance (2)"
  3982. Auto-variance \s-1AQ\s0 (experimental).
  3983. .RE
  3984. .RS 4
  3985. .RE
  3986. .IP "\fBaq-strength (\fR\fIaq-strength\fR\fB)\fR" 4
  3987. .IX Item "aq-strength (aq-strength)"
  3988. Set \s-1AQ\s0 strength, reduce blocking and blurring in flat and textured areas.
  3989. .IP "\fBpsy\fR" 4
  3990. .IX Item "psy"
  3991. Use psychovisual optimizations when set to 1. When set to 0, it has the
  3992. same effect as \fBx264\fR's \fB\-\-no\-psy\fR option.
  3993. .IP "\fBpsy-rd  (\fR\fIpsy-rd\fR\fB)\fR" 4
  3994. .IX Item "psy-rd  (psy-rd)"
  3995. Set strength of psychovisual optimization, in
  3996. \&\fIpsy-rd\fR:\fIpsy-trellis\fR format.
  3997. .IP "\fBrc-lookahead (\fR\fIrc-lookahead\fR\fB)\fR" 4
  3998. .IX Item "rc-lookahead (rc-lookahead)"
  3999. Set number of frames to look ahead for frametype and ratecontrol.
  4000. .IP "\fBweightb\fR" 4
  4001. .IX Item "weightb"
  4002. Enable weighted prediction for B\-frames when set to 1. When set to 0,
  4003. it has the same effect as \fBx264\fR's \fB\-\-no\-weightb\fR option.
  4004. .IP "\fBweightp (\fR\fIweightp\fR\fB)\fR" 4
  4005. .IX Item "weightp (weightp)"
  4006. Set weighted prediction method for P\-frames. Possible values:
  4007. .RS 4
  4008. .IP "\fBnone (\fR\fI0\fR\fB)\fR" 4
  4009. .IX Item "none (0)"
  4010. Disabled
  4011. .IP "\fBsimple (\fR\fI1\fR\fB)\fR" 4
  4012. .IX Item "simple (1)"
  4013. Enable only weighted refs
  4014. .IP "\fBsmart (\fR\fI2\fR\fB)\fR" 4
  4015. .IX Item "smart (2)"
  4016. Enable both weighted refs and duplicates
  4017. .RE
  4018. .RS 4
  4019. .RE
  4020. .IP "\fBssim (\fR\fIssim\fR\fB)\fR" 4
  4021. .IX Item "ssim (ssim)"
  4022. Enable calculation and printing \s-1SSIM\s0 stats after the encoding.
  4023. .IP "\fBintra-refresh (\fR\fIintra-refresh\fR\fB)\fR" 4
  4024. .IX Item "intra-refresh (intra-refresh)"
  4025. Enable the use of Periodic Intra Refresh instead of \s-1IDR\s0 frames when set
  4026. to 1.
  4027. .IP "\fBavcintra-class (\fR\fIclass\fR\fB)\fR" 4
  4028. .IX Item "avcintra-class (class)"
  4029. Configure the encoder to generate AVC\-Intra.
  4030. Valid values are 50,100 and 200
  4031. .IP "\fBbluray-compat (\fR\fIbluray-compat\fR\fB)\fR" 4
  4032. .IX Item "bluray-compat (bluray-compat)"
  4033. Configure the encoder to be compatible with the bluray standard.
  4034. It is a shorthand for setting \*(L"bluray\-compat=1 force\-cfr=1\*(R".
  4035. .IP "\fBb\-bias (\fR\fIb\-bias\fR\fB)\fR" 4
  4036. .IX Item "b-bias (b-bias)"
  4037. Set the influence on how often B\-frames are used.
  4038. .IP "\fBb\-pyramid (\fR\fIb\-pyramid\fR\fB)\fR" 4
  4039. .IX Item "b-pyramid (b-pyramid)"
  4040. Set method for keeping of some B\-frames as references. Possible values:
  4041. .RS 4
  4042. .IP "\fBnone (\fR\fInone\fR\fB)\fR" 4
  4043. .IX Item "none (none)"
  4044. Disabled.
  4045. .IP "\fBstrict (\fR\fIstrict\fR\fB)\fR" 4
  4046. .IX Item "strict (strict)"
  4047. Strictly hierarchical pyramid.
  4048. .IP "\fBnormal (\fR\fInormal\fR\fB)\fR" 4
  4049. .IX Item "normal (normal)"
  4050. Non-strict (not Blu-ray compatible).
  4051. .RE
  4052. .RS 4
  4053. .RE
  4054. .IP "\fBmixed-refs\fR" 4
  4055. .IX Item "mixed-refs"
  4056. Enable the use of one reference per partition, as opposed to one
  4057. reference per macroblock when set to 1. When set to 0, it has the
  4058. same effect as \fBx264\fR's \fB\-\-no\-mixed\-refs\fR option.
  4059. .IP "\fB8x8dct\fR" 4
  4060. .IX Item "8x8dct"
  4061. Enable adaptive spatial transform (high profile 8x8 transform)
  4062. when set to 1. When set to 0, it has the same effect as
  4063. \&\fBx264\fR's \fB\-\-no\-8x8dct\fR option.
  4064. .IP "\fBfast-pskip\fR" 4
  4065. .IX Item "fast-pskip"
  4066. Enable early \s-1SKIP\s0 detection on P\-frames when set to 1. When set
  4067. to 0, it has the same effect as \fBx264\fR's
  4068. \&\fB\-\-no\-fast\-pskip\fR option.
  4069. .IP "\fBaud (\fR\fIaud\fR\fB)\fR" 4
  4070. .IX Item "aud (aud)"
  4071. Enable use of access unit delimiters when set to 1.
  4072. .IP "\fBmbtree\fR" 4
  4073. .IX Item "mbtree"
  4074. Enable use macroblock tree ratecontrol when set to 1. When set
  4075. to 0, it has the same effect as \fBx264\fR's
  4076. \&\fB\-\-no\-mbtree\fR option.
  4077. .IP "\fBdeblock (\fR\fIdeblock\fR\fB)\fR" 4
  4078. .IX Item "deblock (deblock)"
  4079. Set loop filter parameters, in \fIalpha\fR:\fIbeta\fR form.
  4080. .IP "\fBcplxblur (\fR\fIcplxblur\fR\fB)\fR" 4
  4081. .IX Item "cplxblur (cplxblur)"
  4082. Set fluctuations reduction in \s-1QP\s0 (before curve compression).
  4083. .IP "\fBpartitions (\fR\fIpartitions\fR\fB)\fR" 4
  4084. .IX Item "partitions (partitions)"
  4085. Set partitions to consider as a comma-separated list of. Possible
  4086. values in the list:
  4087. .RS 4
  4088. .IP "\fBp8x8\fR" 4
  4089. .IX Item "p8x8"
  4090. 8x8 P\-frame partition.
  4091. .IP "\fBp4x4\fR" 4
  4092. .IX Item "p4x4"
  4093. 4x4 P\-frame partition.
  4094. .IP "\fBb8x8\fR" 4
  4095. .IX Item "b8x8"
  4096. 4x4 B\-frame partition.
  4097. .IP "\fBi8x8\fR" 4
  4098. .IX Item "i8x8"
  4099. 8x8 I\-frame partition.
  4100. .IP "\fBi4x4\fR" 4
  4101. .IX Item "i4x4"
  4102. 4x4 I\-frame partition.
  4103. (Enabling \fBp4x4\fR requires \fBp8x8\fR to be enabled. Enabling
  4104. \&\fBi8x8\fR requires adaptive spatial transform (\fB8x8dct\fR
  4105. option) to be enabled.)
  4106. .IP "\fBnone (\fR\fInone\fR\fB)\fR" 4
  4107. .IX Item "none (none)"
  4108. Do not consider any partitions.
  4109. .IP "\fBall (\fR\fIall\fR\fB)\fR" 4
  4110. .IX Item "all (all)"
  4111. Consider every partition.
  4112. .RE
  4113. .RS 4
  4114. .RE
  4115. .IP "\fBdirect-pred (\fR\fIdirect\fR\fB)\fR" 4
  4116. .IX Item "direct-pred (direct)"
  4117. Set direct \s-1MV\s0 prediction mode. Possible values:
  4118. .RS 4
  4119. .IP "\fBnone (\fR\fInone\fR\fB)\fR" 4
  4120. .IX Item "none (none)"
  4121. Disable \s-1MV\s0 prediction.
  4122. .IP "\fBspatial (\fR\fIspatial\fR\fB)\fR" 4
  4123. .IX Item "spatial (spatial)"
  4124. Enable spatial predicting.
  4125. .IP "\fBtemporal (\fR\fItemporal\fR\fB)\fR" 4
  4126. .IX Item "temporal (temporal)"
  4127. Enable temporal predicting.
  4128. .IP "\fBauto (\fR\fIauto\fR\fB)\fR" 4
  4129. .IX Item "auto (auto)"
  4130. Automatically decided.
  4131. .RE
  4132. .RS 4
  4133. .RE
  4134. .IP "\fBslice-max-size (\fR\fIslice-max-size\fR\fB)\fR" 4
  4135. .IX Item "slice-max-size (slice-max-size)"
  4136. Set the limit of the size of each slice in bytes. If not specified
  4137. but \s-1RTP\s0 payload size (\fBps\fR) is specified, that is used.
  4138. .IP "\fBstats (\fR\fIstats\fR\fB)\fR" 4
  4139. .IX Item "stats (stats)"
  4140. Set the file name for multi-pass stats.
  4141. .IP "\fBnal-hrd (\fR\fInal-hrd\fR\fB)\fR" 4
  4142. .IX Item "nal-hrd (nal-hrd)"
  4143. Set signal \s-1HRD\s0 information (requires \fBvbv-bufsize\fR to be set).
  4144. Possible values:
  4145. .RS 4
  4146. .IP "\fBnone (\fR\fInone\fR\fB)\fR" 4
  4147. .IX Item "none (none)"
  4148. Disable \s-1HRD\s0 information signaling.
  4149. .IP "\fBvbr (\fR\fIvbr\fR\fB)\fR" 4
  4150. .IX Item "vbr (vbr)"
  4151. Variable bit rate.
  4152. .IP "\fBcbr (\fR\fIcbr\fR\fB)\fR" 4
  4153. .IX Item "cbr (cbr)"
  4154. Constant bit rate (not allowed in \s-1MP4\s0 container).
  4155. .RE
  4156. .RS 4
  4157. .RE
  4158. .IP "\fBx264opts (N.A.)\fR" 4
  4159. .IX Item "x264opts (N.A.)"
  4160. Set any x264 option, see \fBx264 \-\-fullhelp\fR for a list.
  4161. .Sp
  4162. Argument is a list of \fIkey\fR=\fIvalue\fR couples separated by
  4163. \&\*(L":\*(R". In \fIfilter\fR and \fIpsy-rd\fR options that use \*(L":\*(R" as a separator
  4164. themselves, use \*(L",\*(R" instead. They accept it as well since long ago but this
  4165. is kept undocumented for some reason.
  4166. .Sp
  4167. For example to specify libx264 encoding options with \fBffmpeg\fR:
  4168. .Sp
  4169. .Vb 1
  4170. \&        ffmpeg -i foo.mpg -vcodec libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
  4171. .Ve
  4172. .IP "\fBx264\-params (N.A.)\fR" 4
  4173. .IX Item "x264-params (N.A.)"
  4174. Override the x264 configuration using a :\-separated list of key=value
  4175. parameters.
  4176. .Sp
  4177. This option is functionally the same as the \fBx264opts\fR, but is
  4178. duplicated for compatibility with the Libav fork.
  4179. .Sp
  4180. For example to specify libx264 encoding options with \fBffmpeg\fR:
  4181. .Sp
  4182. .Vb 3
  4183. \&        ffmpeg -i INPUT -c:v libx264 -x264-params level=30:bframes=0:weightp=0:\e
  4184. \&        cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:\e
  4185. \&        no-fast-pskip=1:subq=6:8x8dct=0:trellis=0 OUTPUT
  4186. .Ve
  4187. .PP
  4188. Encoding ffpresets for common usages are provided so they can be used with the
  4189. general presets system (e.g. passing the \fBpre\fR option).
  4190. .Sh "libx265"
  4191. .IX Subsection "libx265"
  4192. x265 H.265/HEVC encoder wrapper.
  4193. .PP
  4194. This encoder requires the presence of the libx265 headers and library
  4195. during configuration. You need to explicitly configure the build with
  4196. \&\fB\-\-enable\-libx265\fR.
  4197. .PP
  4198. \fIOptions\fR
  4199. .IX Subsection "Options"
  4200. .IP "\fBpreset\fR" 4
  4201. .IX Item "preset"
  4202. Set the x265 preset.
  4203. .IP "\fBtune\fR" 4
  4204. .IX Item "tune"
  4205. Set the x265 tune parameter.
  4206. .IP "\fBx265\-params\fR" 4
  4207. .IX Item "x265-params"
  4208. Set x265 options using a list of \fIkey\fR=\fIvalue\fR couples separated
  4209. by \*(L":\*(R". See \fBx265 \-\-help\fR for a list of options.
  4210. .Sp
  4211. For example to specify libx265 encoding options with \fB\-x265\-params\fR:
  4212. .Sp
  4213. .Vb 1
  4214. \&        ffmpeg -i input -c:v libx265 -x265-params crf=26:psy-rd=1 output.mp4
  4215. .Ve
  4216. .Sh "libxvid"
  4217. .IX Subsection "libxvid"
  4218. Xvid \s-1MPEG\-4\s0 Part 2 encoder wrapper.
  4219. .PP
  4220. This encoder requires the presence of the libxvidcore headers and library
  4221. during configuration. You need to explicitly configure the build with
  4222. \&\f(CW\*(C`\-\-enable\-libxvid \-\-enable\-gpl\*(C'\fR.
  4223. .PP
  4224. The native \f(CW\*(C`mpeg4\*(C'\fR encoder supports the \s-1MPEG\-4\s0 Part 2 format, so
  4225. users can encode to this format without this library.
  4226. .PP
  4227. \fIOptions\fR
  4228. .IX Subsection "Options"
  4229. .PP
  4230. The following options are supported by the libxvid wrapper. Some of
  4231. the following options are listed but are not documented, and
  4232. correspond to shared codec options. See \fBthe Codec
  4233. Options chapter\fR for their documentation. The other shared options
  4234. which are not listed have no effect for the libxvid encoder.
  4235. .IP "\fBb\fR" 4
  4236. .IX Item "b"
  4237. .PD 0
  4238. .IP "\fBg\fR" 4
  4239. .IX Item "g"
  4240. .IP "\fBqmin\fR" 4
  4241. .IX Item "qmin"
  4242. .IP "\fBqmax\fR" 4
  4243. .IX Item "qmax"
  4244. .IP "\fBmpeg_quant\fR" 4
  4245. .IX Item "mpeg_quant"
  4246. .IP "\fBthreads\fR" 4
  4247. .IX Item "threads"
  4248. .IP "\fBbf\fR" 4
  4249. .IX Item "bf"
  4250. .IP "\fBb_qfactor\fR" 4
  4251. .IX Item "b_qfactor"
  4252. .IP "\fBb_qoffset\fR" 4
  4253. .IX Item "b_qoffset"
  4254. .IP "\fBflags\fR" 4
  4255. .IX Item "flags"
  4256. .PD
  4257. Set specific encoding flags. Possible values:
  4258. .RS 4
  4259. .IP "\fBmv4\fR" 4
  4260. .IX Item "mv4"
  4261. Use four motion vector by macroblock.
  4262. .IP "\fBaic\fR" 4
  4263. .IX Item "aic"
  4264. Enable high quality \s-1AC\s0 prediction.
  4265. .IP "\fBgray\fR" 4
  4266. .IX Item "gray"
  4267. Only encode grayscale.
  4268. .IP "\fBgmc\fR" 4
  4269. .IX Item "gmc"
  4270. Enable the use of global motion compensation (\s-1GMC\s0).
  4271. .IP "\fBqpel\fR" 4
  4272. .IX Item "qpel"
  4273. Enable quarter-pixel motion compensation.
  4274. .IP "\fBcgop\fR" 4
  4275. .IX Item "cgop"
  4276. Enable closed \s-1GOP\s0.
  4277. .IP "\fBglobal_header\fR" 4
  4278. .IX Item "global_header"
  4279. Place global headers in extradata instead of every keyframe.
  4280. .RE
  4281. .RS 4
  4282. .RE
  4283. .IP "\fBtrellis\fR" 4
  4284. .IX Item "trellis"
  4285. .PD 0
  4286. .IP "\fBme_method\fR" 4
  4287. .IX Item "me_method"
  4288. .PD
  4289. Set motion estimation method. Possible values in decreasing order of
  4290. speed and increasing order of quality:
  4291. .RS 4
  4292. .IP "\fBzero\fR" 4
  4293. .IX Item "zero"
  4294. Use no motion estimation (default).
  4295. .IP "\fBphods\fR" 4
  4296. .IX Item "phods"
  4297. .PD 0
  4298. .IP "\fBx1\fR" 4
  4299. .IX Item "x1"
  4300. .IP "\fBlog\fR" 4
  4301. .IX Item "log"
  4302. .PD
  4303. Enable advanced diamond zonal search for 16x16 blocks and half-pixel
  4304. refinement for 16x16 blocks. \fBx1\fR and \fBlog\fR are aliases for
  4305. \&\fBphods\fR.
  4306. .IP "\fBepzs\fR" 4
  4307. .IX Item "epzs"
  4308. Enable all of the things described above, plus advanced diamond zonal
  4309. search for 8x8 blocks, half-pixel refinement for 8x8 blocks, and motion
  4310. estimation on chroma planes.
  4311. .IP "\fBfull\fR" 4
  4312. .IX Item "full"
  4313. Enable all of the things described above, plus extended 16x16 and 8x8
  4314. blocks search.
  4315. .RE
  4316. .RS 4
  4317. .RE
  4318. .IP "\fBmbd\fR" 4
  4319. .IX Item "mbd"
  4320. Set macroblock decision algorithm. Possible values in the increasing
  4321. order of quality:
  4322. .RS 4
  4323. .IP "\fBsimple\fR" 4
  4324. .IX Item "simple"
  4325. Use macroblock comparing function algorithm (default).
  4326. .IP "\fBbits\fR" 4
  4327. .IX Item "bits"
  4328. Enable rate distortion-based half pixel and quarter pixel refinement for
  4329. 16x16 blocks.
  4330. .IP "\fBrd\fR" 4
  4331. .IX Item "rd"
  4332. Enable all of the things described above, plus rate distortion-based
  4333. half pixel and quarter pixel refinement for 8x8 blocks, and rate
  4334. distortion-based search using square pattern.
  4335. .RE
  4336. .RS 4
  4337. .RE
  4338. .IP "\fBlumi_aq\fR" 4
  4339. .IX Item "lumi_aq"
  4340. Enable lumi masking adaptive quantization when set to 1. Default is 0
  4341. (disabled).
  4342. .IP "\fBvariance_aq\fR" 4
  4343. .IX Item "variance_aq"
  4344. Enable variance adaptive quantization when set to 1. Default is 0
  4345. (disabled).
  4346. .Sp
  4347. When combined with \fBlumi_aq\fR, the resulting quality will not
  4348. be better than any of the two specified individually. In other
  4349. words, the resulting quality will be the worse one of the two
  4350. effects.
  4351. .IP "\fBssim\fR" 4
  4352. .IX Item "ssim"
  4353. Set structural similarity (\s-1SSIM\s0) displaying method. Possible values:
  4354. .RS 4
  4355. .IP "\fBoff\fR" 4
  4356. .IX Item "off"
  4357. Disable displaying of \s-1SSIM\s0 information.
  4358. .IP "\fBavg\fR" 4
  4359. .IX Item "avg"
  4360. Output average \s-1SSIM\s0 at the end of encoding to stdout. The format of
  4361. showing the average \s-1SSIM\s0 is:
  4362. .Sp
  4363. .Vb 1
  4364. \&        Average SSIM: %f
  4365. .Ve
  4366. .Sp
  4367. For users who are not familiar with C, \f(CW%f\fR means a float number, or
  4368. a decimal (e.g. 0.939232).
  4369. .IP "\fBframe\fR" 4
  4370. .IX Item "frame"
  4371. Output both per-frame \s-1SSIM\s0 data during encoding and average \s-1SSIM\s0 at
  4372. the end of encoding to stdout. The format of per-frame information
  4373. is:
  4374. .Sp
  4375. .Vb 1
  4376. \&               SSIM: avg: %1.3f min: %1.3f max: %1.3f
  4377. .Ve
  4378. .Sp
  4379. For users who are not familiar with C, \f(CW%1\fR.3f means a float number
  4380. rounded to 3 digits after the dot (e.g. 0.932).
  4381. .RE
  4382. .RS 4
  4383. .RE
  4384. .IP "\fBssim_acc\fR" 4
  4385. .IX Item "ssim_acc"
  4386. Set \s-1SSIM\s0 accuracy. Valid options are integers within the range of
  4387. 0\-4, while 0 gives the most accurate result and 4 computes the
  4388. fastest.
  4389. .Sh "mpeg2"
  4390. .IX Subsection "mpeg2"
  4391. \&\s-1MPEG\-2\s0 video encoder.
  4392. .PP
  4393. \fIOptions\fR
  4394. .IX Subsection "Options"
  4395. .IP "\fBseq_disp_ext\fR \fIinteger\fR" 4
  4396. .IX Item "seq_disp_ext integer"
  4397. Specifies if the encoder should write a sequence_display_extension to the
  4398. output.
  4399. .RS 4
  4400. .IP "\fB\-1\fR" 4
  4401. .IX Item "-1"
  4402. .PD 0
  4403. .IP "\fBauto\fR" 4
  4404. .IX Item "auto"
  4405. .PD
  4406. Decide automatically to write it or not (this is the default) by checking if
  4407. the data to be written is different from the default or unspecified values.
  4408. .IP "\fB0\fR" 4
  4409. .IX Item "0"
  4410. .PD 0
  4411. .IP "\fBnever\fR" 4
  4412. .IX Item "never"
  4413. .PD
  4414. Never write it.
  4415. .IP "\fB1\fR" 4
  4416. .IX Item "1"
  4417. .PD 0
  4418. .IP "\fBalways\fR" 4
  4419. .IX Item "always"
  4420. .PD
  4421. Always write it.
  4422. .RE
  4423. .RS 4
  4424. .RE
  4425. .Sh "png"
  4426. .IX Subsection "png"
  4427. \&\s-1PNG\s0 image encoder.
  4428. .PP
  4429. \fIPrivate options\fR
  4430. .IX Subsection "Private options"
  4431. .IP "\fBdpi\fR \fIinteger\fR" 4
  4432. .IX Item "dpi integer"
  4433. Set physical density of pixels, in dots per inch, unset by default
  4434. .IP "\fBdpm\fR \fIinteger\fR" 4
  4435. .IX Item "dpm integer"
  4436. Set physical density of pixels, in dots per meter, unset by default
  4437. .Sh "ProRes"
  4438. .IX Subsection "ProRes"
  4439. Apple ProRes encoder.
  4440. .PP
  4441. FFmpeg contains 2 ProRes encoders, the prores-aw and prores-ks encoder.
  4442. The used encoder can be chosen with the \f(CW\*(C`\-vcodec\*(C'\fR option.
  4443. .PP
  4444. \fIPrivate Options for prores-ks\fR
  4445. .IX Subsection "Private Options for prores-ks"
  4446. .IP "\fBprofile\fR \fIinteger\fR" 4
  4447. .IX Item "profile integer"
  4448. Select the ProRes profile to encode
  4449. .RS 4
  4450. .IP "\fBproxy\fR" 4
  4451. .IX Item "proxy"
  4452. .PD 0
  4453. .IP "\fBlt\fR" 4
  4454. .IX Item "lt"
  4455. .IP "\fBstandard\fR" 4
  4456. .IX Item "standard"
  4457. .IP "\fBhq\fR" 4
  4458. .IX Item "hq"
  4459. .IP "\fB4444\fR" 4
  4460. .IX Item "4444"
  4461. .RE
  4462. .RS 4
  4463. .RE
  4464. .IP "\fBquant_mat\fR \fIinteger\fR" 4
  4465. .IX Item "quant_mat integer"
  4466. .PD
  4467. Select quantization matrix.
  4468. .RS 4
  4469. .IP "\fBauto\fR" 4
  4470. .IX Item "auto"
  4471. .PD 0
  4472. .IP "\fBdefault\fR" 4
  4473. .IX Item "default"
  4474. .IP "\fBproxy\fR" 4
  4475. .IX Item "proxy"
  4476. .IP "\fBlt\fR" 4
  4477. .IX Item "lt"
  4478. .IP "\fBstandard\fR" 4
  4479. .IX Item "standard"
  4480. .IP "\fBhq\fR" 4
  4481. .IX Item "hq"
  4482. .RE
  4483. .RS 4
  4484. .PD
  4485. .Sp
  4486. If set to \fIauto\fR, the matrix matching the profile will be picked.
  4487. If not set, the matrix providing the highest quality, \fIdefault\fR, will be
  4488. picked.
  4489. .RE
  4490. .IP "\fBbits_per_mb\fR \fIinteger\fR" 4
  4491. .IX Item "bits_per_mb integer"
  4492. How many bits to allot for coding one macroblock. Different profiles use
  4493. between 200 and 2400 bits per macroblock, the maximum is 8000.
  4494. .IP "\fBmbs_per_slice\fR \fIinteger\fR" 4
  4495. .IX Item "mbs_per_slice integer"
  4496. Number of macroblocks in each slice (1\-8); the default value (8)
  4497. should be good in almost all situations.
  4498. .IP "\fBvendor\fR \fIstring\fR" 4
  4499. .IX Item "vendor string"
  4500. Override the 4\-byte vendor \s-1ID\s0.
  4501. A custom vendor \s-1ID\s0 like \fIapl0\fR would claim the stream was produced by
  4502. the Apple encoder.
  4503. .IP "\fBalpha_bits\fR \fIinteger\fR" 4
  4504. .IX Item "alpha_bits integer"
  4505. Specify number of bits for alpha component.
  4506. Possible values are \fI0\fR, \fI8\fR and \fI16\fR.
  4507. Use \fI0\fR to disable alpha plane coding.
  4508. .PP
  4509. \fISpeed considerations\fR
  4510. .IX Subsection "Speed considerations"
  4511. .PP
  4512. In the default mode of operation the encoder has to honor frame constraints
  4513. (i.e. not produce frames with size bigger than requested) while still making
  4514. output picture as good as possible.
  4515. A frame containing a lot of small details is harder to compress and the encoder
  4516. would spend more time searching for appropriate quantizers for each slice.
  4517. .PP
  4518. Setting a higher \fBbits_per_mb\fR limit will improve the speed.
  4519. .PP
  4520. For the fastest encoding speed set the \fBqscale\fR parameter (4 is the
  4521. recommended value) and do not set a size constraint.
  4522. .Sh "libkvazaar"
  4523. .IX Subsection "libkvazaar"
  4524. Kvazaar H.265/HEVC encoder.
  4525. .PP
  4526. Requires the presence of the libkvazaar headers and library during
  4527. configuration. You need to explicitly configure the build with
  4528. \&\fB\-\-enable\-libkvazaar\fR.
  4529. .PP
  4530. \fIOptions\fR
  4531. .IX Subsection "Options"
  4532. .IP "\fBb\fR" 4
  4533. .IX Item "b"
  4534. Set target video bitrate in bit/s and enable rate control.
  4535. .IP "\fBthreads\fR" 4
  4536. .IX Item "threads"
  4537. Set number of encoding threads.
  4538. .IP "\fBkvazaar-params\fR" 4
  4539. .IX Item "kvazaar-params"
  4540. Set kvazaar parameters as a list of \fIname\fR=\fIvalue\fR pairs separated
  4541. by commas (,). See kvazaar documentation for a list of options.
  4542. .SH "SUBTITLES ENCODERS"
  4543. .IX Header "SUBTITLES ENCODERS"
  4544. .Sh "dvdsub"
  4545. .IX Subsection "dvdsub"
  4546. This codec encodes the bitmap subtitle format that is used in DVDs.
  4547. Typically they are stored in \s-1VOBSUB\s0 file pairs (*.idx + *.sub),
  4548. and they can also be used in Matroska files.
  4549. .PP
  4550. \fIOptions\fR
  4551. .IX Subsection "Options"
  4552. .IP "\fBeven_rows_fix\fR" 4
  4553. .IX Item "even_rows_fix"
  4554. When set to 1, enable a work-around that makes the number of pixel rows
  4555. even in all subtitles.  This fixes a problem with some players that
  4556. cut off the bottom row if the number is odd.  The work-around just adds
  4557. a fully transparent row if needed.  The overhead is low, typically
  4558. one byte per subtitle on average.
  4559. .Sp
  4560. By default, this work-around is disabled.
  4561. .SH "SEE ALSO"
  4562. .IX Header "SEE ALSO"
  4563. \&\fIffmpeg\fR\|(1), \fIffplay\fR\|(1), \fIffprobe\fR\|(1), \fIffserver\fR\|(1), \fIlibavcodec\fR\|(3)
  4564. .SH "AUTHORS"
  4565. .IX Header "AUTHORS"
  4566. The FFmpeg developers.
  4567. .PP
  4568. For details about the authorship, see the Git history of the project
  4569. (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
  4570. \&\fBgit log\fR in the FFmpeg source directory, or browsing the
  4571. online repository at <\fBhttp://source.ffmpeg.org\fR>.
  4572. .PP
  4573. Maintainers for the specific components are listed in the file
  4574. \&\fI\s-1MAINTAINERS\s0\fR in the source code tree.
  4575.