<div dir="ltr"><div>Hi guys,</div><div><br></div><div>I've downloaded latest libvpx code and built it into ffmpeg, so that my application can use ffmpeg dlls.</div><div><br></div><div>Vp8 encoding works correctly and my application can generate webm videos.</div>
<div><br></div><div>But what I want to know is, how can I set crf when encoding?</div><div><br></div><div>What I do in my application is just calling ffmpeg interface</div><div>1. AVStream* pVideoStream = av_new_stream(pFormatCtx, 0);</div>
<div>2. AVCodec* pVideoCodec = avcodec_find_encoder(AVCODE_ID_VP8)</div><div>3. AVCodecContext* pVideoCodecCtx = pVideoStream->codec;</div><div><br></div><div>   pVideoCodexCtx->bit_rate =</div><div>                           ->rc_min_rate= </div>
<div>                           ->rc_max_rate=   (set all these bit rate control param)</div><div><br></div><div>  I checked libvpxenc.c under libavcodec and seems when initing the encoder, it doesn't directly refer to any member </div>
<div> of AVCodecContext to set crf.</div><div><br></div><div> So could anyone tell me, how to set crf when open vp8 encoder programmatically?</div><div><br></div><div> Great thanks!</div></div>