<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div><span></span></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1457628463547_13049"><font id="yui_3_16_0_1_1457628463547_13114" face="times new roman, new york, times, serif">>This indicates that either you have done something wrong <br>>or the task ("use yuv420p h264 but please don't use any <br>>quality") was impossible (or the encoder is really <br>>complete crap which I don't know).<br></font></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1457628463547_13048"><font face="times new roman, new york, times, serif"></font><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1457628463547_13047" dir="ltr"><font id="yui_3_16_0_1_1457628463547_13134" face="times new roman, new york, times, serif">It turns out I found some more information on using FFMPEG with OpenH264. It may not be relevant, but I thought I'd post it here. It reads:</font></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1457628463547_13046" dir="ltr"><font face="times new roman, new york, times, serif"></font><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1457628463547_13045" dir="ltr"><font id="yui_3_16_0_1_1457628463547_13133" face="times new roman, new york, times, serif">Turns out that much/most of the control over quality-related parameters lies in the codec-specific "private" dictionary. For example:</font></div><pre id="yui_3_16_0_1_1457628463547_11028" style="padding: 16px; border-radius: 3px; color: rgb(51, 51, 51); line-height: 1.45; overflow: auto; font-size: 11.9px; margin-top: 0px; margin-bottom: 16px; -ms-word-wrap: normal; font-stretch: normal; background-color: rgb(247, 247, 247);"><code id="yui_3_16_0_1_1457628463547_11031" style="background: none; margin: 0px; padding: 0px; border-radius: 3px; border: 0px currentColor; border-image: none; line-height: inherit; font-size: 11.9px; display: inline; -ms-word-wrap: normal;"><font id="yui_3_16_0_1_1457628463547_13118" face="times new roman, new york, times, serif"><em><strong>    AVCodecContext *c = <your context>;
    av_opt_set(c->priv_data, "profile", "baseline", AV_OPT_SEARCH_CHILDREN);
    av_opt_set(c->priv_data, "level", "3.0", AV_OPT_SEARCH_CHILDREN);
    av_opt_set(c->priv_data, "preset", "slow", AV_OPT_SEARCH_CHILDREN);
    av_opt_set(c->priv_data, "crf",  "18", AV_OPT_SEARCH_CHILDREN);
</strong></em></font></code></pre><div id="yui_3_16_0_1_1457628463547_13044" style="color: rgb(51, 51, 51); line-height: 22.4px; font-size: 14px; margin-top: 0px; margin-bottom: 16px;" dir="ltr"><font id="yui_3_16_0_1_1457628463547_13117" face="times new roman, new york, times, serif">Judicious tweaking of these (and other) params gets me the control over quality I was searching for.</font></div><div id="yui_3_16_0_1_1457628463547_13075" style="color: rgb(51, 51, 51); line-height: 22.4px; font-size: 14px; margin-top: 0px; margin-bottom: 16px;" dir="ltr"><font id="yui_3_16_0_1_1457628463547_13116" face="times new roman, new york, times, serif"> This then brings up the question: can anybody suggest which private parameters I could/should try to improve the quality of an OpenH264/MP4 video? Preferably, parameters and possible options to try; I will be happy to try the combinations and report back.</font></div><div id="yui_3_16_0_1_1457628463547_13132" style="color: rgb(51, 51, 51); line-height: 22.4px; font-size: 14px; margin-top: 0px; margin-bottom: 16px;" dir="ltr"><font face="times new roman, new york, times, serif">Thanks.</font></div><div id="yui_3_16_0_1_1457628463547_13076" style="color: rgb(51, 51, 51); line-height: 22.4px; font-size: 14px; margin-top: 0px; margin-bottom: 16px;" dir="ltr"><font face="times new roman, new york, times, serif">-Arthur</font> <br></div>    </div></body></html>