]> git.sesse.net Git - ffmpeg/blob - doc/codecs.texi
avcodec/options_table: make AVCodecContext->profile search for child constants
[ffmpeg] / doc / codecs.texi
1 @anchor{codec-options}
2 @chapter Codec Options
3 @c man begin CODEC OPTIONS
4
5 libavcodec provides some generic global options, which can be set on
6 all the encoders and decoders. In addition each codec may support
7 so-called private options, which are specific for a given codec.
8
9 Sometimes, a global option may only affect a specific kind of codec,
10 and may be nonsensical or ignored by another, so you need to be aware
11 of the meaning of the specified options. Also some options are
12 meant only for decoding or encoding.
13
14 Options may be set by specifying -@var{option} @var{value} in the
15 FFmpeg tools, or by setting the value explicitly in the
16 @code{AVCodecContext} options or using the @file{libavutil/opt.h} API
17 for programmatic use.
18
19 The list of supported options follow:
20
21 @table @option
22 @item b @var{integer} (@emph{encoding,audio,video})
23 Set bitrate in bits/s. Default value is 200K.
24
25 @item ab @var{integer} (@emph{encoding,audio})
26 Set audio bitrate (in bits/s). Default value is 128K.
27
28 @item bt @var{integer} (@emph{encoding,video})
29 Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate
30 tolerance specifies how far ratecontrol is willing to deviate from the
31 target average bitrate value. This is not related to min/max
32 bitrate. Lowering tolerance too much has an adverse effect on quality.
33
34 @item flags @var{flags} (@emph{decoding/encoding,audio,video,subtitles})
35 Set generic flags.
36
37 Possible values:
38 @table @samp
39 @item mv4
40 Use four motion vector by macroblock (mpeg4).
41 @item qpel
42 Use 1/4 pel motion compensation.
43 @item loop
44 Use loop filter.
45 @item qscale
46 Use fixed qscale.
47 @item pass1
48 Use internal 2pass ratecontrol in first pass mode.
49 @item pass2
50 Use internal 2pass ratecontrol in second pass mode.
51 @item gray
52 Only decode/encode grayscale.
53 @item emu_edge
54 Do not draw edges.
55 @item psnr
56 Set error[?] variables during encoding.
57 @item truncated
58 Input bitstream might be randomly truncated.
59 @item drop_changed
60 Don't output frames whose parameters differ from first decoded frame in stream.
61 Error AVERROR_INPUT_CHANGED is returned when a frame is dropped.
62
63 @item ildct
64 Use interlaced DCT.
65 @item low_delay
66 Force low delay.
67 @item global_header
68 Place global headers in extradata instead of every keyframe.
69 @item bitexact
70 Only write platform-, build- and time-independent data. (except (I)DCT).
71 This ensures that file and data checksums are reproducible and match between
72 platforms. Its primary use is for regression testing.
73 @item aic
74 Apply H263 advanced intra coding / mpeg4 ac prediction.
75 @item cbp
76 Deprecated, use mpegvideo private options instead.
77 @item qprd
78 Deprecated, use mpegvideo private options instead.
79 @item ilme
80 Apply interlaced motion estimation.
81 @item cgop
82 Use closed gop.
83 @item output_corrupt
84 Output even potentially corrupted frames.
85 @end table
86
87 @item me_method @var{integer} (@emph{encoding,video})
88 Set motion estimation method.
89
90 Possible values:
91 @table @samp
92 @item zero
93 zero motion estimation (fastest)
94 @item full
95 full motion estimation (slowest)
96 @item epzs
97 EPZS motion estimation (default)
98 @item esa
99 esa motion estimation (alias for full)
100 @item tesa
101 tesa motion estimation
102 @item dia
103 dia motion estimation (alias for epzs)
104 @item log
105 log motion estimation
106 @item phods
107 phods motion estimation
108 @item x1
109 X1 motion estimation
110 @item hex
111 hex motion estimation
112 @item umh
113 umh motion estimation
114 @item iter
115 iter motion estimation
116 @end table
117
118 @item extradata_size @var{integer}
119 Set extradata size.
120
121 @item time_base @var{rational number}
122 Set codec time base.
123
124 It is the fundamental unit of time (in seconds) in terms of which
125 frame timestamps are represented. For fixed-fps content, timebase
126 should be @code{1 / frame_rate} and timestamp increments should be
127 identically 1.
128
129 @item g @var{integer} (@emph{encoding,video})
130 Set the group of picture (GOP) size. Default value is 12.
131
132 @item ar @var{integer} (@emph{decoding/encoding,audio})
133 Set audio sampling rate (in Hz).
134
135 @item ac @var{integer} (@emph{decoding/encoding,audio})
136 Set number of audio channels.
137
138 @item cutoff @var{integer} (@emph{encoding,audio})
139 Set cutoff bandwidth. (Supported only by selected encoders, see
140 their respective documentation sections.)
141
142 @item frame_size @var{integer} (@emph{encoding,audio})
143 Set audio frame size.
144
145 Each submitted frame except the last must contain exactly frame_size
146 samples per channel. May be 0 when the codec has
147 CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
148 restricted. It is set by some decoders to indicate constant frame
149 size.
150
151 @item frame_number @var{integer}
152 Set the frame number.
153
154 @item delay @var{integer}
155
156 @item qcomp @var{float} (@emph{encoding,video})
157 Set video quantizer scale compression (VBR). It is used as a constant
158 in the ratecontrol equation. Recommended range for default rc_eq:
159 0.0-1.0.
160
161 @item qblur @var{float} (@emph{encoding,video})
162 Set video quantizer scale blur (VBR).
163
164 @item qmin @var{integer} (@emph{encoding,video})
165 Set min video quantizer scale (VBR). Must be included between -1 and
166 69, default value is 2.
167
168 @item qmax @var{integer} (@emph{encoding,video})
169 Set max video quantizer scale (VBR). Must be included between -1 and
170 1024, default value is 31.
171
172 @item qdiff @var{integer} (@emph{encoding,video})
173 Set max difference between the quantizer scale (VBR).
174
175 @item bf @var{integer} (@emph{encoding,video})
176 Set max number of B frames between non-B-frames.
177
178 Must be an integer between -1 and 16. 0 means that B-frames are
179 disabled. If a value of -1 is used, it will choose an automatic value
180 depending on the encoder.
181
182 Default value is 0.
183
184 @item b_qfactor @var{float} (@emph{encoding,video})
185 Set qp factor between P and B frames.
186
187 @item rc_strategy @var{integer} (@emph{encoding,video})
188 Set ratecontrol method.
189
190 @item b_strategy @var{integer} (@emph{encoding,video})
191 Set strategy to choose between I/P/B-frames.
192
193 @item ps @var{integer} (@emph{encoding,video})
194 Set RTP payload size in bytes.
195
196 @item mv_bits @var{integer}
197 @item header_bits @var{integer}
198 @item i_tex_bits @var{integer}
199 @item p_tex_bits @var{integer}
200 @item i_count @var{integer}
201 @item p_count @var{integer}
202 @item skip_count @var{integer}
203 @item misc_bits @var{integer}
204 @item frame_bits @var{integer}
205 @item codec_tag @var{integer}
206 @item bug @var{flags} (@emph{decoding,video})
207 Workaround not auto detected encoder bugs.
208
209 Possible values:
210 @table @samp
211 @item autodetect
212
213 @item old_msmpeg4
214 some old lavc generated msmpeg4v3 files (no autodetection)
215 @item xvid_ilace
216 Xvid interlacing bug (autodetected if fourcc==XVIX)
217 @item ump4
218 (autodetected if fourcc==UMP4)
219 @item no_padding
220 padding bug (autodetected)
221 @item amv
222
223 @item ac_vlc
224 illegal vlc bug (autodetected per fourcc)
225 @item qpel_chroma
226
227 @item std_qpel
228 old standard qpel (autodetected per fourcc/version)
229 @item qpel_chroma2
230
231 @item direct_blocksize
232 direct-qpel-blocksize bug (autodetected per fourcc/version)
233 @item edge
234 edge padding bug (autodetected per fourcc/version)
235 @item hpel_chroma
236
237 @item dc_clip
238
239 @item ms
240 Workaround various bugs in microsoft broken decoders.
241 @item trunc
242 trancated frames
243 @end table
244
245 @item lelim @var{integer} (@emph{encoding,video})
246 Set single coefficient elimination threshold for luminance (negative
247 values also consider DC coefficient).
248
249 @item celim @var{integer} (@emph{encoding,video})
250 Set single coefficient elimination threshold for chrominance (negative
251 values also consider dc coefficient)
252
253 @item strict @var{integer} (@emph{decoding/encoding,audio,video})
254 Specify how strictly to follow the standards.
255
256 Possible values:
257 @table @samp
258 @item very
259 strictly conform to an older more strict version of the spec or reference software
260 @item strict
261 strictly conform to all the things in the spec no matter what consequences
262 @item normal
263
264 @item unofficial
265 allow unofficial extensions
266 @item experimental
267 allow non standardized experimental things, experimental
268 (unfinished/work in progress/not well tested) decoders and encoders.
269 Note: experimental decoders can pose a security risk, do not use this for
270 decoding untrusted input.
271 @end table
272
273 @item b_qoffset @var{float} (@emph{encoding,video})
274 Set QP offset between P and B frames.
275
276 @item err_detect @var{flags} (@emph{decoding,audio,video})
277 Set error detection flags.
278
279 Possible values:
280 @table @samp
281 @item crccheck
282 verify embedded CRCs
283 @item bitstream
284 detect bitstream specification deviations
285 @item buffer
286 detect improper bitstream length
287 @item explode
288 abort decoding on minor error detection
289 @item ignore_err
290 ignore decoding errors, and continue decoding.
291 This is useful if you want to analyze the content of a video and thus want
292 everything to be decoded no matter what. This option will not result in a video
293 that is pleasing to watch in case of errors.
294 @item careful
295 consider things that violate the spec and have not been seen in the wild as errors
296 @item compliant
297 consider all spec non compliancies as errors
298 @item aggressive
299 consider things that a sane encoder should not do as an error
300 @end table
301
302 @item has_b_frames @var{integer}
303
304 @item block_align @var{integer}
305
306 @item mpeg_quant @var{integer} (@emph{encoding,video})
307 Use MPEG quantizers instead of H.263.
308
309 @item qsquish @var{float} (@emph{encoding,video})
310 How to keep quantizer between qmin and qmax (0 = clip, 1 = use
311 differentiable function).
312
313 @item rc_qmod_amp @var{float} (@emph{encoding,video})
314 Set experimental quantizer modulation.
315
316 @item rc_qmod_freq @var{integer} (@emph{encoding,video})
317 Set experimental quantizer modulation.
318
319 @item rc_override_count @var{integer}
320
321 @item rc_eq @var{string} (@emph{encoding,video})
322 Set rate control equation. When computing the expression, besides the
323 standard functions defined in the section 'Expression Evaluation', the
324 following functions are available: bits2qp(bits), qp2bits(qp). Also
325 the following constants are available: iTex pTex tex mv fCode iCount
326 mcVar var isI isP isB avgQP qComp avgIITex avgPITex avgPPTex avgBPTex
327 avgTex.
328
329 @item maxrate @var{integer} (@emph{encoding,audio,video})
330 Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
331
332 @item minrate @var{integer} (@emph{encoding,audio,video})
333 Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
334 encode. It is of little use elsewise.
335
336 @item bufsize @var{integer} (@emph{encoding,audio,video})
337 Set ratecontrol buffer size (in bits).
338
339 @item rc_buf_aggressivity @var{float} (@emph{encoding,video})
340 Currently useless.
341
342 @item i_qfactor @var{float} (@emph{encoding,video})
343 Set QP factor between P and I frames.
344
345 @item i_qoffset @var{float} (@emph{encoding,video})
346 Set QP offset between P and I frames.
347
348 @item rc_init_cplx @var{float} (@emph{encoding,video})
349 Set initial complexity for 1-pass encoding.
350
351 @item dct @var{integer} (@emph{encoding,video})
352 Set DCT algorithm.
353
354 Possible values:
355 @table @samp
356 @item auto
357 autoselect a good one (default)
358 @item fastint
359 fast integer
360 @item int
361 accurate integer
362 @item mmx
363
364 @item altivec
365
366 @item faan
367 floating point AAN DCT
368 @end table
369
370 @item lumi_mask @var{float} (@emph{encoding,video})
371 Compress bright areas stronger than medium ones.
372
373 @item tcplx_mask @var{float} (@emph{encoding,video})
374 Set temporal complexity masking.
375
376 @item scplx_mask @var{float} (@emph{encoding,video})
377 Set spatial complexity masking.
378
379 @item p_mask @var{float} (@emph{encoding,video})
380 Set inter masking.
381
382 @item dark_mask @var{float} (@emph{encoding,video})
383 Compress dark areas stronger than medium ones.
384
385 @item idct @var{integer} (@emph{decoding/encoding,video})
386 Select IDCT implementation.
387
388 Possible values:
389 @table @samp
390 @item auto
391
392 @item int
393
394 @item simple
395
396 @item simplemmx
397
398 @item simpleauto
399 Automatically pick a IDCT compatible with the simple one
400
401 @item arm
402
403 @item altivec
404
405 @item sh4
406
407 @item simplearm
408
409 @item simplearmv5te
410
411 @item simplearmv6
412
413 @item simpleneon
414
415 @item simplealpha
416
417 @item ipp
418
419 @item xvidmmx
420
421 @item faani
422 floating point AAN IDCT
423 @end table
424
425 @item slice_count @var{integer}
426
427 @item ec @var{flags} (@emph{decoding,video})
428 Set error concealment strategy.
429
430 Possible values:
431 @table @samp
432 @item guess_mvs
433 iterative motion vector (MV) search (slow)
434 @item deblock
435 use strong deblock filter for damaged MBs
436 @item favor_inter
437 favor predicting from the previous frame instead of the current
438 @end table
439
440 @item bits_per_coded_sample @var{integer}
441
442 @item pred @var{integer} (@emph{encoding,video})
443 Set prediction method.
444
445 Possible values:
446 @table @samp
447 @item left
448
449 @item plane
450
451 @item median
452
453 @end table
454
455 @item aspect @var{rational number} (@emph{encoding,video})
456 Set sample aspect ratio.
457
458 @item sar @var{rational number} (@emph{encoding,video})
459 Set sample aspect ratio. Alias to @var{aspect}.
460
461 @item debug @var{flags} (@emph{decoding/encoding,audio,video,subtitles})
462 Print specific debug info.
463
464 Possible values:
465 @table @samp
466 @item pict
467 picture info
468 @item rc
469 rate control
470 @item bitstream
471
472 @item mb_type
473 macroblock (MB) type
474 @item qp
475 per-block quantization parameter (QP)
476 @item dct_coeff
477
478 @item green_metadata
479 display complexity metadata for the upcoming frame, GoP or for a given duration.
480
481 @item skip
482
483 @item startcode
484
485 @item er
486 error recognition
487 @item mmco
488 memory management control operations (H.264)
489 @item bugs
490
491 @item buffers
492 picture buffer allocations
493 @item thread_ops
494 threading operations
495 @item nomc
496 skip motion compensation
497 @end table
498
499 @item cmp @var{integer} (@emph{encoding,video})
500 Set full pel me compare function.
501
502 Possible values:
503 @table @samp
504 @item sad
505 sum of absolute differences, fast (default)
506 @item sse
507 sum of squared errors
508 @item satd
509 sum of absolute Hadamard transformed differences
510 @item dct
511 sum of absolute DCT transformed differences
512 @item psnr
513 sum of squared quantization errors (avoid, low quality)
514 @item bit
515 number of bits needed for the block
516 @item rd
517 rate distortion optimal, slow
518 @item zero
519 0
520 @item vsad
521 sum of absolute vertical differences
522 @item vsse
523 sum of squared vertical differences
524 @item nsse
525 noise preserving sum of squared differences
526 @item w53
527 5/3 wavelet, only used in snow
528 @item w97
529 9/7 wavelet, only used in snow
530 @item dctmax
531
532 @item chroma
533
534 @end table
535
536 @item subcmp @var{integer} (@emph{encoding,video})
537 Set sub pel me compare function.
538
539 Possible values:
540 @table @samp
541 @item sad
542 sum of absolute differences, fast (default)
543 @item sse
544 sum of squared errors
545 @item satd
546 sum of absolute Hadamard transformed differences
547 @item dct
548 sum of absolute DCT transformed differences
549 @item psnr
550 sum of squared quantization errors (avoid, low quality)
551 @item bit
552 number of bits needed for the block
553 @item rd
554 rate distortion optimal, slow
555 @item zero
556 0
557 @item vsad
558 sum of absolute vertical differences
559 @item vsse
560 sum of squared vertical differences
561 @item nsse
562 noise preserving sum of squared differences
563 @item w53
564 5/3 wavelet, only used in snow
565 @item w97
566 9/7 wavelet, only used in snow
567 @item dctmax
568
569 @item chroma
570
571 @end table
572
573 @item mbcmp @var{integer} (@emph{encoding,video})
574 Set macroblock compare function.
575
576 Possible values:
577 @table @samp
578 @item sad
579 sum of absolute differences, fast (default)
580 @item sse
581 sum of squared errors
582 @item satd
583 sum of absolute Hadamard transformed differences
584 @item dct
585 sum of absolute DCT transformed differences
586 @item psnr
587 sum of squared quantization errors (avoid, low quality)
588 @item bit
589 number of bits needed for the block
590 @item rd
591 rate distortion optimal, slow
592 @item zero
593 0
594 @item vsad
595 sum of absolute vertical differences
596 @item vsse
597 sum of squared vertical differences
598 @item nsse
599 noise preserving sum of squared differences
600 @item w53
601 5/3 wavelet, only used in snow
602 @item w97
603 9/7 wavelet, only used in snow
604 @item dctmax
605
606 @item chroma
607
608 @end table
609
610 @item ildctcmp @var{integer} (@emph{encoding,video})
611 Set interlaced dct compare function.
612
613 Possible values:
614 @table @samp
615 @item sad
616 sum of absolute differences, fast (default)
617 @item sse
618 sum of squared errors
619 @item satd
620 sum of absolute Hadamard transformed differences
621 @item dct
622 sum of absolute DCT transformed differences
623 @item psnr
624 sum of squared quantization errors (avoid, low quality)
625 @item bit
626 number of bits needed for the block
627 @item rd
628 rate distortion optimal, slow
629 @item zero
630 0
631 @item vsad
632 sum of absolute vertical differences
633 @item vsse
634 sum of squared vertical differences
635 @item nsse
636 noise preserving sum of squared differences
637 @item w53
638 5/3 wavelet, only used in snow
639 @item w97
640 9/7 wavelet, only used in snow
641 @item dctmax
642
643 @item chroma
644
645 @end table
646
647 @item dia_size @var{integer} (@emph{encoding,video})
648 Set diamond type & size for motion estimation.
649
650 @item last_pred @var{integer} (@emph{encoding,video})
651 Set amount of motion predictors from the previous frame.
652
653 @item preme @var{integer} (@emph{encoding,video})
654 Set pre motion estimation.
655
656 @item precmp @var{integer} (@emph{encoding,video})
657 Set pre motion estimation compare function.
658
659 Possible values:
660 @table @samp
661 @item sad
662 sum of absolute differences, fast (default)
663 @item sse
664 sum of squared errors
665 @item satd
666 sum of absolute Hadamard transformed differences
667 @item dct
668 sum of absolute DCT transformed differences
669 @item psnr
670 sum of squared quantization errors (avoid, low quality)
671 @item bit
672 number of bits needed for the block
673 @item rd
674 rate distortion optimal, slow
675 @item zero
676 0
677 @item vsad
678 sum of absolute vertical differences
679 @item vsse
680 sum of squared vertical differences
681 @item nsse
682 noise preserving sum of squared differences
683 @item w53
684 5/3 wavelet, only used in snow
685 @item w97
686 9/7 wavelet, only used in snow
687 @item dctmax
688
689 @item chroma
690
691 @end table
692
693 @item pre_dia_size @var{integer} (@emph{encoding,video})
694 Set diamond type & size for motion estimation pre-pass.
695
696 @item subq @var{integer} (@emph{encoding,video})
697 Set sub pel motion estimation quality.
698
699 @item dtg_active_format @var{integer}
700
701 @item me_range @var{integer} (@emph{encoding,video})
702 Set limit motion vectors range (1023 for DivX player).
703
704 @item ibias @var{integer} (@emph{encoding,video})
705 Set intra quant bias.
706
707 @item pbias @var{integer} (@emph{encoding,video})
708 Set inter quant bias.
709
710 @item color_table_id @var{integer}
711
712 @item global_quality @var{integer} (@emph{encoding,audio,video})
713
714 @item coder @var{integer} (@emph{encoding,video})
715
716 Possible values:
717 @table @samp
718 @item vlc
719 variable length coder / huffman coder
720 @item ac
721 arithmetic coder
722 @item raw
723 raw (no encoding)
724 @item rle
725 run-length coder
726 @item deflate
727 deflate-based coder
728 @end table
729
730 @item context @var{integer} (@emph{encoding,video})
731 Set context model.
732
733 @item slice_flags @var{integer}
734
735 @item mbd @var{integer} (@emph{encoding,video})
736 Set macroblock decision algorithm (high quality mode).
737
738 Possible values:
739 @table @samp
740 @item simple
741 use mbcmp (default)
742 @item bits
743 use fewest bits
744 @item rd
745 use best rate distortion
746 @end table
747
748 @item stream_codec_tag @var{integer}
749
750 @item sc_threshold @var{integer} (@emph{encoding,video})
751 Set scene change threshold.
752
753 @item lmin @var{integer} (@emph{encoding,video})
754 Set min lagrange factor (VBR).
755
756 @item lmax @var{integer} (@emph{encoding,video})
757 Set max lagrange factor (VBR).
758
759 @item nr @var{integer} (@emph{encoding,video})
760 Set noise reduction.
761
762 @item rc_init_occupancy @var{integer} (@emph{encoding,video})
763 Set number of bits which should be loaded into the rc buffer before
764 decoding starts.
765
766 @item flags2 @var{flags} (@emph{decoding/encoding,audio,video,subtitles})
767
768 Possible values:
769 @table @samp
770 @item fast
771 Allow non spec compliant speedup tricks.
772 @item noout
773 Skip bitstream encoding.
774 @item ignorecrop
775 Ignore cropping information from sps.
776 @item local_header
777 Place global headers at every keyframe instead of in extradata.
778 @item chunks
779 Frame data might be split into multiple chunks.
780 @item showall
781 Show all frames before the first keyframe.
782 @item export_mvs
783 Export motion vectors into frame side-data (see @code{AV_FRAME_DATA_MOTION_VECTORS})
784 for codecs that support it. See also @file{doc/examples/export_mvs.c}.
785 @item skip_manual
786 Do not skip samples and export skip information as frame side data.
787 @item ass_ro_flush_noop
788 Do not reset ASS ReadOrder field on flush.
789 @end table
790
791 @item export_side_data @var{flags} (@emph{decoding/encoding,audio,video,subtitles})
792
793 Possible values:
794 @table @samp
795 @item mvs
796 Export motion vectors into frame side-data (see @code{AV_FRAME_DATA_MOTION_VECTORS})
797 for codecs that support it. See also @file{doc/examples/export_mvs.c}.
798 @item prft
799 Export encoder Producer Reference Time into packet side-data (see @code{AV_PKT_DATA_PRFT})
800 for codecs that support it.
801 @end table
802
803 @item error @var{integer} (@emph{encoding,video})
804
805 @item qns @var{integer} (@emph{encoding,video})
806 Deprecated, use mpegvideo private options instead.
807
808 @item threads @var{integer} (@emph{decoding/encoding,video})
809 Set the number of threads to be used, in case the selected codec
810 implementation supports multi-threading.
811
812 Possible values:
813 @table @samp
814 @item auto, 0
815 automatically select the number of threads to set
816 @end table
817
818 Default value is @samp{auto}.
819
820 @item me_threshold @var{integer} (@emph{encoding,video})
821 Set motion estimation threshold.
822
823 @item mb_threshold @var{integer} (@emph{encoding,video})
824 Set macroblock threshold.
825
826 @item dc @var{integer} (@emph{encoding,video})
827 Set intra_dc_precision.
828
829 @item nssew @var{integer} (@emph{encoding,video})
830 Set nsse weight.
831
832 @item skip_top @var{integer} (@emph{decoding,video})
833 Set number of macroblock rows at the top which are skipped.
834
835 @item skip_bottom @var{integer} (@emph{decoding,video})
836 Set number of macroblock rows at the bottom which are skipped.
837
838 @item profile @var{integer} (@emph{encoding,audio,video})
839
840 Possible values:
841 @table @samp
842 @item unknown
843
844 @item aac_main
845
846 @item aac_low
847
848 @item aac_ssr
849
850 @item aac_ltp
851
852 @item aac_he
853
854 @item aac_he_v2
855
856 @item aac_ld
857
858 @item aac_eld
859
860 @item mpeg2_aac_low
861
862 @item mpeg2_aac_he
863
864 @item mpeg4_sp
865
866 @item mpeg4_core
867
868 @item mpeg4_main
869
870 @item mpeg4_asp
871
872 @item dts
873
874 @item dts_es
875
876 @item dts_96_24
877
878 @item dts_hd_hra
879
880 @item dts_hd_ma
881
882 @end table
883
884 Encoder specific profiles are documented in the relevant encoder documentation.
885
886 @item level @var{integer} (@emph{encoding,audio,video})
887
888 Possible values:
889 @table @samp
890 @item unknown
891
892 @end table
893
894 @item lowres @var{integer} (@emph{decoding,audio,video})
895 Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
896
897 @item skip_threshold @var{integer} (@emph{encoding,video})
898 Set frame skip threshold.
899
900 @item skip_factor @var{integer} (@emph{encoding,video})
901 Set frame skip factor.
902
903 @item skip_exp @var{integer} (@emph{encoding,video})
904 Set frame skip exponent.
905 Negative values behave identical to the corresponding positive ones, except
906 that the score is normalized.
907 Positive values exist primarily for compatibility reasons and are not so useful.
908
909 @item skipcmp @var{integer} (@emph{encoding,video})
910 Set frame skip compare function.
911
912 Possible values:
913 @table @samp
914 @item sad
915 sum of absolute differences, fast (default)
916 @item sse
917 sum of squared errors
918 @item satd
919 sum of absolute Hadamard transformed differences
920 @item dct
921 sum of absolute DCT transformed differences
922 @item psnr
923 sum of squared quantization errors (avoid, low quality)
924 @item bit
925 number of bits needed for the block
926 @item rd
927 rate distortion optimal, slow
928 @item zero
929 0
930 @item vsad
931 sum of absolute vertical differences
932 @item vsse
933 sum of squared vertical differences
934 @item nsse
935 noise preserving sum of squared differences
936 @item w53
937 5/3 wavelet, only used in snow
938 @item w97
939 9/7 wavelet, only used in snow
940 @item dctmax
941
942 @item chroma
943
944 @end table
945
946 @item border_mask @var{float} (@emph{encoding,video})
947 Increase the quantizer for macroblocks close to borders.
948
949 @item mblmin @var{integer} (@emph{encoding,video})
950 Set min macroblock lagrange factor (VBR).
951
952 @item mblmax @var{integer} (@emph{encoding,video})
953 Set max macroblock lagrange factor (VBR).
954
955 @item mepc @var{integer} (@emph{encoding,video})
956 Set motion estimation bitrate penalty compensation (1.0 = 256).
957
958 @item skip_loop_filter @var{integer} (@emph{decoding,video})
959 @item skip_idct        @var{integer} (@emph{decoding,video})
960 @item skip_frame       @var{integer} (@emph{decoding,video})
961
962 Make decoder discard processing depending on the frame type selected
963 by the option value.
964
965 @option{skip_loop_filter} skips frame loop filtering, @option{skip_idct}
966 skips frame IDCT/dequantization, @option{skip_frame} skips decoding.
967
968 Possible values:
969 @table @samp
970 @item none
971 Discard no frame.
972
973 @item default
974 Discard useless frames like 0-sized frames.
975
976 @item noref
977 Discard all non-reference frames.
978
979 @item bidir
980 Discard all bidirectional frames.
981
982 @item nokey
983 Discard all frames excepts keyframes.
984
985 @item nointra
986 Discard all frames except I frames.
987
988 @item all
989 Discard all frames.
990 @end table
991
992 Default value is @samp{default}.
993
994 @item bidir_refine @var{integer} (@emph{encoding,video})
995 Refine the two motion vectors used in bidirectional macroblocks.
996
997 @item brd_scale @var{integer} (@emph{encoding,video})
998 Downscale frames for dynamic B-frame decision.
999
1000 @item keyint_min @var{integer} (@emph{encoding,video})
1001 Set minimum interval between IDR-frames.
1002
1003 @item refs @var{integer} (@emph{encoding,video})
1004 Set reference frames to consider for motion compensation.
1005
1006 @item chromaoffset @var{integer} (@emph{encoding,video})
1007 Set chroma qp offset from luma.
1008
1009 @item trellis @var{integer} (@emph{encoding,audio,video})
1010 Set rate-distortion optimal quantization.
1011
1012 @item mv0_threshold @var{integer} (@emph{encoding,video})
1013 @item b_sensitivity @var{integer} (@emph{encoding,video})
1014 Adjust sensitivity of b_frame_strategy 1.
1015
1016 @item compression_level @var{integer} (@emph{encoding,audio,video})
1017 @item min_prediction_order @var{integer} (@emph{encoding,audio})
1018 @item max_prediction_order @var{integer} (@emph{encoding,audio})
1019 @item timecode_frame_start @var{integer} (@emph{encoding,video})
1020 Set GOP timecode frame start number, in non drop frame format.
1021
1022 @item request_channels @var{integer} (@emph{decoding,audio})
1023 Set desired number of audio channels.
1024
1025 @item bits_per_raw_sample @var{integer}
1026 @item channel_layout @var{integer} (@emph{decoding/encoding,audio})
1027
1028 Possible values:
1029 @table @samp
1030 @end table
1031 @item request_channel_layout @var{integer} (@emph{decoding,audio})
1032
1033 Possible values:
1034 @table @samp
1035 @end table
1036 @item rc_max_vbv_use @var{float} (@emph{encoding,video})
1037 @item rc_min_vbv_use @var{float} (@emph{encoding,video})
1038 @item ticks_per_frame @var{integer} (@emph{decoding/encoding,audio,video})
1039
1040 @item color_primaries @var{integer} (@emph{decoding/encoding,video})
1041 Possible values:
1042 @table @samp
1043 @item bt709
1044 BT.709
1045 @item bt470m
1046 BT.470 M
1047 @item bt470bg
1048 BT.470 BG
1049 @item smpte170m
1050 SMPTE 170 M
1051 @item smpte240m
1052 SMPTE 240 M
1053 @item film
1054 Film
1055 @item bt2020
1056 BT.2020
1057 @item smpte428
1058 @item smpte428_1
1059 SMPTE ST 428-1
1060 @item smpte431
1061 SMPTE 431-2
1062 @item smpte432
1063 SMPTE 432-1
1064 @item jedec-p22
1065 JEDEC P22
1066 @end table
1067
1068 @item color_trc @var{integer} (@emph{decoding/encoding,video})
1069 Possible values:
1070 @table @samp
1071 @item bt709
1072 BT.709
1073 @item gamma22
1074 BT.470 M
1075 @item gamma28
1076 BT.470 BG
1077 @item smpte170m
1078 SMPTE 170 M
1079 @item smpte240m
1080 SMPTE 240 M
1081 @item linear
1082 Linear
1083 @item log
1084 @item log100
1085 Log
1086 @item log_sqrt
1087 @item log316
1088 Log square root
1089 @item iec61966_2_4
1090 @item iec61966-2-4
1091 IEC 61966-2-4
1092 @item bt1361
1093 @item bt1361e
1094 BT.1361
1095 @item iec61966_2_1
1096 @item iec61966-2-1
1097 IEC 61966-2-1
1098 @item bt2020_10
1099 @item bt2020_10bit
1100 BT.2020 - 10 bit
1101 @item bt2020_12
1102 @item bt2020_12bit
1103 BT.2020 - 12 bit
1104 @item smpte2084
1105 SMPTE ST 2084
1106 @item smpte428
1107 @item smpte428_1
1108 SMPTE ST 428-1
1109 @item arib-std-b67
1110 ARIB STD-B67
1111 @end table
1112
1113 @item colorspace @var{integer} (@emph{decoding/encoding,video})
1114 Possible values:
1115 @table @samp
1116 @item rgb
1117 RGB
1118 @item bt709
1119 BT.709
1120 @item fcc
1121 FCC
1122 @item bt470bg
1123 BT.470 BG
1124 @item smpte170m
1125 SMPTE 170 M
1126 @item smpte240m
1127 SMPTE 240 M
1128 @item ycocg
1129 YCOCG
1130 @item bt2020nc
1131 @item bt2020_ncl
1132 BT.2020 NCL
1133 @item bt2020c
1134 @item bt2020_cl
1135 BT.2020 CL
1136 @item smpte2085
1137 SMPTE 2085
1138 @end table
1139
1140 @item color_range @var{integer} (@emph{decoding/encoding,video})
1141 If used as input parameter, it serves as a hint to the decoder, which
1142 color_range the input has.
1143 Possible values:
1144 @table @samp
1145 @item tv
1146 @item mpeg
1147 MPEG (219*2^(n-8))
1148 @item pc
1149 @item jpeg
1150 JPEG (2^n-1)
1151 @end table
1152
1153 @item chroma_sample_location @var{integer} (@emph{decoding/encoding,video})
1154 Possible values:
1155 @table @samp
1156 @item left
1157
1158 @item center
1159
1160 @item topleft
1161
1162 @item top
1163
1164 @item bottomleft
1165
1166 @item bottom
1167
1168 @end table
1169
1170 @item log_level_offset @var{integer}
1171 Set the log level offset.
1172
1173 @item slices @var{integer} (@emph{encoding,video})
1174 Number of slices, used in parallelized encoding.
1175
1176 @item thread_type @var{flags} (@emph{decoding/encoding,video})
1177 Select which multithreading methods to use.
1178
1179 Use of @samp{frame} will increase decoding delay by one frame per
1180 thread, so clients which cannot provide future frames should not use
1181 it.
1182
1183 Possible values:
1184 @table @samp
1185 @item slice
1186 Decode more than one part of a single frame at once.
1187
1188 Multithreading using slices works only when the video was encoded with
1189 slices.
1190
1191 @item frame
1192 Decode more than one frame at once.
1193 @end table
1194
1195 Default value is @samp{slice+frame}.
1196
1197 @item audio_service_type @var{integer} (@emph{encoding,audio})
1198 Set audio service type.
1199
1200 Possible values:
1201 @table @samp
1202 @item ma
1203 Main Audio Service
1204 @item ef
1205 Effects
1206 @item vi
1207 Visually Impaired
1208 @item hi
1209 Hearing Impaired
1210 @item di
1211 Dialogue
1212 @item co
1213 Commentary
1214 @item em
1215 Emergency
1216 @item vo
1217 Voice Over
1218 @item ka
1219 Karaoke
1220 @end table
1221
1222 @item request_sample_fmt @var{sample_fmt} (@emph{decoding,audio})
1223 Set sample format audio decoders should prefer. Default value is
1224 @code{none}.
1225
1226 @item pkt_timebase @var{rational number}
1227
1228 @item sub_charenc @var{encoding} (@emph{decoding,subtitles})
1229 Set the input subtitles character encoding.
1230
1231 @item field_order  @var{field_order} (@emph{video})
1232 Set/override the field order of the video.
1233 Possible values:
1234 @table @samp
1235 @item progressive
1236 Progressive video
1237 @item tt
1238 Interlaced video, top field coded and displayed first
1239 @item bb
1240 Interlaced video, bottom field coded and displayed first
1241 @item tb
1242 Interlaced video, top coded first, bottom displayed first
1243 @item bt
1244 Interlaced video, bottom coded first, top displayed first
1245 @end table
1246
1247 @item skip_alpha @var{bool} (@emph{decoding,video})
1248 Set to 1 to disable processing alpha (transparency). This works like the
1249 @samp{gray} flag in the @option{flags} option which skips chroma information
1250 instead of alpha. Default is 0.
1251
1252 @item codec_whitelist @var{list} (@emph{input})
1253 "," separated list of allowed decoders. By default all are allowed.
1254
1255 @item dump_separator @var{string} (@emph{input})
1256 Separator used to separate the fields printed on the command line about the
1257 Stream parameters.
1258 For example, to separate the fields with newlines and indentation:
1259 @example
1260 ffprobe -dump_separator "
1261                           "  -i ~/videos/matrixbench_mpeg2.mpg
1262 @end example
1263
1264 @item max_pixels @var{integer} (@emph{decoding/encoding,video})
1265 Maximum number of pixels per image. This value can be used to avoid out of
1266 memory failures due to large images.
1267
1268 @item apply_cropping @var{bool} (@emph{decoding,video})
1269 Enable cropping if cropping parameters are multiples of the required
1270 alignment for the left and top parameters. If the alignment is not met the
1271 cropping will be partially applied to maintain alignment.
1272 Default is 1 (enabled).
1273 Note: The required alignment depends on if @code{AV_CODEC_FLAG_UNALIGNED} is set and the
1274 CPU. @code{AV_CODEC_FLAG_UNALIGNED} cannot be changed from the command line. Also hardware
1275 decoders will not apply left/top Cropping.
1276
1277
1278 @end table
1279
1280 @c man end CODEC OPTIONS
1281
1282 @ifclear config-writeonly
1283 @include decoders.texi
1284 @end ifclear
1285 @ifclear config-readonly
1286 @include encoders.texi
1287 @end ifclear