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.

1277 lines
30KB

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