<div dir="ltr"><div dir="ltr">After much more investigation, and understanding of x264. <div><br></div><div>I saw in the log that using the ffmpeg command line the  AVG QP are I=16,39 / P=19.63 / B=22.56.</div><div>Compared to using the ffmpeg API in my application the AVG QP are I=7.79   / P=10.80 / B=13.56</div><div><br></div><div>Which leads to a great difference in bitrate and file size. But visually, I can't spot the difference in both videos.</div><div><br></div><div>What is happening in ffmpeg.c (and below) that is not replicated by default in other options?</div><div><br></div><div>While using mediainfo on both my resulting file, it seems that encoder (x264) parameters are exactly the same. I really don't know what to do.</div><div><br></div></div></div>