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.

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