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.

1142 lines
27KB

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