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.

1106 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. @end table
  338. @item bits_per_coded_sample @var{integer}
  339. @item pred @var{integer} (@emph{encoding,video})
  340. Set prediction method.
  341. Possible values:
  342. @table @samp
  343. @item left
  344. @item plane
  345. @item median
  346. @end table
  347. @item aspect @var{rational number} (@emph{encoding,video})
  348. Set sample aspect ratio.
  349. @item debug @var{flags} (@emph{decoding/encoding,audio,video,subtitles})
  350. Print specific debug info.
  351. Possible values:
  352. @table @samp
  353. @item pict
  354. picture info
  355. @item rc
  356. rate control
  357. @item bitstream
  358. @item mb_type
  359. macroblock (MB) type
  360. @item qp
  361. per-block quantization parameter (QP)
  362. @item mv
  363. motion vector
  364. @item dct_coeff
  365. @item skip
  366. @item startcode
  367. @item pts
  368. @item er
  369. error recognition
  370. @item mmco
  371. memory management control operations (H.264)
  372. @item bugs
  373. @item vis_qp
  374. visualize quantization parameter (QP), lower QP are tinted greener
  375. @item vis_mb_type
  376. visualize block types
  377. @item buffers
  378. picture buffer allocations
  379. @item thread_ops
  380. threading operations
  381. @end table
  382. @item vismv @var{integer} (@emph{decoding,video})
  383. Visualize motion vectors (MVs).
  384. Possible values:
  385. @table @samp
  386. @item pf
  387. forward predicted MVs of P-frames
  388. @item bf
  389. forward predicted MVs of B-frames
  390. @item bb
  391. backward predicted MVs of B-frames
  392. @end table
  393. @item cmp @var{integer} (@emph{encoding,video})
  394. Set full pel me compare function.
  395. Possible values:
  396. @table @samp
  397. @item sad
  398. sum of absolute differences, fast (default)
  399. @item sse
  400. sum of squared errors
  401. @item satd
  402. sum of absolute Hadamard transformed differences
  403. @item dct
  404. sum of absolute DCT transformed differences
  405. @item psnr
  406. sum of squared quantization errors (avoid, low quality)
  407. @item bit
  408. number of bits needed for the block
  409. @item rd
  410. rate distortion optimal, slow
  411. @item zero
  412. 0
  413. @item vsad
  414. sum of absolute vertical differences
  415. @item vsse
  416. sum of squared vertical differences
  417. @item nsse
  418. noise preserving sum of squared differences
  419. @item w53
  420. 5/3 wavelet, only used in snow
  421. @item w97
  422. 9/7 wavelet, only used in snow
  423. @item dctmax
  424. @item chroma
  425. @end table
  426. @item subcmp @var{integer} (@emph{encoding,video})
  427. Set sub pel me compare function.
  428. Possible values:
  429. @table @samp
  430. @item sad
  431. sum of absolute differences, fast (default)
  432. @item sse
  433. sum of squared errors
  434. @item satd
  435. sum of absolute Hadamard transformed differences
  436. @item dct
  437. sum of absolute DCT transformed differences
  438. @item psnr
  439. sum of squared quantization errors (avoid, low quality)
  440. @item bit
  441. number of bits needed for the block
  442. @item rd
  443. rate distortion optimal, slow
  444. @item zero
  445. 0
  446. @item vsad
  447. sum of absolute vertical differences
  448. @item vsse
  449. sum of squared vertical differences
  450. @item nsse
  451. noise preserving sum of squared differences
  452. @item w53
  453. 5/3 wavelet, only used in snow
  454. @item w97
  455. 9/7 wavelet, only used in snow
  456. @item dctmax
  457. @item chroma
  458. @end table
  459. @item mbcmp @var{integer} (@emph{encoding,video})
  460. Set macroblock compare function.
  461. Possible values:
  462. @table @samp
  463. @item sad
  464. sum of absolute differences, fast (default)
  465. @item sse
  466. sum of squared errors
  467. @item satd
  468. sum of absolute Hadamard transformed differences
  469. @item dct
  470. sum of absolute DCT transformed differences
  471. @item psnr
  472. sum of squared quantization errors (avoid, low quality)
  473. @item bit
  474. number of bits needed for the block
  475. @item rd
  476. rate distortion optimal, slow
  477. @item zero
  478. 0
  479. @item vsad
  480. sum of absolute vertical differences
  481. @item vsse
  482. sum of squared vertical differences
  483. @item nsse
  484. noise preserving sum of squared differences
  485. @item w53
  486. 5/3 wavelet, only used in snow
  487. @item w97
  488. 9/7 wavelet, only used in snow
  489. @item dctmax
  490. @item chroma
  491. @end table
  492. @item ildctcmp @var{integer} (@emph{encoding,video})
  493. Set interlaced dct compare function.
  494. Possible values:
  495. @table @samp
  496. @item sad
  497. sum of absolute differences, fast (default)
  498. @item sse
  499. sum of squared errors
  500. @item satd
  501. sum of absolute Hadamard transformed differences
  502. @item dct
  503. sum of absolute DCT transformed differences
  504. @item psnr
  505. sum of squared quantization errors (avoid, low quality)
  506. @item bit
  507. number of bits needed for the block
  508. @item rd
  509. rate distortion optimal, slow
  510. @item zero
  511. 0
  512. @item vsad
  513. sum of absolute vertical differences
  514. @item vsse
  515. sum of squared vertical differences
  516. @item nsse
  517. noise preserving sum of squared differences
  518. @item w53
  519. 5/3 wavelet, only used in snow
  520. @item w97
  521. 9/7 wavelet, only used in snow
  522. @item dctmax
  523. @item chroma
  524. @end table
  525. @item dia_size @var{integer} (@emph{encoding,video})
  526. Set diamond type & size for motion estimation.
  527. @item last_pred @var{integer} (@emph{encoding,video})
  528. Set amount of motion predictors from the previous frame.
  529. @item preme @var{integer} (@emph{encoding,video})
  530. Set pre motion estimation.
  531. @item precmp @var{integer} (@emph{encoding,video})
  532. Set pre motion estimation compare function.
  533. Possible values:
  534. @table @samp
  535. @item sad
  536. sum of absolute differences, fast (default)
  537. @item sse
  538. sum of squared errors
  539. @item satd
  540. sum of absolute Hadamard transformed differences
  541. @item dct
  542. sum of absolute DCT transformed differences
  543. @item psnr
  544. sum of squared quantization errors (avoid, low quality)
  545. @item bit
  546. number of bits needed for the block
  547. @item rd
  548. rate distortion optimal, slow
  549. @item zero
  550. 0
  551. @item vsad
  552. sum of absolute vertical differences
  553. @item vsse
  554. sum of squared vertical differences
  555. @item nsse
  556. noise preserving sum of squared differences
  557. @item w53
  558. 5/3 wavelet, only used in snow
  559. @item w97
  560. 9/7 wavelet, only used in snow
  561. @item dctmax
  562. @item chroma
  563. @end table
  564. @item pre_dia_size @var{integer} (@emph{encoding,video})
  565. Set diamond type & size for motion estimation pre-pass.
  566. @item subq @var{integer} (@emph{encoding,video})
  567. Set sub pel motion estimation quality.
  568. @item dtg_active_format @var{integer}
  569. @item me_range @var{integer} (@emph{encoding,video})
  570. Set limit motion vectors range (1023 for DivX player).
  571. @item ibias @var{integer} (@emph{encoding,video})
  572. Set intra quant bias.
  573. @item pbias @var{integer} (@emph{encoding,video})
  574. Set inter quant bias.
  575. @item color_table_id @var{integer}
  576. @item global_quality @var{integer} (@emph{encoding,audio,video})
  577. @item coder @var{integer} (@emph{encoding,video})
  578. Possible values:
  579. @table @samp
  580. @item vlc
  581. variable length coder / huffman coder
  582. @item ac
  583. arithmetic coder
  584. @item raw
  585. raw (no encoding)
  586. @item rle
  587. run-length coder
  588. @item deflate
  589. deflate-based coder
  590. @end table
  591. @item context @var{integer} (@emph{encoding,video})
  592. Set context model.
  593. @item slice_flags @var{integer}
  594. @item xvmc_acceleration @var{integer}
  595. @item mbd @var{integer} (@emph{encoding,video})
  596. Set macroblock decision algorithm (high quality mode).
  597. Possible values:
  598. @table @samp
  599. @item simple
  600. use mbcmp (default)
  601. @item bits
  602. use fewest bits
  603. @item rd
  604. use best rate distortion
  605. @end table
  606. @item stream_codec_tag @var{integer}
  607. @item sc_threshold @var{integer} (@emph{encoding,video})
  608. Set scene change threshold.
  609. @item lmin @var{integer} (@emph{encoding,video})
  610. Set min lagrange factor (VBR).
  611. @item lmax @var{integer} (@emph{encoding,video})
  612. Set max lagrange factor (VBR).
  613. @item nr @var{integer} (@emph{encoding,video})
  614. Set noise reduction.
  615. @item rc_init_occupancy @var{integer} (@emph{encoding,video})
  616. Set number of bits which should be loaded into the rc buffer before
  617. decoding starts.
  618. @item flags2 @var{flags} (@emph{decoding/encoding,audio,video})
  619. Possible values:
  620. @table @samp
  621. @item fast
  622. Allow non spec compliant speedup tricks.
  623. @item sgop
  624. Deprecated, use mpegvideo private options instead.
  625. @item noout
  626. Skip bitstream encoding.
  627. @item ignorecrop
  628. Ignore cropping information from sps.
  629. @item local_header
  630. Place global headers at every keyframe instead of in extradata.
  631. @item chunks
  632. Frame data might be split into multiple chunks.
  633. @item showall
  634. Show all frames before the first keyframe.
  635. @item skiprd
  636. Deprecated, use mpegvideo private options instead.
  637. @end table
  638. @item error @var{integer} (@emph{encoding,video})
  639. @item qns @var{integer} (@emph{encoding,video})
  640. Deprecated, use mpegvideo private options instead.
  641. @item threads @var{integer} (@emph{decoding/encoding,video})
  642. Possible values:
  643. @table @samp
  644. @item auto
  645. detect a good number of threads
  646. @end table
  647. @item me_threshold @var{integer} (@emph{encoding,video})
  648. Set motion estimation threshold.
  649. @item mb_threshold @var{integer} (@emph{encoding,video})
  650. Set macroblock threshold.
  651. @item dc @var{integer} (@emph{encoding,video})
  652. Set intra_dc_precision.
  653. @item nssew @var{integer} (@emph{encoding,video})
  654. Set nsse weight.
  655. @item skip_top @var{integer} (@emph{decoding,video})
  656. Set number of macroblock rows at the top which are skipped.
  657. @item skip_bottom @var{integer} (@emph{decoding,video})
  658. Set number of macroblock rows at the bottom which are skipped.
  659. @item profile @var{integer} (@emph{encoding,audio,video})
  660. Possible values:
  661. @table @samp
  662. @item unknown
  663. @item aac_main
  664. @item aac_low
  665. @item aac_ssr
  666. @item aac_ltp
  667. @item aac_he
  668. @item aac_he_v2
  669. @item aac_ld
  670. @item aac_eld
  671. @item mpeg2_aac_low
  672. @item mpeg2_aac_he
  673. @item dts
  674. @item dts_es
  675. @item dts_96_24
  676. @item dts_hd_hra
  677. @item dts_hd_ma
  678. @end table
  679. @item level @var{integer} (@emph{encoding,audio,video})
  680. Possible values:
  681. @table @samp
  682. @item unknown
  683. @end table
  684. @item lowres @var{integer} (@emph{decoding,audio,video})
  685. Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
  686. @item skip_threshold @var{integer} (@emph{encoding,video})
  687. Set frame skip threshold.
  688. @item skip_factor @var{integer} (@emph{encoding,video})
  689. Set frame skip factor.
  690. @item skip_exp @var{integer} (@emph{encoding,video})
  691. Set frame skip exponent.
  692. Negative values behave identical to the corresponding positive ones, except
  693. that the score is normalized.
  694. Positive values exist primarly for compatibility reasons and are not so useful.
  695. @item skipcmp @var{integer} (@emph{encoding,video})
  696. Set frame skip compare function.
  697. Possible values:
  698. @table @samp
  699. @item sad
  700. sum of absolute differences, fast (default)
  701. @item sse
  702. sum of squared errors
  703. @item satd
  704. sum of absolute Hadamard transformed differences
  705. @item dct
  706. sum of absolute DCT transformed differences
  707. @item psnr
  708. sum of squared quantization errors (avoid, low quality)
  709. @item bit
  710. number of bits needed for the block
  711. @item rd
  712. rate distortion optimal, slow
  713. @item zero
  714. 0
  715. @item vsad
  716. sum of absolute vertical differences
  717. @item vsse
  718. sum of squared vertical differences
  719. @item nsse
  720. noise preserving sum of squared differences
  721. @item w53
  722. 5/3 wavelet, only used in snow
  723. @item w97
  724. 9/7 wavelet, only used in snow
  725. @item dctmax
  726. @item chroma
  727. @end table
  728. @item border_mask @var{float} (@emph{encoding,video})
  729. Increase the quantizer for macroblocks close to borders.
  730. @item mblmin @var{integer} (@emph{encoding,video})
  731. Set min macroblock lagrange factor (VBR).
  732. @item mblmax @var{integer} (@emph{encoding,video})
  733. Set max macroblock lagrange factor (VBR).
  734. @item mepc @var{integer} (@emph{encoding,video})
  735. Set motion estimation bitrate penalty compensation (1.0 = 256).
  736. @item skip_loop_filter @var{integer} (@emph{decoding,video})
  737. @item skip_idct @var{integer} (@emph{decoding,video})
  738. @item skip_frame @var{integer} (@emph{decoding,video})
  739. Make decoder discard processing depending on the frame type selected
  740. by the option value.
  741. @option{skip_loop_filter} skips frame loop filtering, @option{skip_idct}
  742. skips frame IDCT/dequantization, @option{skip_frame} skips decoding.
  743. Possible values:
  744. @table @samp
  745. @item none
  746. Discard no frame.
  747. @item default
  748. Discard useless frames like 0-sized frames.
  749. @item noref
  750. Discard all non-reference frames.
  751. @item bidir
  752. Discard all bidirectional frames.
  753. @item nokey
  754. Discard all frames excepts keyframes.
  755. @item all
  756. Discard all frames.
  757. @end table
  758. Default value is @samp{default}.
  759. @item bidir_refine @var{integer} (@emph{encoding,video})
  760. Refine the two motion vectors used in bidirectional macroblocks.
  761. @item brd_scale @var{integer} (@emph{encoding,video})
  762. Downscale frames for dynamic B-frame decision.
  763. @item keyint_min @var{integer} (@emph{encoding,video})
  764. Set minimum interval between IDR-frames.
  765. @item refs @var{integer} (@emph{encoding,video})
  766. Set reference frames to consider for motion compensation.
  767. @item chromaoffset @var{integer} (@emph{encoding,video})
  768. Set chroma qp offset from luma.
  769. @item trellis @var{integer} (@emph{encoding,audio,video})
  770. Set rate-distortion optimal quantization.
  771. @item sc_factor @var{integer} (@emph{encoding,video})
  772. Set value multiplied by qscale for each frame and added to
  773. scene_change_score.
  774. @item mv0_threshold @var{integer} (@emph{encoding,video})
  775. @item b_sensitivity @var{integer} (@emph{encoding,video})
  776. Adjust sensitivity of b_frame_strategy 1.
  777. @item compression_level @var{integer} (@emph{encoding,audio,video})
  778. @item min_prediction_order @var{integer} (@emph{encoding,audio})
  779. @item max_prediction_order @var{integer} (@emph{encoding,audio})
  780. @item timecode_frame_start @var{integer} (@emph{encoding,video})
  781. Set GOP timecode frame start number, in non drop frame format.
  782. @item request_channels @var{integer} (@emph{decoding,audio})
  783. Set desired number of audio channels.
  784. @item bits_per_raw_sample @var{integer}
  785. @item channel_layout @var{integer} (@emph{decoding/encoding,audio})
  786. Possible values:
  787. @table @samp
  788. @end table
  789. @item request_channel_layout @var{integer} (@emph{decoding,audio})
  790. Possible values:
  791. @table @samp
  792. @end table
  793. @item rc_max_vbv_use @var{float} (@emph{encoding,video})
  794. @item rc_min_vbv_use @var{float} (@emph{encoding,video})
  795. @item ticks_per_frame @var{integer} (@emph{decoding/encoding,audio,video})
  796. @item color_primaries @var{integer} (@emph{decoding/encoding,video})
  797. @item color_trc @var{integer} (@emph{decoding/encoding,video})
  798. @item colorspace @var{integer} (@emph{decoding/encoding,video})
  799. @item color_range @var{integer} (@emph{decoding/encoding,video})
  800. @item chroma_sample_location @var{integer} (@emph{decoding/encoding,video})
  801. @item log_level_offset @var{integer}
  802. Set the log level offset.
  803. @item slices @var{integer} (@emph{encoding,video})
  804. Number of slices, used in parallelized encoding.
  805. @item thread_type @var{flags} (@emph{decoding/encoding,video})
  806. Select multithreading type.
  807. Possible values:
  808. @table @samp
  809. @item slice
  810. @item frame
  811. @end table
  812. @item audio_service_type @var{integer} (@emph{encoding,audio})
  813. Set audio service type.
  814. Possible values:
  815. @table @samp
  816. @item ma
  817. Main Audio Service
  818. @item ef
  819. Effects
  820. @item vi
  821. Visually Impaired
  822. @item hi
  823. Hearing Impaired
  824. @item di
  825. Dialogue
  826. @item co
  827. Commentary
  828. @item em
  829. Emergency
  830. @item vo
  831. Voice Over
  832. @item ka
  833. Karaoke
  834. @end table
  835. @item request_sample_fmt @var{sample_fmt} (@emph{decoding,audio})
  836. Set sample format audio decoders should prefer. Default value is
  837. @code{none}.
  838. @item pkt_timebase @var{rational number}
  839. @item sub_charenc @var{encoding} (@emph{decoding,subtitles})
  840. Set the input subtitles character encoding.
  841. @item field_order @var{field_order} (@emph{video})
  842. Set/override the field order of the video.
  843. Possible values:
  844. @table @samp
  845. @item progressive
  846. Progressive video
  847. @item tt
  848. Interlaced video, top field coded and displayed first
  849. @item bb
  850. Interlaced video, bottom field coded and displayed first
  851. @item tb
  852. Interlaced video, top coded first, bottom displayed first
  853. @item bt
  854. Interlaced video, bottom coded first, top displayed first
  855. @end table
  856. @item skip_alpha @var{integer} (@emph{decoding,video})
  857. Set to 1 to disable processing alpha (transparency). This works like the
  858. @samp{gray} flag in the @option{flags} option which skips chroma information
  859. instead of alpha. Default is 0.
  860. @end table
  861. @c man end CODEC OPTIONS
  862. @ifclear config-writeonly
  863. @include decoders.texi
  864. @end ifclear
  865. @ifclear config-readonly
  866. @include encoders.texi
  867. @end ifclear