<div dir="ltr">I'm writing a streaming application using ffmpeg and libmfx/libx264 (depending on hardware support).<div><br></div><div>Is there a simple way to ensure that if i call avcodec_encode_video2 with a frame, it'll get an encoded frame back?</div><div>I tried setting lookahead 0, and rc_lookahead 0 but it didn't seem to work.</div><div><br></div><div>Please help.</div><div>Kevin</div></div>