<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">El 18/04/2020 a las 11:46, Mohammed Bey
      Ahmed Khernache escribió:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMzR6WigFZ_BG3sXtgYznk+9pPMZeiOi75ZS5Bg4_dsSHj3Uqw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_default" style="color:#073763">Hello,</div>
        <div class="gmail_default" style="color:#073763">could someone
          tell me how to get:</div>
        <div class="gmail_default" style="color:#073763">    1- the
          total number of packets that a video bit-stream contain?</div>
      </div>
    </blockquote>
    Not possible, afaik.<br>
    <blockquote type="cite"
cite="mid:CAMzR6WigFZ_BG3sXtgYznk+9pPMZeiOi75ZS5Bg4_dsSHj3Uqw@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_default" style="color:#073763">    2- the
          packet type (I, P, or B)?</div>
      </div>
    </blockquote>
    <p>You can get the frame type with av_get_picture_type_char(
      frame->pict_type ) (returns I, P, B or ?).<br>
    </p>
    <blockquote type="cite"
cite="mid:CAMzR6WigFZ_BG3sXtgYznk+9pPMZeiOi75ZS5Bg4_dsSHj3Uqw@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_default" style="color:#073763">Actually, I
          need to have these information <b>before to start </b><b>decoding</b>
          of packets.</div>
        <br>
      </div>
    </blockquote>
    Not possible, afaik.<br>
    <pre class="moz-signature" cols="72">-- 
Gonzalo Garramuño</pre>
  </body>
</html>