参数
pCodecCtxEnc->codec_type = AVMEDIA_TYPE_VIDEO;
pCodecCtxEnc->bit_rate = 200000;
pCodecCtxEnc->bit_rate_tolerance = 4000000;
pCodecCtxEnc->width = 640;
pCodecCtxEnc->height = 480;
pCodecCtxEnc->time_base.den = 30;
pCodecCtxEnc->time_base = (AVRational){1,25};
pCodecCtxEnc->time_base.num = 1;
pCodecCtxEnc->pix_fmt = PIX_FMT_YUV420P;
pCodecCtxEnc->gop_size = 250;
pCodecCtxEnc->max_b_frames = 0;
pCodecCtxEnc->pre_me = 2;
pCodecCtxEnc->lmin = 1;
pCodecCtxEnc->lmax = 5;
pCodecCtxEnc->qmin = 10;
pCodecCtxEnc->qmax = 50;
pCodecCtxEnc->qblur = 0.0;
pCodecCtxEnc->spatial_cplx_masking = 0.3;
pCodecCtxEnc->me_pre_cmp = 2;
pCodecCtxEnc->rc_qsquish = 1;
pCodecCtxEnc->b_quant_factor = 1.25;
pCodecCtxEnc->b_quant_offset = 1.25;
pCodecCtxEnc->i_quant_factor = 0.8;
pCodecCtxEnc->i_quant_offset = 0.0;
pCodecCtxEnc->rc_strategy = 2;
pCodecCtxEnc->b_frame_strategy = 0;
pCodecCtxEnc->luma_elim_threshold = 0;
pCodecCtxEnc->chroma_elim_threshold = 0;
pCodecCtxEnc->dct_algo = 0;
pCodecCtxEnc->lumi_masking = 0.0;
pCodecCtxEnc->dark_masking = 0.0;
————————————————
版权声明:本文为CSDN博主「向浅」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/chance_yin/article/details/16335625