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" 
<[email protected]> 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 <[email protected]> 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
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user


_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to