>> OK. Suppose I use libx264 encoder. How to tell >avcodec_encode_video that >> it has to make this frame I-frame (key-frame)? >> I tried few ideas from which none seemed to make the job done. >> > > AFAIK there is a special flag for packet.flags memeber, which sets this > frame as a key-frame. > > Check the output_example.c and ffmpeg.c for more info. > > Sure is. The problem is I don't use AVPacket struct because I take encoded bitstream directly from avcodec_encode_video(). Too bad that ffmpeg API doesn't tell encoder to make current frame I-frame.
Any way. Thanks for a tip. Regards. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
