codecs.texi 28 KB

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