<div class="gmail_quote"><div>Hello Conrad, <br>I&#39;m trying to seek the way you told but I&#39;m facing a problem. ogg_page_packets returns 164 and following code returns 189. Shouldn&#39;t it be the same, what does that means ?<br>
<br><div style="margin-left: 40px;">int res;<br></div><div style="margin-left: 40px;">while (true)<br></div><div style="margin-left: 40px;">{<br></div><div style="margin-left: 40px;">          res = ogg_stream_packetout(&amp;os, &amp;op);<br>
</div>                        <br>                    if (res == 1)<br><div style="margin-left: 40px;">              nPackets++;<br></div>                            <br>                    if (res == -1)<br>                        printf(&quot;out of sync\n&quot;);<br>
                          <br>                    if (res == 0)  // we need another page<br><div style="margin-left: 40px;">              break;<br>} </div></div><div><br>Thanky you, <br>Arnau<br></div></div><br>