<div dir="ltr">


<span style="font-family:tahoma,sans-serif"><font size="2"><span><div><span style="color:rgb(0,0,0);font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline">At the beginning of encoding, the H264 Encoder is accepting multiple input frames without returning a encoded stream, in my case it is accepting  58 input frames.<br><br></span></div><div><span style="color:rgb(0,0,0);font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline;float:none"><span style="background-color:rgb(255,255,0)">what changes are required  at encoder side to get output frame for every input frame, i.e o/p frame for i/p frame iteration?</span><br><br></span></div><div><span style="color:rgb(0,0,0);font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline;float:none">below is encoder code.</span></div><div><span><span style="background-color:rgb(255,255,255)">ret = avcodec_send_frame(c_enc, frame);</span></span></div><div><span><span style="background-color:rgb(255,255,255)">        if (ret < 0)</span></span></div><div><span><span style="background-color:rgb(255,255,255)">        {</span></span></div><div><span><span style="background-color:rgb(255,255,255)">                fprintf(stderr, "Error sending a frame for encoding\n");</span></span></div><div><span><span style="background-color:rgb(255,255,255)">                exit(1);</span></span></div><div><span><span style="background-color:rgb(255,255,255)">        }</span></span></div><div><span><span style="background-color:rgb(255,255,255)"> while (1) {</span></span></div><div><span><span style="background-color:rgb(255,255,255)"> ret = avcodec_receive_packet(c_enc, pkt);</span></span></div><div><span><span style="background-color:rgb(255,255,255)">        if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)</span></span></div><div><span><span style="background-color:rgb(255,255,255)">                break;</span></span></div><div><span><span style="background-color:rgb(255,255,255)">       else</span></span></div><div><span><span style="background-color:rgb(255,255,255)">     ///dump encoded packet in to file</span></span></div><div><span><span style="background-color:rgb(255,255,255)">}</span></span></div></span>



<br clear="all"></font></span><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Thanks & Regards<br>Vittal Prasad B R<br><br><br><br><br></div>
</div>