You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1108 lines
26KB

  1. @anchor{codec-options}
  2. @chapter Codec Options
  3. @c man begin CODEC OPTIONS
  4. libavcodec provides some generic global options, which can be set on
  5. all the encoders and decoders. In addition each codec may support
  6. so-called private options, which are specific for a given codec.
  7. Sometimes, a global option may only affect a specific kind of codec,
  8. and may be unsensical or ignored by another, so you need to be aware
  9. of the meaning of the specified options. Also some options are
  10. meant only for decoding or encoding.
  11. Options may be set by specifying -@var{option} @var{value} in the
  12. FFmpeg tools, or by setting the value explicitly in the
  13. @code{AVCodecContext} options or using the @file{libavutil/opt.h} API
  14. for programmatic use.
  15. The list of supported options follow:
  16. @table @option
  17. @item b @var{integer} (@emph{encoding,audio,video})
  18. Set bitrate in bits/s. Default value is 200K.
  19. @item ab @var{integer} (@emph{encoding,audio})
  20. Set audio bitrate (in bits/s). Default value is 128K.
  21. @item bt @var{integer} (@emph{encoding,video})
  22. Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate
  23. tolerance specifies how far ratecontrol is willing to deviate from the
  24. target average bitrate value. This is not related to min/max
  25. bitrate. Lowering tolerance too much has an adverse effect on quality.
  26. @item flags @var{flags} (@emph{decoding/encoding,audio,video,subtitles})
  27. Set generic flags.
  28. Possible values:
  29. @table @samp
  30. @item mv4
  31. Use four motion vector by macroblock (mpeg4).
  32. @item qpel
  33. Use 1/4 pel motion compensation.
  34. @item loop
  35. Use loop filter.
  36. @item qscale
  37. Use fixed qscale.
  38. @item gmc
  39. Use gmc.
  40. @item mv0
  41. Always try a mb with mv=<0,0>.
  42. @item input_preserved
  43. @item pass1
  44. Use internal 2pass ratecontrol in first pass mode.
  45. @item pass2
  46. Use internal 2pass ratecontrol in second pass mode.
  47. @item gray
  48. Only decode/encode grayscale.
  49. @item emu_edge
  50. Do not draw edges.
  51. @item psnr
  52. Set error[?] variables during encoding.
  53. @item truncated
  54. @item naq
  55. Normalize adaptive quantization.
  56. @item ildct
  57. Use interlaced DCT.
  58. @item low_delay
  59. Force low delay.
  60. @item global_header
  61. Place global headers in extradata instead of every keyframe.
  62. @item bitexact
  63. Use only bitexact stuff (except (I)DCT).
  64. @item aic
  65. Apply H263 advanced intra coding / mpeg4 ac prediction.
  66. @item cbp
  67. Deprecated, use mpegvideo private options instead.
  68. @item qprd
  69. Deprecated, use mpegvideo private options instead.
  70. @item ilme
  71. Apply interlaced motion estimation.
  72. @item cgop
  73. Use closed gop.
  74. @end table
  75. @item me_method @var{integer} (@emph{encoding,video})
  76. Set motion estimation method.
  77. Possible values:
  78. @table @samp
  79. @item zero
  80. zero motion estimation (fastest)
  81. @item full
  82. full motion estimation (slowest)
  83. @item epzs
  84. EPZS motion estimation (default)
  85. @item esa
  86. esa motion estimation (alias for full)
  87. @item tesa
  88. tesa motion estimation
  89. @item dia
  90. dia motion estimation (alias for epzs)
  91. @item log
  92. log motion estimation
  93. @item phods
  94. phods motion estimation
  95. @item x1
  96. X1 motion estimation
  97. @item hex
  98. hex motion estimation
  99. @item umh
  100. umh motion estimation
  101. @item iter
  102. iter motion estimation
  103. @end table
  104. @item extradata_size @var{integer}
  105. Set extradata size.
  106. @item time_base @var{rational number}
  107. Set codec time base.
  108. It is the fundamental unit of time (in seconds) in terms of which
  109. frame timestamps are represented. For fixed-fps content, timebase
  110. should be @code{1 / frame_rate} and timestamp increments should be
  111. identically 1.
  112. @item g @var{integer} (@emph{encoding,video})
  113. Set the group of picture size. Default value is 12.
  114. @item ar @var{integer} (@emph{decoding/encoding,audio})
  115. Set audio sampling rate (in Hz).
  116. @item ac @var{integer} (@emph{decoding/encoding,audio})
  117. Set number of audio channels.
  118. @item cutoff @var{integer} (@emph{encoding,audio})
  119. Set cutoff bandwidth.
  120. @item frame_size @var{integer} (@emph{encoding,audio})
  121. Set audio frame size.
  122. Each submitted frame except the last must contain exactly frame_size
  123. samples per channel. May be 0 when the codec has
  124. CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
  125. restricted. It is set by some decoders to indicate constant frame
  126. size.
  127. @item frame_number @var{integer}
  128. Set the frame number.
  129. @item delay @var{integer}
  130. @item qcomp @var{float} (@emph{encoding,video})
  131. Set video quantizer scale compression (VBR). It is used as a constant
  132. in the ratecontrol equation. Recommended range for default rc_eq:
  133. 0.0-1.0.
  134. @item qblur @var{float} (@emph{encoding,video})
  135. Set video quantizer scale blur (VBR).
  136. @item qmin @var{integer} (@emph{encoding,video})
  137. Set min video quantizer scale (VBR). Must be included between -1 and
  138. 69, default value is 2.
  139. @item qmax @var{integer} (@emph{encoding,video})
  140. Set max video quantizer scale (VBR). Must be included between -1 and
  141. 1024, default value is 31.
  142. @item qdiff @var{integer} (@emph{encoding,video})
  143. Set max difference between the quantizer scale (VBR).
  144. @item bf @var{integer} (@emph{encoding,video})
  145. Set max number of B frames between non-B-frames.
  146. Must be an integer between -1 and 16. 0 means that B-frames are
  147. disabled. If a value of -1 is used, it will choose an automatic value
  148. depending on the encoder.
  149. Default value is 0.
  150. @item b_qfactor @var{float} (@emph{encoding,video})
  151. Set qp factor between P and B frames.
  152. @item rc_strategy @var{integer} (@emph{encoding,video})
  153. Set ratecontrol method.
  154. @item b_strategy @var{integer} (@emph{encoding,video})
  155. Set strategy to choose between I/P/B-frames.
  156. @item ps @var{integer} (@emph{encoding,video})
  157. Set RTP payload size in bytes.
  158. @item mv_bits @var{integer}
  159. @item header_bits @var{integer}
  160. @item i_tex_bits @var{integer}
  161. @item p_tex_bits @var{integer}
  162. @item i_count @var{integer}
  163. @item p_count @var{integer}
  164. @item skip_count @var{integer}
  165. @item misc_bits @var{integer}
  166. @item frame_bits @var{integer}
  167. @item codec_tag @var{integer}
  168. @item bug @var{flags} (@emph{decoding,video})
  169. Workaround not auto detected encoder bugs.
  170. Possible values:
  171. @table @samp
  172. @item autodetect
  173. @item old_msmpeg4
  174. some old lavc generated msmpeg4v3 files (no autodetection)
  175. @item xvid_ilace
  176. Xvid interlacing bug (autodetected if fourcc==XVIX)
  177. @item ump4
  178. (autodetected if fourcc==UMP4)
  179. @item no_padding
  180. padding bug (autodetected)
  181. @item amv
  182. @item ac_vlc
  183. illegal vlc bug (autodetected per fourcc)
  184. @item qpel_chroma
  185. @item std_qpel
  186. old standard qpel (autodetected per fourcc/version)
  187. @item qpel_chroma2
  188. @item direct_blocksize
  189. direct-qpel-blocksize bug (autodetected per fourcc/version)
  190. @item edge
  191. edge padding bug (autodetected per fourcc/version)
  192. @item hpel_chroma
  193. @item dc_clip
  194. @item ms
  195. Workaround various bugs in microsoft broken decoders.
  196. @item trunc
  197. trancated frames
  198. @end table
  199. @item lelim @var{integer} (@emph{encoding,video})
  200. Set single coefficient elimination threshold for luminance (negative
  201. values also consider DC coefficient).
  202. @item celim @var{integer} (@emph{encoding,video})
  203. Set single coefficient elimination threshold for chrominance (negative
  204. values also consider dc coefficient)
  205. @item strict @var{integer} (@emph{decoding/encoding,audio,video})
  206. Specify how strictly to follow the standards.
  207. Possible values:
  208. @table @samp
  209. @item very
  210. strictly conform to a older more strict version of the spec or reference software
  211. @item strict
  212. strictly conform to all the things in the spec no matter what consequences
  213. @item normal
  214. @item unofficial
  215. allow unofficial extensions
  216. @item experimental
  217. allow non standardized experimental things, experimental
  218. (unfinished/work in progress/not well tested) decoders and encoders.
  219. Note: experimental decoders can pose a security risk, do not use this for
  220. decoding untrusted input.
  221. @end table
  222. @item b_qoffset @var{float} (@emph{encoding,video})
  223. Set QP offset between P and B frames.
  224. @item err_detect @var{flags} (@emph{decoding,audio,video})
  225. Set error detection flags.
  226. Possible values:
  227. @table @samp
  228. @item crccheck
  229. verify embedded CRCs
  230. @item bitstream
  231. detect bitstream specification deviations
  232. @item buffer
  233. detect improper bitstream length
  234. @item explode
  235. abort decoding on minor error detection
  236. @item ignore_err
  237. ignore decoding errors, and continue decoding.
  238. This is useful if you want to analyze the content of a video and thus want
  239. everything to be decoded no matter what. This option will not result in a video
  240. that is pleasing to watch in case of errors.
  241. @item careful
  242. consider things that violate the spec and have not been seen in the wild as errors
  243. @item compliant
  244. consider all spec non compliancies as errors
  245. @item aggressive
  246. consider things that a sane encoder should not do as an error
  247. @end table
  248. @item has_b_frames @var{integer}
  249. @item block_align @var{integer}
  250. @item mpeg_quant @var{integer} (@emph{encoding,video})
  251. Use MPEG quantizers instead of H.263.
  252. @item qsquish @var{float} (@emph{encoding,video})
  253. How to keep quantizer between qmin and qmax (0 = clip, 1 = use
  254. differentiable function).
  255. @item rc_qmod_amp @var{float} (@emph{encoding,video})
  256. Set experimental quantizer modulation.
  257. @item rc_qmod_freq @var{integer} (@emph{encoding,video})
  258. Set experimental quantizer modulation.
  259. @item rc_override_count @var{integer}
  260. @item rc_eq @var{string} (@emph{encoding,video})
  261. Set rate control equation. When computing the expression, besides the
  262. standard functions defined in the section 'Expression Evaluation', the
  263. following functions are available: bits2qp(bits), qp2bits(qp). Also
  264. the following constants are available: iTex pTex tex mv fCode iCount
  265. mcVar var isI isP isB avgQP qComp avgIITex avgPITex avgPPTex avgBPTex
  266. avgTex.
  267. @item maxrate @var{integer} (@emph{encoding,audio,video})
  268. Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
  269. @item minrate @var{integer} (@emph{encoding,audio,video})
  270. Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
  271. encode. It is of little use elsewise.
  272. @item bufsize @var{integer} (@emph{encoding,audio,video})
  273. Set ratecontrol buffer size (in bits).
  274. @item rc_buf_aggressivity @var{float} (@emph{encoding,video})
  275. Currently useless.
  276. @item i_qfactor @var{float} (@emph{encoding,video})
  277. Set QP factor between P and I frames.
  278. @item i_qoffset @var{float} (@emph{encoding,video})
  279. Set QP offset between P and I frames.
  280. @item rc_init_cplx @var{float} (@emph{encoding,video})
  281. Set initial complexity for 1-pass encoding.
  282. @item dct @var{integer} (@emph{encoding,video})
  283. Set DCT algorithm.
  284. Possible values:
  285. @table @samp
  286. @item auto
  287. autoselect a good one (default)
  288. @item fastint
  289. fast integer
  290. @item int
  291. accurate integer
  292. @item mmx
  293. @item altivec
  294. @item faan
  295. floating point AAN DCT
  296. @end table
  297. @item lumi_mask @var{float} (@emph{encoding,video})
  298. Compress bright areas stronger than medium ones.
  299. @item tcplx_mask @var{float} (@emph{encoding,video})
  300. Set temporal complexity masking.
  301. @item scplx_mask @var{float} (@emph{encoding,video})
  302. Set spatial complexity masking.
  303. @item p_mask @var{float} (@emph{encoding,video})
  304. Set inter masking.
  305. @item dark_mask @var{float} (@emph{encoding,video})
  306. Compress dark areas stronger than medium ones.
  307. @item idct @var{integer} (@emph{decoding/encoding,video})
  308. Select IDCT implementation.
  309. Possible values:
  310. @table @samp
  311. @item auto
  312. @item int
  313. @item simple
  314. @item simplemmx
  315. @item arm
  316. @item altivec
  317. @item sh4
  318. @item simplearm
  319. @item simplearmv5te
  320. @item simplearmv6
  321. @item simpleneon
  322. @item simplealpha
  323. @item ipp
  324. @item xvidmmx
  325. @item faani
  326. floating point AAN IDCT
  327. @end table
  328. @item slice_count @var{integer}
  329. @item ec @var{flags} (@emph{decoding,video})
  330. Set error concealment strategy.
  331. Possible values:
  332. @table @samp
  333. @item guess_mvs
  334. iterative motion vector (MV) search (slow)
  335. @item deblock
  336. use strong deblock filter for damaged MBs
  337. @item favor_inter
  338. favor predicting from the previous frame instead of the current
  339. @end table
  340. @item bits_per_coded_sample @var{integer}
  341. @item pred @var{integer} (@emph{encoding,video})
  342. Set prediction method.
  343. Possible values:
  344. @table @samp
  345. @item left
  346. @item plane
  347. @item median
  348. @end table
  349. @item aspect @var{rational number} (@emph{encoding,video})
  350. Set sample aspect ratio.
  351. @item debug @var{flags} (@emph{decoding/encoding,audio,video,subtitles})
  352. Print specific debug info.
  353. Possible values:
  354. @table @samp
  355. @item pict
  356. picture info
  357. @item rc
  358. rate control
  359. @item bitstream
  360. @item mb_type
  361. macroblock (MB) type
  362. @item qp
  363. per-block quantization parameter (QP)
  364. @item mv
  365. motion vector
  366. @item dct_coeff
  367. @item skip
  368. @item startcode
  369. @item pts
  370. @item er
  371. error recognition
  372. @item mmco
  373. memory management control operations (H.264)
  374. @item bugs
  375. @item vis_qp
  376. visualize quantization parameter (QP), lower QP are tinted greener
  377. @item vis_mb_type
  378. visualize block types
  379. @item buffers
  380. picture buffer allocations
  381. @item thread_ops
  382. threading operations
  383. @end table
  384. @item vismv @var{integer} (@emph{decoding,video})
  385. Visualize motion vectors (MVs).
  386. Possible values:
  387. @table @samp
  388. @item pf
  389. forward predicted MVs of P-frames
  390. @item bf
  391. forward predicted MVs of B-frames
  392. @item bb
  393. backward predicted MVs of B-frames
  394. @end table
  395. @item cmp @var{integer} (@emph{encoding,video})
  396. Set full pel me compare function.
  397. Possible values:
  398. @table @samp
  399. @item sad
  400. sum of absolute differences, fast (default)
  401. @item sse
  402. sum of squared errors
  403. @item satd
  404. sum of absolute Hadamard transformed differences
  405. @item dct
  406. sum of absolute DCT transformed differences
  407. @item psnr
  408. sum of squared quantization errors (avoid, low quality)
  409. @item bit
  410. number of bits needed for the block
  411. @item rd
  412. rate distortion optimal, slow
  413. @item zero
  414. 0
  415. @item vsad
  416. sum of absolute vertical differences
  417. @item vsse
  418. sum of squared vertical differences
  419. @item nsse
  420. noise preserving sum of squared differences
  421. @item w53
  422. 5/3 wavelet, only used in snow
  423. @item w97
  424. 9/7 wavelet, only used in snow
  425. @item dctmax
  426. @item chroma
  427. @end table
  428. @item subcmp @var{integer} (@emph{encoding,video})
  429. Set sub pel me compare function.
  430. Possible values:
  431. @table @samp
  432. @item sad
  433. sum of absolute differences, fast (default)
  434. @item sse
  435. sum of squared errors
  436. @item satd
  437. sum of absolute Hadamard transformed differences
  438. @item dct
  439. sum of absolute DCT transformed differences
  440. @item psnr
  441. sum of squared quantization errors (avoid, low quality)
  442. @item bit
  443. number of bits needed for the block
  444. @item rd
  445. rate distortion optimal, slow
  446. @item zero
  447. 0
  448. @item vsad
  449. sum of absolute vertical differences
  450. @item vsse
  451. sum of squared vertical differences
  452. @item nsse
  453. noise preserving sum of squared differences
  454. @item w53
  455. 5/3 wavelet, only used in snow
  456. @item w97
  457. 9/7 wavelet, only used in snow
  458. @item dctmax
  459. @item chroma
  460. @end table
  461. @item mbcmp @var{integer} (@emph{encoding,video})
  462. Set macroblock compare function.
  463. Possible values:
  464. @table @samp
  465. @item sad
  466. sum of absolute differences, fast (default)
  467. @item sse
  468. sum of squared errors
  469. @item satd
  470. sum of absolute Hadamard transformed differences
  471. @item dct
  472. sum of absolute DCT transformed differences
  473. @item psnr
  474. sum of squared quantization errors (avoid, low quality)
  475. @item bit
  476. number of bits needed for the block
  477. @item rd
  478. rate distortion optimal, slow
  479. @item zero
  480. 0
  481. @item vsad
  482. sum of absolute vertical differences
  483. @item vsse
  484. sum of squared vertical differences
  485. @item nsse
  486. noise preserving sum of squared differences
  487. @item w53
  488. 5/3 wavelet, only used in snow
  489. @item w97
  490. 9/7 wavelet, only used in snow
  491. @item dctmax
  492. @item chroma
  493. @end table
  494. @item ildctcmp @var{integer} (@emph{encoding,video})
  495. Set interlaced dct compare function.
  496. Possible values:
  497. @table @samp
  498. @item sad
  499. sum of absolute differences, fast (default)
  500. @item sse
  501. sum of squared errors
  502. @item satd
  503. sum of absolute Hadamard transformed differences
  504. @item dct
  505. sum of absolute DCT transformed differences
  506. @item psnr
  507. sum of squared quantization errors (avoid, low quality)
  508. @item bit
  509. number of bits needed for the block
  510. @item rd
  511. rate distortion optimal, slow
  512. @item zero
  513. 0
  514. @item vsad
  515. sum of absolute vertical differences
  516. @item vsse
  517. sum of squared vertical differences
  518. @item nsse
  519. noise preserving sum of squared differences
  520. @item w53
  521. 5/3 wavelet, only used in snow
  522. @item w97
  523. 9/7 wavelet, only used in snow
  524. @item dctmax
  525. @item chroma
  526. @end table
  527. @item dia_size @var{integer} (@emph{encoding,video})
  528. Set diamond type & size for motion estimation.
  529. @item last_pred @var{integer} (@emph{encoding,video})
  530. Set amount of motion predictors from the previous frame.
  531. @item preme @var{integer} (@emph{encoding,video})
  532. Set pre motion estimation.
  533. @item precmp @var{integer} (@emph{encoding,video})
  534. Set pre motion estimation compare function.
  535. Possible values:
  536. @table @samp
  537. @item sad
  538. sum of absolute differences, fast (default)
  539. @item sse
  540. sum of squared errors
  541. @item satd
  542. sum of absolute Hadamard transformed differences
  543. @item dct
  544. sum of absolute DCT transformed differences
  545. @item psnr
  546. sum of squared quantization errors (avoid, low quality)
  547. @item bit
  548. number of bits needed for the block
  549. @item rd
  550. rate distortion optimal, slow
  551. @item zero
  552. 0
  553. @item vsad
  554. sum of absolute vertical differences
  555. @item vsse
  556. sum of squared vertical differences
  557. @item nsse
  558. noise preserving sum of squared differences
  559. @item w53
  560. 5/3 wavelet, only used in snow
  561. @item w97
  562. 9/7 wavelet, only used in snow
  563. @item dctmax
  564. @item chroma
  565. @end table
  566. @item pre_dia_size @var{integer} (@emph{encoding,video})
  567. Set diamond type & size for motion estimation pre-pass.
  568. @item subq @var{integer} (@emph{encoding,video})
  569. Set sub pel motion estimation quality.
  570. @item dtg_active_format @var{integer}
  571. @item me_range @var{integer} (@emph{encoding,video})
  572. Set limit motion vectors range (1023 for DivX player).
  573. @item ibias @var{integer} (@emph{encoding,video})
  574. Set intra quant bias.
  575. @item pbias @var{integer} (@emph{encoding,video})
  576. Set inter quant bias.
  577. @item color_table_id @var{integer}
  578. @item global_quality @var{integer} (@emph{encoding,audio,video})
  579. @item coder @var{integer} (@emph{encoding,video})
  580. Possible values:
  581. @table @samp
  582. @item vlc
  583. variable length coder / huffman coder
  584. @item ac
  585. arithmetic coder
  586. @item raw
  587. raw (no encoding)
  588. @item rle
  589. run-length coder
  590. @item deflate
  591. deflate-based coder
  592. @end table
  593. @item context @var{integer} (@emph{encoding,video})
  594. Set context model.
  595. @item slice_flags @var{integer}
  596. @item xvmc_acceleration @var{integer}
  597. @item mbd @var{integer} (@emph{encoding,video})
  598. Set macroblock decision algorithm (high quality mode).
  599. Possible values:
  600. @table @samp
  601. @item simple
  602. use mbcmp (default)
  603. @item bits
  604. use fewest bits
  605. @item rd
  606. use best rate distortion
  607. @end table
  608. @item stream_codec_tag @var{integer}
  609. @item sc_threshold @var{integer} (@emph{encoding,video})
  610. Set scene change threshold.
  611. @item lmin @var{integer} (@emph{encoding,video})
  612. Set min lagrange factor (VBR).
  613. @item lmax @var{integer} (@emph{encoding,video})
  614. Set max lagrange factor (VBR).
  615. @item nr @var{integer} (@emph{encoding,video})
  616. Set noise reduction.
  617. @item rc_init_occupancy @var{integer} (@emph{encoding,video})
  618. Set number of bits which should be loaded into the rc buffer before
  619. decoding starts.
  620. @item flags2 @var{flags} (@emph{decoding/encoding,audio,video})
  621. Possible values:
  622. @table @samp
  623. @item fast
  624. Allow non spec compliant speedup tricks.
  625. @item sgop
  626. Deprecated, use mpegvideo private options instead.
  627. @item noout
  628. Skip bitstream encoding.
  629. @item ignorecrop
  630. Ignore cropping information from sps.
  631. @item local_header
  632. Place global headers at every keyframe instead of in extradata.
  633. @item chunks
  634. Frame data might be split into multiple chunks.
  635. @item showall
  636. Show all frames before the first keyframe.
  637. @item skiprd
  638. Deprecated, use mpegvideo private options instead.
  639. @end table
  640. @item error @var{integer} (@emph{encoding,video})
  641. @item qns @var{integer} (@emph{encoding,video})
  642. Deprecated, use mpegvideo private options instead.
  643. @item threads @var{integer} (@emph{decoding/encoding,video})
  644. Possible values:
  645. @table @samp
  646. @item auto
  647. detect a good number of threads
  648. @end table
  649. @item me_threshold @var{integer} (@emph{encoding,video})
  650. Set motion estimation threshold.
  651. @item mb_threshold @var{integer} (@emph{encoding,video})
  652. Set macroblock threshold.
  653. @item dc @var{integer} (@emph{encoding,video})
  654. Set intra_dc_precision.
  655. @item nssew @var{integer} (@emph{encoding,video})
  656. Set nsse weight.
  657. @item skip_top @var{integer} (@emph{decoding,video})
  658. Set number of macroblock rows at the top which are skipped.
  659. @item skip_bottom @var{integer} (@emph{decoding,video})
  660. Set number of macroblock rows at the bottom which are skipped.
  661. @item profile @var{integer} (@emph{encoding,audio,video})
  662. Possible values:
  663. @table @samp
  664. @item unknown
  665. @item aac_main
  666. @item aac_low
  667. @item aac_ssr
  668. @item aac_ltp
  669. @item aac_he
  670. @item aac_he_v2
  671. @item aac_ld
  672. @item aac_eld
  673. @item mpeg2_aac_low
  674. @item mpeg2_aac_he
  675. @item dts
  676. @item dts_es
  677. @item dts_96_24
  678. @item dts_hd_hra
  679. @item dts_hd_ma
  680. @end table
  681. @item level @var{integer} (@emph{encoding,audio,video})
  682. Possible values:
  683. @table @samp
  684. @item unknown
  685. @end table
  686. @item lowres @var{integer} (@emph{decoding,audio,video})
  687. Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
  688. @item skip_threshold @var{integer} (@emph{encoding,video})
  689. Set frame skip threshold.
  690. @item skip_factor @var{integer} (@emph{encoding,video})
  691. Set frame skip factor.
  692. @item skip_exp @var{integer} (@emph{encoding,video})
  693. Set frame skip exponent.
  694. Negative values behave identical to the corresponding positive ones, except
  695. that the score is normalized.
  696. Positive values exist primarly for compatibility reasons and are not so useful.
  697. @item skipcmp @var{integer} (@emph{encoding,video})
  698. Set frame skip compare function.
  699. Possible values:
  700. @table @samp
  701. @item sad
  702. sum of absolute differences, fast (default)
  703. @item sse
  704. sum of squared errors
  705. @item satd
  706. sum of absolute Hadamard transformed differences
  707. @item dct
  708. sum of absolute DCT transformed differences
  709. @item psnr
  710. sum of squared quantization errors (avoid, low quality)
  711. @item bit
  712. number of bits needed for the block
  713. @item rd
  714. rate distortion optimal, slow
  715. @item zero
  716. 0
  717. @item vsad
  718. sum of absolute vertical differences
  719. @item vsse
  720. sum of squared vertical differences
  721. @item nsse
  722. noise preserving sum of squared differences
  723. @item w53
  724. 5/3 wavelet, only used in snow
  725. @item w97
  726. 9/7 wavelet, only used in snow
  727. @item dctmax
  728. @item chroma
  729. @end table
  730. @item border_mask @var{float} (@emph{encoding,video})
  731. Increase the quantizer for macroblocks close to borders.
  732. @item mblmin @var{integer} (@emph{encoding,video})
  733. Set min macroblock lagrange factor (VBR).
  734. @item mblmax @var{integer} (@emph{encoding,video})
  735. Set max macroblock lagrange factor (VBR).
  736. @item mepc @var{integer} (@emph{encoding,video})
  737. Set motion estimation bitrate penalty compensation (1.0 = 256).
  738. @item skip_loop_filter @var{integer} (@emph{decoding,video})
  739. @item skip_idct @var{integer} (@emph{decoding,video})
  740. @item skip_frame @var{integer} (@emph{decoding,video})
  741. Make decoder discard processing depending on the frame type selected
  742. by the option value.
  743. @option{skip_loop_filter} skips frame loop filtering, @option{skip_idct}
  744. skips frame IDCT/dequantization, @option{skip_frame} skips decoding.
  745. Possible values:
  746. @table @samp
  747. @item none
  748. Discard no frame.
  749. @item default
  750. Discard useless frames like 0-sized frames.
  751. @item noref
  752. Discard all non-reference frames.
  753. @item bidir
  754. Discard all bidirectional frames.
  755. @item nokey
  756. Discard all frames excepts keyframes.
  757. @item all
  758. Discard all frames.
  759. @end table
  760. Default value is @samp{default}.
  761. @item bidir_refine @var{integer} (@emph{encoding,video})
  762. Refine the two motion vectors used in bidirectional macroblocks.
  763. @item brd_scale @var{integer} (@emph{encoding,video})
  764. Downscale frames for dynamic B-frame decision.
  765. @item keyint_min @var{integer} (@emph{encoding,video})
  766. Set minimum interval between IDR-frames.
  767. @item refs @var{integer} (@emph{encoding,video})
  768. Set reference frames to consider for motion compensation.
  769. @item chromaoffset @var{integer} (@emph{encoding,video})
  770. Set chroma qp offset from luma.
  771. @item trellis @var{integer} (@emph{encoding,audio,video})
  772. Set rate-distortion optimal quantization.
  773. @item sc_factor @var{integer} (@emph{encoding,video})
  774. Set value multiplied by qscale for each frame and added to
  775. scene_change_score.
  776. @item mv0_threshold @var{integer} (@emph{encoding,video})
  777. @item b_sensitivity @var{integer} (@emph{encoding,video})
  778. Adjust sensitivity of b_frame_strategy 1.
  779. @item compression_level @var{integer} (@emph{encoding,audio,video})
  780. @item min_prediction_order @var{integer} (@emph{encoding,audio})
  781. @item max_prediction_order @var{integer} (@emph{encoding,audio})
  782. @item timecode_frame_start @var{integer} (@emph{encoding,video})
  783. Set GOP timecode frame start number, in non drop frame format.
  784. @item request_channels @var{integer} (@emph{decoding,audio})
  785. Set desired number of audio channels.
  786. @item bits_per_raw_sample @var{integer}
  787. @item channel_layout @var{integer} (@emph{decoding/encoding,audio})
  788. Possible values:
  789. @table @samp
  790. @end table
  791. @item request_channel_layout @var{integer} (@emph{decoding,audio})
  792. Possible values:
  793. @table @samp
  794. @end table
  795. @item rc_max_vbv_use @var{float} (@emph{encoding,video})
  796. @item rc_min_vbv_use @var{float} (@emph{encoding,video})
  797. @item ticks_per_frame @var{integer} (@emph{decoding/encoding,audio,video})
  798. @item color_primaries @var{integer} (@emph{decoding/encoding,video})
  799. @item color_trc @var{integer} (@emph{decoding/encoding,video})
  800. @item colorspace @var{integer} (@emph{decoding/encoding,video})
  801. @item color_range @var{integer} (@emph{decoding/encoding,video})
  802. @item chroma_sample_location @var{integer} (@emph{decoding/encoding,video})
  803. @item log_level_offset @var{integer}
  804. Set the log level offset.
  805. @item slices @var{integer} (@emph{encoding,video})
  806. Number of slices, used in parallelized encoding.
  807. @item thread_type @var{flags} (@emph{decoding/encoding,video})
  808. Select multithreading type.
  809. Possible values:
  810. @table @samp
  811. @item slice
  812. @item frame
  813. @end table
  814. @item audio_service_type @var{integer} (@emph{encoding,audio})
  815. Set audio service type.
  816. Possible values:
  817. @table @samp
  818. @item ma
  819. Main Audio Service
  820. @item ef
  821. Effects
  822. @item vi
  823. Visually Impaired
  824. @item hi
  825. Hearing Impaired
  826. @item di
  827. Dialogue
  828. @item co
  829. Commentary
  830. @item em
  831. Emergency
  832. @item vo
  833. Voice Over
  834. @item ka
  835. Karaoke
  836. @end table
  837. @item request_sample_fmt @var{sample_fmt} (@emph{decoding,audio})
  838. Set sample format audio decoders should prefer. Default value is
  839. @code{none}.
  840. @item pkt_timebase @var{rational number}
  841. @item sub_charenc @var{encoding} (@emph{decoding,subtitles})
  842. Set the input subtitles character encoding.
  843. @item field_order @var{field_order} (@emph{video})
  844. Set/override the field order of the video.
  845. Possible values:
  846. @table @samp
  847. @item progressive
  848. Progressive video
  849. @item tt
  850. Interlaced video, top field coded and displayed first
  851. @item bb
  852. Interlaced video, bottom field coded and displayed first
  853. @item tb
  854. Interlaced video, top coded first, bottom displayed first
  855. @item bt
  856. Interlaced video, bottom coded first, top displayed first
  857. @end table
  858. @item skip_alpha @var{integer} (@emph{decoding,video})
  859. Set to 1 to disable processing alpha (transparency). This works like the
  860. @samp{gray} flag in the @option{flags} option which skips chroma information
  861. instead of alpha. Default is 0.
  862. @end table
  863. @c man end CODEC OPTIONS
  864. @ifclear config-writeonly
  865. @include decoders.texi
  866. @end ifclear
  867. @ifclear config-readonly
  868. @include encoders.texi
  869. @end ifclear