<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="gmail_default" style="font-family:georgia,serif">>​Hi,
      searching the mail list and seems I found the answer.</div>
    <div class="gmail_default" style="font-family:georgia,serif"><br>
    </div>
    <div class="gmail_default" style="font-family:georgia,serif">>Just
      need to set</div>
    <div class="gmail_default" style="font-family:georgia,serif"><br>
    </div>
    <div class="gmail_default" style="font-family:georgia,serif">
      <div class="gmail_default">>AVCodecContext.flags |=
        CODEC_FLAG_QSCALE</div>
      <div class="gmail_default">>and AVCodecContext.global_quality
         = qscale * FF_QP2LAMBDA, in my case qscale = 3</div>
      <div class="gmail_default"><br>
      </div>
      <div class="gmail_default">>Please correct me if anything
        wrong, thanks<br>
        <br>
        I had a question regarding setting the bit_rate to adjust
        quality. This works but fuzzy on how best to set the bit_rate.<br>
        <br>
        I tried what you did and that works but it produces an
        excessively large file with a large bit_rate using QSCALE. I
        mean way to large bit_rate. So there is more to the story. I am
        testing with 1920x1080 live recording. Using the bit_rate only I
        am able to control quality and file size better than I can
        currently using QSCALE but again sort of fuzzy logic on how best
        to set the bit_rate.<br>
        <br>
        I am still experimenting with it.<br>
      </div>
    </div>
  </body>
</html>