Hi, In general, avcodec_encode_video2() is used to encode each video frame. How to force encoder code current frame as I frame? Thanks! B.R. andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150902/546fde96/attachment.html>