<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,</div><div><br></div><div>Sorry, I should say more clearly my question.</div><div><br></div><div>In general, <span style="line-height: 1.7;">avcodec_encode_video2() is used to encode each video frame, and video encoder decide which type frame the current frame is coded as. video frame can be coded as I frame, P frame, or B frame decided by video encoder.</span></div><div><span style="line-height: 1.7;"><br></span></div><div><span style="line-height: 1.7;">But sometimes I want the current frame to be coded as one I frame instead of other type frame decided by video encoder. How to do it using ffmpeg functions?</span></div><div><br></div><div><span style="line-height: 1.7;">Thanks</span><span style="line-height: 1.7;">!</span></div><div><span style="line-height: 1.7;"><br></span></div><div><span style="line-height: 1.7;">B.R.</span></div><div><span style="line-height: 1.7;"><br></span></div><div><span style="line-height: 1.7;">Andrew</span></div><br><br><br><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br>At 2015-09-02 17:15:54, "Talgorn François-Xavier" <fxtalgorn-at-yahoo.fr@ffmpeg.org> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<div><br></div><div>You request seems odd to me since if you encode P or B frames as I frame you will get... P or B frame, hence partial image.</div><div>I've never done this, I can't tell you how to do this, sorry.</div><div><br></div><div>Good luck!<br><div><div><div>Le 2 sept. 2015 à 10:33, qw <<a href="mailto:applemax82@163.com">applemax82@163.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: Arial;"><div>Hi,</div><div><br></div><div>In general, avcodec_encode_video2() is used to encode each video frame. How to force encoder code current frame as I frame?</div><div><br></div><div>Thanks!</div><div><br></div><div>B.R.</div><div><br></div><div>andrew</div></div><br><br><span title="neteasefooter"> <br class="webkit-block-placeholder"></span>_______________________________________________<br>Libav-user mailing list<br><a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>http://ffmpeg.org/mailman/listinfo/libav-user<br></blockquote></div><br></div></div></blockquote></div><br><br><span title="neteasefooter"><p> </p></span>