[Libav-user] force I frame in video coding

qw applemax82 at 163.com
Wed Sep 2 12:34:34 CEST 2015


Hi,


Sorry, I should say more clearly my question.


In general, 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.


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?


Thanks!


B.R.


Andrew






At 2015-09-02 17:15:54, "Talgorn François-Xavier" <fxtalgorn-at-yahoo.fr at ffmpeg.org> wrote:
Hi,


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.
I've never done this, I can't tell you how to do this, sorry.


Good luck!

Le 2 sept. 2015 à 10:33, qw <applemax82 at 163.com> a écrit :


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


 
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150902/4584232c/attachment.html>


More information about the Libav-user mailing list