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.

1274 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. Input bitstream might be randomly truncated.
  50. @item drop_changed
  51. Don't output frames whose parameters differ from first decoded frame in stream.
  52. Error AVERROR_INPUT_CHANGED is returned when a frame is dropped.
  53. @item ildct
  54. Use interlaced DCT.
  55. @item low_delay
  56. Force low delay.
  57. @item global_header
  58. Place global headers in extradata instead of every keyframe.
  59. @item bitexact
  60. Only write platform-, build- and time-independent data. (except (I)DCT).
  61. This ensures that file and data checksums are reproducible and match between
  62. platforms. Its primary use is for regression testing.
  63. @item aic
  64. Apply H263 advanced intra coding / mpeg4 ac prediction.
  65. @item cbp
  66. Deprecated, use mpegvideo private options instead.
  67. @item qprd
  68. Deprecated, use mpegvideo private options instead.
  69. @item ilme
  70. Apply interlaced motion estimation.
  71. @item cgop
  72. Use closed gop.
  73. @item output_corrupt
  74. Output even potentially corrupted frames.
  75. @end table
  76. @item me_method @var{integer} (@emph{encoding,video})
  77. Set motion estimation method.
  78. Possible values:
  79. @table @samp
  80. @item zero
  81. zero motion estimation (fastest)
  82. @item full
  83. full motion estimation (slowest)
  84. @item epzs
  85. EPZS motion estimation (default)
  86. @item esa
  87. esa motion estimation (alias for full)
  88. @item tesa
  89. tesa motion estimation
  90. @item dia
  91. dia motion estimation (alias for epzs)
  92. @item log
  93. log motion estimation
  94. @item phods
  95. phods motion estimation
  96. @item x1
  97. X1 motion estimation
  98. @item hex
  99. hex motion estimation
  100. @item umh
  101. umh motion estimation
  102. @item iter
  103. iter motion estimation
  104. @end table
  105. @item extradata_size @var{integer}
  106. Set extradata size.
  107. @item time_base @var{rational number}
  108. Set codec time base.
  109. It is the fundamental unit of time (in seconds) in terms of which
  110. frame timestamps are represented. For fixed-fps content, timebase
  111. should be @code{1 / frame_rate} and timestamp increments should be
  112. identically 1.
  113. @item g @var{integer} (@emph{encoding,video})
  114. Set the group of picture (GOP) size. Default value is 12.
  115. @item ar @var{integer} (@emph{decoding/encoding,audio})
  116. Set audio sampling rate (in Hz).
  117. @item ac @var{integer} (@emph{decoding/encoding,audio})
  118. Set number of audio channels.
  119. @item cutoff @var{integer} (@emph{encoding,audio})
  120. Set cutoff bandwidth. (Supported only by selected encoders, see
  121. their respective documentation sections.)
  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 an 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 sar @var{rational number} (@emph{encoding,video})
  356. Set sample aspect ratio. Alias to @var{aspect}.
  357. @item debug @var{flags} (@emph{decoding/encoding,audio,video,subtitles})
  358. Print specific debug info.
  359. Possible values:
  360. @table @samp
  361. @item pict
  362. picture info
  363. @item rc
  364. rate control
  365. @item bitstream
  366. @item mb_type
  367. macroblock (MB) type
  368. @item qp
  369. per-block quantization parameter (QP)
  370. @item dct_coeff
  371. @item green_metadata
  372. display complexity metadata for the upcoming frame, GoP or for a given duration.
  373. @item skip
  374. @item startcode
  375. @item er
  376. error recognition
  377. @item mmco
  378. memory management control operations (H.264)
  379. @item bugs
  380. @item buffers
  381. picture buffer allocations
  382. @item thread_ops
  383. threading operations
  384. @item nomc
  385. skip motion compensation
  386. @end table
  387. @item cmp @var{integer} (@emph{encoding,video})
  388. Set full pel me compare function.
  389. Possible values:
  390. @table @samp
  391. @item sad
  392. sum of absolute differences, fast (default)
  393. @item sse
  394. sum of squared errors
  395. @item satd
  396. sum of absolute Hadamard transformed differences
  397. @item dct
  398. sum of absolute DCT transformed differences
  399. @item psnr
  400. sum of squared quantization errors (avoid, low quality)
  401. @item bit
  402. number of bits needed for the block
  403. @item rd
  404. rate distortion optimal, slow
  405. @item zero
  406. 0
  407. @item vsad
  408. sum of absolute vertical differences
  409. @item vsse
  410. sum of squared vertical differences
  411. @item nsse
  412. noise preserving sum of squared differences
  413. @item w53
  414. 5/3 wavelet, only used in snow
  415. @item w97
  416. 9/7 wavelet, only used in snow
  417. @item dctmax
  418. @item chroma
  419. @end table
  420. @item subcmp @var{integer} (@emph{encoding,video})
  421. Set sub pel me compare function.
  422. Possible values:
  423. @table @samp
  424. @item sad
  425. sum of absolute differences, fast (default)
  426. @item sse
  427. sum of squared errors
  428. @item satd
  429. sum of absolute Hadamard transformed differences
  430. @item dct
  431. sum of absolute DCT transformed differences
  432. @item psnr
  433. sum of squared quantization errors (avoid, low quality)
  434. @item bit
  435. number of bits needed for the block
  436. @item rd
  437. rate distortion optimal, slow
  438. @item zero
  439. 0
  440. @item vsad
  441. sum of absolute vertical differences
  442. @item vsse
  443. sum of squared vertical differences
  444. @item nsse
  445. noise preserving sum of squared differences
  446. @item w53
  447. 5/3 wavelet, only used in snow
  448. @item w97
  449. 9/7 wavelet, only used in snow
  450. @item dctmax
  451. @item chroma
  452. @end table
  453. @item mbcmp @var{integer} (@emph{encoding,video})
  454. Set macroblock compare function.
  455. Possible values:
  456. @table @samp
  457. @item sad
  458. sum of absolute differences, fast (default)
  459. @item sse
  460. sum of squared errors
  461. @item satd
  462. sum of absolute Hadamard transformed differences
  463. @item dct
  464. sum of absolute DCT transformed differences
  465. @item psnr
  466. sum of squared quantization errors (avoid, low quality)
  467. @item bit
  468. number of bits needed for the block
  469. @item rd
  470. rate distortion optimal, slow
  471. @item zero
  472. 0
  473. @item vsad
  474. sum of absolute vertical differences
  475. @item vsse
  476. sum of squared vertical differences
  477. @item nsse
  478. noise preserving sum of squared differences
  479. @item w53
  480. 5/3 wavelet, only used in snow
  481. @item w97
  482. 9/7 wavelet, only used in snow
  483. @item dctmax
  484. @item chroma
  485. @end table
  486. @item ildctcmp @var{integer} (@emph{encoding,video})
  487. Set interlaced dct compare function.
  488. Possible values:
  489. @table @samp
  490. @item sad
  491. sum of absolute differences, fast (default)
  492. @item sse
  493. sum of squared errors
  494. @item satd
  495. sum of absolute Hadamard transformed differences
  496. @item dct
  497. sum of absolute DCT transformed differences
  498. @item psnr
  499. sum of squared quantization errors (avoid, low quality)
  500. @item bit
  501. number of bits needed for the block
  502. @item rd
  503. rate distortion optimal, slow
  504. @item zero
  505. 0
  506. @item vsad
  507. sum of absolute vertical differences
  508. @item vsse
  509. sum of squared vertical differences
  510. @item nsse
  511. noise preserving sum of squared differences
  512. @item w53
  513. 5/3 wavelet, only used in snow
  514. @item w97
  515. 9/7 wavelet, only used in snow
  516. @item dctmax
  517. @item chroma
  518. @end table
  519. @item dia_size @var{integer} (@emph{encoding,video})
  520. Set diamond type & size for motion estimation.
  521. @item last_pred @var{integer} (@emph{encoding,video})
  522. Set amount of motion predictors from the previous frame.
  523. @item preme @var{integer} (@emph{encoding,video})
  524. Set pre motion estimation.
  525. @item precmp @var{integer} (@emph{encoding,video})
  526. Set pre motion estimation compare function.
  527. Possible values:
  528. @table @samp
  529. @item sad
  530. sum of absolute differences, fast (default)
  531. @item sse
  532. sum of squared errors
  533. @item satd
  534. sum of absolute Hadamard transformed differences
  535. @item dct
  536. sum of absolute DCT transformed differences
  537. @item psnr
  538. sum of squared quantization errors (avoid, low quality)
  539. @item bit
  540. number of bits needed for the block
  541. @item rd
  542. rate distortion optimal, slow
  543. @item zero
  544. 0
  545. @item vsad
  546. sum of absolute vertical differences
  547. @item vsse
  548. sum of squared vertical differences
  549. @item nsse
  550. noise preserving sum of squared differences
  551. @item w53
  552. 5/3 wavelet, only used in snow
  553. @item w97
  554. 9/7 wavelet, only used in snow
  555. @item dctmax
  556. @item chroma
  557. @end table
  558. @item pre_dia_size @var{integer} (@emph{encoding,video})
  559. Set diamond type & size for motion estimation pre-pass.
  560. @item subq @var{integer} (@emph{encoding,video})
  561. Set sub pel motion estimation quality.
  562. @item dtg_active_format @var{integer}
  563. @item me_range @var{integer} (@emph{encoding,video})
  564. Set limit motion vectors range (1023 for DivX player).
  565. @item ibias @var{integer} (@emph{encoding,video})
  566. Set intra quant bias.
  567. @item pbias @var{integer} (@emph{encoding,video})
  568. Set inter quant bias.
  569. @item color_table_id @var{integer}
  570. @item global_quality @var{integer} (@emph{encoding,audio,video})
  571. @item coder @var{integer} (@emph{encoding,video})
  572. Possible values:
  573. @table @samp
  574. @item vlc
  575. variable length coder / huffman coder
  576. @item ac
  577. arithmetic coder
  578. @item raw
  579. raw (no encoding)
  580. @item rle
  581. run-length coder
  582. @item deflate
  583. deflate-based coder
  584. @end table
  585. @item context @var{integer} (@emph{encoding,video})
  586. Set context model.
  587. @item slice_flags @var{integer}
  588. @item mbd @var{integer} (@emph{encoding,video})
  589. Set macroblock decision algorithm (high quality mode).
  590. Possible values:
  591. @table @samp
  592. @item simple
  593. use mbcmp (default)
  594. @item bits
  595. use fewest bits
  596. @item rd
  597. use best rate distortion
  598. @end table
  599. @item stream_codec_tag @var{integer}
  600. @item sc_threshold @var{integer} (@emph{encoding,video})
  601. Set scene change threshold.
  602. @item lmin @var{integer} (@emph{encoding,video})
  603. Set min lagrange factor (VBR).
  604. @item lmax @var{integer} (@emph{encoding,video})
  605. Set max lagrange factor (VBR).
  606. @item nr @var{integer} (@emph{encoding,video})
  607. Set noise reduction.
  608. @item rc_init_occupancy @var{integer} (@emph{encoding,video})
  609. Set number of bits which should be loaded into the rc buffer before
  610. decoding starts.
  611. @item flags2 @var{flags} (@emph{decoding/encoding,audio,video,subtitles})
  612. Possible values:
  613. @table @samp
  614. @item fast
  615. Allow non spec compliant speedup tricks.
  616. @item noout
  617. Skip bitstream encoding.
  618. @item ignorecrop
  619. Ignore cropping information from sps.
  620. @item local_header
  621. Place global headers at every keyframe instead of in extradata.
  622. @item chunks
  623. Frame data might be split into multiple chunks.
  624. @item showall
  625. Show all frames before the first keyframe.
  626. @item export_mvs
  627. Export motion vectors into frame side-data (see @code{AV_FRAME_DATA_MOTION_VECTORS})
  628. for codecs that support it. See also @file{doc/examples/export_mvs.c}.
  629. @item skip_manual
  630. Do not skip samples and export skip information as frame side data.
  631. @item ass_ro_flush_noop
  632. Do not reset ASS ReadOrder field on flush.
  633. @end table
  634. @item error @var{integer} (@emph{encoding,video})
  635. @item qns @var{integer} (@emph{encoding,video})
  636. Deprecated, use mpegvideo private options instead.
  637. @item threads @var{integer} (@emph{decoding/encoding,video})
  638. Set the number of threads to be used, in case the selected codec
  639. implementation supports multi-threading.
  640. Possible values:
  641. @table @samp
  642. @item auto, 0
  643. automatically select the number of threads to set
  644. @end table
  645. Default value is @samp{auto}.
  646. @item me_threshold @var{integer} (@emph{encoding,video})
  647. Set motion estimation threshold.
  648. @item mb_threshold @var{integer} (@emph{encoding,video})
  649. Set macroblock threshold.
  650. @item dc @var{integer} (@emph{encoding,video})
  651. Set intra_dc_precision.
  652. @item nssew @var{integer} (@emph{encoding,video})
  653. Set nsse weight.
  654. @item skip_top @var{integer} (@emph{decoding,video})
  655. Set number of macroblock rows at the top which are skipped.
  656. @item skip_bottom @var{integer} (@emph{decoding,video})
  657. Set number of macroblock rows at the bottom which are skipped.
  658. @item profile @var{integer} (@emph{encoding,audio,video})
  659. Possible values:
  660. @table @samp
  661. @item unknown
  662. @item aac_main
  663. @item aac_low
  664. @item aac_ssr
  665. @item aac_ltp
  666. @item aac_he
  667. @item aac_he_v2
  668. @item aac_ld
  669. @item aac_eld
  670. @item mpeg2_aac_low
  671. @item mpeg2_aac_he
  672. @item mpeg4_sp
  673. @item mpeg4_core
  674. @item mpeg4_main
  675. @item mpeg4_asp
  676. @item dts
  677. @item dts_es
  678. @item dts_96_24
  679. @item dts_hd_hra
  680. @item dts_hd_ma
  681. @end table
  682. @item level @var{integer} (@emph{encoding,audio,video})
  683. Possible values:
  684. @table @samp
  685. @item unknown
  686. @end table
  687. @item lowres @var{integer} (@emph{decoding,audio,video})
  688. Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
  689. @item skip_threshold @var{integer} (@emph{encoding,video})
  690. Set frame skip threshold.
  691. @item skip_factor @var{integer} (@emph{encoding,video})
  692. Set frame skip factor.
  693. @item skip_exp @var{integer} (@emph{encoding,video})
  694. Set frame skip exponent.
  695. Negative values behave identical to the corresponding positive ones, except
  696. that the score is normalized.
  697. Positive values exist primarily for compatibility reasons and are not so useful.
  698. @item skipcmp @var{integer} (@emph{encoding,video})
  699. Set frame skip compare function.
  700. Possible values:
  701. @table @samp
  702. @item sad
  703. sum of absolute differences, fast (default)
  704. @item sse
  705. sum of squared errors
  706. @item satd
  707. sum of absolute Hadamard transformed differences
  708. @item dct
  709. sum of absolute DCT transformed differences
  710. @item psnr
  711. sum of squared quantization errors (avoid, low quality)
  712. @item bit
  713. number of bits needed for the block
  714. @item rd
  715. rate distortion optimal, slow
  716. @item zero
  717. 0
  718. @item vsad
  719. sum of absolute vertical differences
  720. @item vsse
  721. sum of squared vertical differences
  722. @item nsse
  723. noise preserving sum of squared differences
  724. @item w53
  725. 5/3 wavelet, only used in snow
  726. @item w97
  727. 9/7 wavelet, only used in snow
  728. @item dctmax
  729. @item chroma
  730. @end table
  731. @item border_mask @var{float} (@emph{encoding,video})
  732. Increase the quantizer for macroblocks close to borders.
  733. @item mblmin @var{integer} (@emph{encoding,video})
  734. Set min macroblock lagrange factor (VBR).
  735. @item mblmax @var{integer} (@emph{encoding,video})
  736. Set max macroblock lagrange factor (VBR).
  737. @item mepc @var{integer} (@emph{encoding,video})
  738. Set motion estimation bitrate penalty compensation (1.0 = 256).
  739. @item skip_loop_filter @var{integer} (@emph{decoding,video})
  740. @item skip_idct @var{integer} (@emph{decoding,video})
  741. @item skip_frame @var{integer} (@emph{decoding,video})
  742. Make decoder discard processing depending on the frame type selected
  743. by the option value.
  744. @option{skip_loop_filter} skips frame loop filtering, @option{skip_idct}
  745. skips frame IDCT/dequantization, @option{skip_frame} skips decoding.
  746. Possible values:
  747. @table @samp
  748. @item none
  749. Discard no frame.
  750. @item default
  751. Discard useless frames like 0-sized frames.
  752. @item noref
  753. Discard all non-reference frames.
  754. @item bidir
  755. Discard all bidirectional frames.
  756. @item nokey
  757. Discard all frames excepts keyframes.
  758. @item nointra
  759. Discard all frames except I frames.
  760. @item all
  761. Discard all frames.
  762. @end table
  763. Default value is @samp{default}.
  764. @item bidir_refine @var{integer} (@emph{encoding,video})
  765. Refine the two motion vectors used in bidirectional macroblocks.
  766. @item brd_scale @var{integer} (@emph{encoding,video})
  767. Downscale frames for dynamic B-frame decision.
  768. @item keyint_min @var{integer} (@emph{encoding,video})
  769. Set minimum interval between IDR-frames.
  770. @item refs @var{integer} (@emph{encoding,video})
  771. Set reference frames to consider for motion compensation.
  772. @item chromaoffset @var{integer} (@emph{encoding,video})
  773. Set chroma qp offset from luma.
  774. @item trellis @var{integer} (@emph{encoding,audio,video})
  775. Set rate-distortion optimal quantization.
  776. @item mv0_threshold @var{integer} (@emph{encoding,video})
  777. @item b_sensitivity @var{integer} (@emph{encoding,video})
  778. Adjust sensitivity of b_frame_strategy 1.
  779. @item compression_level @var{integer} (@emph{encoding,audio,video})
  780. @item min_prediction_order @var{integer} (@emph{encoding,audio})
  781. @item max_prediction_order @var{integer} (@emph{encoding,audio})
  782. @item timecode_frame_start @var{integer} (@emph{encoding,video})
  783. Set GOP timecode frame start number, in non drop frame format.
  784. @item request_channels @var{integer} (@emph{decoding,audio})
  785. Set desired number of audio channels.
  786. @item bits_per_raw_sample @var{integer}
  787. @item channel_layout @var{integer} (@emph{decoding/encoding,audio})
  788. Possible values:
  789. @table @samp
  790. @end table
  791. @item request_channel_layout @var{integer} (@emph{decoding,audio})
  792. Possible values:
  793. @table @samp
  794. @end table
  795. @item rc_max_vbv_use @var{float} (@emph{encoding,video})
  796. @item rc_min_vbv_use @var{float} (@emph{encoding,video})
  797. @item ticks_per_frame @var{integer} (@emph{decoding/encoding,audio,video})
  798. @item color_primaries @var{integer} (@emph{decoding/encoding,video})
  799. Possible values:
  800. @table @samp
  801. @item bt709
  802. BT.709
  803. @item bt470m
  804. BT.470 M
  805. @item bt470bg
  806. BT.470 BG
  807. @item smpte170m
  808. SMPTE 170 M
  809. @item smpte240m
  810. SMPTE 240 M
  811. @item film
  812. Film
  813. @item bt2020
  814. BT.2020
  815. @item smpte428
  816. @item smpte428_1
  817. SMPTE ST 428-1
  818. @item smpte431
  819. SMPTE 431-2
  820. @item smpte432
  821. SMPTE 432-1
  822. @item jedec-p22
  823. JEDEC P22
  824. @end table
  825. @item color_trc @var{integer} (@emph{decoding/encoding,video})
  826. Possible values:
  827. @table @samp
  828. @item bt709
  829. BT.709
  830. @item gamma22
  831. BT.470 M
  832. @item gamma28
  833. BT.470 BG
  834. @item smpte170m
  835. SMPTE 170 M
  836. @item smpte240m
  837. SMPTE 240 M
  838. @item linear
  839. Linear
  840. @item log
  841. @item log100
  842. Log
  843. @item log_sqrt
  844. @item log316
  845. Log square root
  846. @item iec61966_2_4
  847. @item iec61966-2-4
  848. IEC 61966-2-4
  849. @item bt1361
  850. @item bt1361e
  851. BT.1361
  852. @item iec61966_2_1
  853. @item iec61966-2-1
  854. IEC 61966-2-1
  855. @item bt2020_10
  856. @item bt2020_10bit
  857. BT.2020 - 10 bit
  858. @item bt2020_12
  859. @item bt2020_12bit
  860. BT.2020 - 12 bit
  861. @item smpte2084
  862. SMPTE ST 2084
  863. @item smpte428
  864. @item smpte428_1
  865. SMPTE ST 428-1
  866. @item arib-std-b67
  867. ARIB STD-B67
  868. @end table
  869. @item colorspace @var{integer} (@emph{decoding/encoding,video})
  870. Possible values:
  871. @table @samp
  872. @item rgb
  873. RGB
  874. @item bt709
  875. BT.709
  876. @item fcc
  877. FCC
  878. @item bt470bg
  879. BT.470 BG
  880. @item smpte170m
  881. SMPTE 170 M
  882. @item smpte240m
  883. SMPTE 240 M
  884. @item ycocg
  885. YCOCG
  886. @item bt2020nc
  887. @item bt2020_ncl
  888. BT.2020 NCL
  889. @item bt2020c
  890. @item bt2020_cl
  891. BT.2020 CL
  892. @item smpte2085
  893. SMPTE 2085
  894. @end table
  895. @item color_range @var{integer} (@emph{decoding/encoding,video})
  896. If used as input parameter, it serves as a hint to the decoder, which
  897. color_range the input has.
  898. Possible values:
  899. @table @samp
  900. @item tv
  901. @item mpeg
  902. MPEG (219*2^(n-8))
  903. @item pc
  904. @item jpeg
  905. JPEG (2^n-1)
  906. @end table
  907. @item chroma_sample_location @var{integer} (@emph{decoding/encoding,video})
  908. Possible values:
  909. @table @samp
  910. @item left
  911. @item center
  912. @item topleft
  913. @item top
  914. @item bottomleft
  915. @item bottom
  916. @end table
  917. @item log_level_offset @var{integer}
  918. Set the log level offset.
  919. @item slices @var{integer} (@emph{encoding,video})
  920. Number of slices, used in parallelized encoding.
  921. @item thread_type @var{flags} (@emph{decoding/encoding,video})
  922. Select which multithreading methods to use.
  923. Use of @samp{frame} will increase decoding delay by one frame per
  924. thread, so clients which cannot provide future frames should not use
  925. it.
  926. Possible values:
  927. @table @samp
  928. @item slice
  929. Decode more than one part of a single frame at once.
  930. Multithreading using slices works only when the video was encoded with
  931. slices.
  932. @item frame
  933. Decode more than one frame at once.
  934. @end table
  935. Default value is @samp{slice+frame}.
  936. @item audio_service_type @var{integer} (@emph{encoding,audio})
  937. Set audio service type.
  938. Possible values:
  939. @table @samp
  940. @item ma
  941. Main Audio Service
  942. @item ef
  943. Effects
  944. @item vi
  945. Visually Impaired
  946. @item hi
  947. Hearing Impaired
  948. @item di
  949. Dialogue
  950. @item co
  951. Commentary
  952. @item em
  953. Emergency
  954. @item vo
  955. Voice Over
  956. @item ka
  957. Karaoke
  958. @end table
  959. @item request_sample_fmt @var{sample_fmt} (@emph{decoding,audio})
  960. Set sample format audio decoders should prefer. Default value is
  961. @code{none}.
  962. @item pkt_timebase @var{rational number}
  963. @item sub_charenc @var{encoding} (@emph{decoding,subtitles})
  964. Set the input subtitles character encoding.
  965. @item field_order @var{field_order} (@emph{video})
  966. Set/override the field order of the video.
  967. Possible values:
  968. @table @samp
  969. @item progressive
  970. Progressive video
  971. @item tt
  972. Interlaced video, top field coded and displayed first
  973. @item bb
  974. Interlaced video, bottom field coded and displayed first
  975. @item tb
  976. Interlaced video, top coded first, bottom displayed first
  977. @item bt
  978. Interlaced video, bottom coded first, top displayed first
  979. @end table
  980. @item skip_alpha @var{bool} (@emph{decoding,video})
  981. Set to 1 to disable processing alpha (transparency). This works like the
  982. @samp{gray} flag in the @option{flags} option which skips chroma information
  983. instead of alpha. Default is 0.
  984. @item codec_whitelist @var{list} (@emph{input})
  985. "," separated list of allowed decoders. By default all are allowed.
  986. @item dump_separator @var{string} (@emph{input})
  987. Separator used to separate the fields printed on the command line about the
  988. Stream parameters.
  989. For example, to separate the fields with newlines and indentation:
  990. @example
  991. ffprobe -dump_separator "
  992. " -i ~/videos/matrixbench_mpeg2.mpg
  993. @end example
  994. @item max_pixels @var{integer} (@emph{decoding/encoding,video})
  995. Maximum number of pixels per image. This value can be used to avoid out of
  996. memory failures due to large images.
  997. @item apply_cropping @var{bool} (@emph{decoding,video})
  998. Enable cropping if cropping parameters are multiples of the required
  999. alignment for the left and top parameters. If the alignment is not met the
  1000. cropping will be partially applied to maintain alignment.
  1001. Default is 1 (enabled).
  1002. Note: The required alignment depends on if @code{AV_CODEC_FLAG_UNALIGNED} is set and the
  1003. CPU. @code{AV_CODEC_FLAG_UNALIGNED} cannot be changed from the command line. Also hardware
  1004. decoders will not apply left/top Cropping.
  1005. @end table
  1006. @c man end CODEC OPTIONS
  1007. @ifclear config-writeonly
  1008. @include decoders.texi
  1009. @end ifclear
  1010. @ifclear config-readonly
  1011. @include encoders.texi
  1012. @end ifclear