<html><head><style>P {margin-top:2px;margin-bottom:2px;}</style></head><body><div style="font-size:10pt; font-family:gulim,Gulim,AppleGothic,sans-serif;"><P><SPAN lang=EN-US style="FONT-SIZE: 10pt">Hi All,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt"> <o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt">I'm testing ffmpeg with libx264 encoding.<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt">I found that ffmpeg did not encode after receiving picture data.<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt">That is, avcodec_encode_video() function returned 0 value of encoding.<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt">After receiving 40 frames, ffmpeg avcodec_encode_video() function returned positive value.<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt">This results in 2 seconds delay on receving side.<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt"> <o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt">Meanwhile, I set up cqp option and then ffmpeg start to encode without any delay.<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt"> <o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt">Is cqp option mandatory?<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt">How to set up ffmpeg command to encode immediately without cqp option?<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt"></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt"><o:p></o:p></SPAN> </P>
<P>Best Regards,</P>
<P>HSK</P></div></body></html><!--navermail.footer.start-->
<!--navermail.footer.end-->                                                                                           
<IMG SRC="http://mail2.naver.com/newmailcheck/KfnmW60Obr2qM4EYaqElp4kSKr34Fr3oMovwaAbrF6uqa63Sa6ulKzKwpzFg+H+0MoUr7xU5W4dQarwGM4Jr7BkqpBigp4pRbzkN74eZpm==.gif" border=0 width=0 height=0 style="display:none">