@ -67,20 +67,6 @@ static const AVOption avcodec_options[] = {
{ " noout " , " skip bitstream encoding " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_CODEC_FLAG2_NO_OUTPUT } , INT_MIN , INT_MAX , V | E , " flags2 " } ,
{ " ignorecrop " , " ignore cropping information from sps " , 1 , AV_OPT_TYPE_CONST , { . i64 = AV_CODEC_FLAG2_IGNORE_CROP } , INT_MIN , INT_MAX , V | D , " flags2 " } ,
{ " local_header " , " place global headers at every keyframe instead of in extradata " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_CODEC_FLAG2_LOCAL_HEADER } , INT_MIN , INT_MAX , V | E , " flags2 " } ,
# if FF_API_MOTION_EST
{ " me_method " , " set motion estimation method " , OFFSET ( me_method ) , AV_OPT_TYPE_INT , { . i64 = ME_EPZS } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " zero " , " zero motion estimation (fastest) " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_ZERO } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " full " , " full motion estimation (slowest) " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_FULL } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " epzs " , " EPZS motion estimation (default) " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_EPZS } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " esa " , " esa motion estimation (alias for full) " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_FULL } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " tesa " , " tesa motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_TESA } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " dia " , " diamond motion estimation (alias for EPZS) " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_EPZS } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " log " , " log motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_LOG } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " phods " , " phods motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_PHODS } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " x1 " , " X1 motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_X1 } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " hex " , " hex motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_HEX } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " umh " , " umh motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_UMH } , INT_MIN , INT_MAX , V | E , " me_method " } ,
# endif
{ " extradata_size " , NULL , OFFSET ( extradata_size ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " time_base " , NULL , OFFSET ( time_base ) , AV_OPT_TYPE_RATIONAL , { . dbl = 0 } , INT_MIN , INT_MAX } ,
{ " g " , " set the group of picture (GOP) size " , OFFSET ( gop_size ) , AV_OPT_TYPE_INT , { . i64 = 12 } , INT_MIN , INT_MAX , V | E } ,
@ -99,9 +85,6 @@ static const AVOption avcodec_options[] = {
{ " qdiff " , " maximum difference between the quantizer scales (VBR) " , OFFSET ( max_qdiff ) , AV_OPT_TYPE_INT , { . i64 = 3 } , INT_MIN , INT_MAX , V | E } ,
{ " bf " , " use 'frames' B-frames " , OFFSET ( max_b_frames ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , - 1 , INT_MAX , V | E } ,
{ " b_qfactor " , " QP factor between P- and B-frames " , OFFSET ( b_quant_factor ) , AV_OPT_TYPE_FLOAT , { . dbl = 1.25 } , - FLT_MAX , FLT_MAX , V | E } ,
# if FF_API_RC_STRATEGY
{ " rc_strategy " , " ratecontrol method " , OFFSET ( rc_strategy ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
# endif
# if FF_API_PRIVATE_OPT
{ " b_strategy " , " strategy to choose between I/P/B-frames " , OFFSET ( b_frame_strategy ) , AV_OPT_TYPE_INT , { . i64 = 0 } , INT_MIN , INT_MAX , V | E } ,
{ " ps " , " RTP payload size in bytes " , OFFSET ( rtp_payload_size ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
@ -150,27 +133,13 @@ static const AVOption avcodec_options[] = {
# if FF_API_PRIVATE_OPT
{ " mpeg_quant " , " use MPEG quantizers instead of H.263 " , OFFSET ( mpeg_quant ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
# endif
# if FF_API_MPV_OPT
{ " qsquish " , " deprecated, use encoder private options instead " , OFFSET ( rc_qsquish ) , AV_OPT_TYPE_FLOAT , { . dbl = DEFAULT } , 0 , 99 , V | E } ,
{ " rc_qmod_amp " , " deprecated, use encoder private options instead " , OFFSET ( rc_qmod_amp ) , AV_OPT_TYPE_FLOAT , { . dbl = DEFAULT } , - FLT_MAX , FLT_MAX , V | E } ,
{ " rc_qmod_freq " , " deprecated, use encoder private options instead " , OFFSET ( rc_qmod_freq ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
# endif
{ " rc_override_count " , NULL , OFFSET ( rc_override_count ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
# if FF_API_MPV_OPT
{ " rc_eq " , " deprecated, use encoder private options instead " , OFFSET ( rc_eq ) , AV_OPT_TYPE_STRING , { . str = NULL } , CHAR_MIN , CHAR_MAX , V | E } ,
# endif
{ " maxrate " , " Set maximum bitrate tolerance (in bits/s). Requires bufsize to be set. " , OFFSET ( rc_max_rate ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | A | E } ,
{ " minrate " , " Set minimum bitrate tolerance (in bits/s). Most useful in setting up a CBR encode. It is of little use otherwise. " ,
OFFSET ( rc_min_rate ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | A | E } ,
{ " bufsize " , " set ratecontrol buffer size (in bits) " , OFFSET ( rc_buffer_size ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , A | V | E } ,
# if FF_API_MPV_OPT
{ " rc_buf_aggressivity " , " deprecated, use encoder private options instead " , OFFSET ( rc_buffer_aggressivity ) , AV_OPT_TYPE_FLOAT , { . dbl = 1.0 } , - FLT_MAX , FLT_MAX , V | E } ,
# endif
{ " i_qfactor " , " QP factor between P- and I-frames " , OFFSET ( i_quant_factor ) , AV_OPT_TYPE_FLOAT , { . dbl = - 0.8 } , - FLT_MAX , FLT_MAX , V | E } ,
{ " i_qoffset " , " QP offset between P- and I-frames " , OFFSET ( i_quant_offset ) , AV_OPT_TYPE_FLOAT , { . dbl = 0.0 } , - FLT_MAX , FLT_MAX , V | E } ,
# if FF_API_MPV_OPT
{ " rc_init_cplx " , " deprecated, use encoder private options instead " , OFFSET ( rc_initial_cplx ) , AV_OPT_TYPE_FLOAT , { . dbl = DEFAULT } , - FLT_MAX , FLT_MAX , V | E } ,
# endif
{ " dct " , " DCT algorithm " , OFFSET ( dct_algo ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , 0 , INT_MAX , V | E , " dct " } ,
{ " auto " , " autoselect a good one (default) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DCT_AUTO } , INT_MIN , INT_MAX , V | E , " dct " } ,
{ " fastint " , " fast integer " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DCT_FASTINT } , INT_MIN , INT_MAX , V | E , " dct " } ,
@ -248,10 +217,6 @@ static const AVOption avcodec_options[] = {
{ " pre_dia_size " , " diamond type & size for motion estimation pre-pass " , OFFSET ( pre_dia_size ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " subq " , " sub-pel motion estimation quality " , OFFSET ( me_subpel_quality ) , AV_OPT_TYPE_INT , { . i64 = 8 } , INT_MIN , INT_MAX , V | E } ,
{ " me_range " , " limit motion vectors range (1023 for DivX player) " , OFFSET ( me_range ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
# if FF_API_QUANT_BIAS
{ " ibias " , " intra quant bias " , OFFSET ( intra_quant_bias ) , AV_OPT_TYPE_INT , { . i64 = FF_DEFAULT_QUANT_BIAS } , INT_MIN , INT_MAX , V | E } ,
{ " pbias " , " inter quant bias " , OFFSET ( inter_quant_bias ) , AV_OPT_TYPE_INT , { . i64 = FF_DEFAULT_QUANT_BIAS } , INT_MIN , INT_MAX , V | E } ,
# endif
{ " global_quality " , NULL , OFFSET ( global_quality ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | A | E } ,
# if FF_API_CODER_TYPE
{ " coder " , NULL , OFFSET ( coder_type ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E , " coder " } ,
@ -274,10 +239,6 @@ static const AVOption avcodec_options[] = {
# if FF_API_PRIVATE_OPT
{ " sc_threshold " , " scene change threshold " , OFFSET ( scenechange_threshold ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
# endif
# if FF_API_MPV_OPT
{ " lmin " , " deprecated, use encoder private options instead " , OFFSET ( lmin ) , AV_OPT_TYPE_INT , { . i64 = 0 } , 0 , INT_MAX , V | E } ,
{ " lmax " , " deprecated, use encoder private options instead " , OFFSET ( lmax ) , AV_OPT_TYPE_INT , { . i64 = 0 } , 0 , INT_MAX , V | E } ,
# endif
# if FF_API_PRIVATE_OPT
{ " nr " , " noise reduction " , OFFSET ( noise_reduction ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
# endif
@ -285,10 +246,6 @@ static const AVOption avcodec_options[] = {
{ " flags2 " , NULL , OFFSET ( flags2 ) , AV_OPT_TYPE_FLAGS , { . i64 = DEFAULT } , 0 , UINT_MAX , V | A | E | D , " flags2 " } ,
{ " threads " , NULL , OFFSET ( thread_count ) , AV_OPT_TYPE_INT , { . i64 = 1 } , 0 , INT_MAX , V | E | D , " threads " } ,
{ " auto " , " autodetect a suitable number of threads to use " , 0 , AV_OPT_TYPE_CONST , { . i64 = 0 } , INT_MIN , INT_MAX , V | E | D , " threads " } ,
# if FF_API_MPV_OPT
{ " me_threshold " , " motion estimation threshold " , OFFSET ( me_threshold ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " mb_threshold " , " macroblock threshold " , OFFSET ( mb_threshold ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
# endif
{ " dc " , " intra_dc_precision " , OFFSET ( intra_dc_precision ) , AV_OPT_TYPE_INT , { . i64 = 0 } , INT_MIN , INT_MAX , V | E } ,
{ " nssew " , " nsse weight " , OFFSET ( nsse_weight ) , AV_OPT_TYPE_INT , { . i64 = 8 } , INT_MIN , INT_MAX , V | E } ,
{ " skip_top " , " number of macroblock rows at the top which are skipped " , OFFSET ( skip_top ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | D } ,
@ -319,9 +276,6 @@ static const AVOption avcodec_options[] = {
{ " skip_exp " , " frame skip exponent " , OFFSET ( frame_skip_exp ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " skipcmp " , " frame skip compare function " , OFFSET ( frame_skip_cmp ) , AV_OPT_TYPE_INT , { . i64 = FF_CMP_DCTMAX } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
# endif
# if FF_API_MPV_OPT
{ " border_mask " , " deprecated, use encoder private options instead " , OFFSET ( border_masking ) , AV_OPT_TYPE_FLOAT , { . dbl = DEFAULT } , - FLT_MAX , FLT_MAX , V | E } ,
# endif
{ " mblmin " , " minimum macroblock Lagrange factor (VBR) " , OFFSET ( mb_lmin ) , AV_OPT_TYPE_INT , { . i64 = FF_QP2LAMBDA * 2 } , 1 , FF_LAMBDA_MAX , V | E } ,
{ " mblmax " , " maximum macroblock Lagrange factor (VBR) " , OFFSET ( mb_lmax ) , AV_OPT_TYPE_INT , { . i64 = FF_QP2LAMBDA * 31 } , 1 , FF_LAMBDA_MAX , V | E } ,
# if FF_API_PRIVATE_OPT