How to write a video encoder with ffmpeg that explicitly controls the position of keyframes?
- 阅读更多 关于 How to write a video encoder with ffmpeg that explicitly controls the position of keyframes?
问题 I want to write an encoder with ffmpeg which can put iFrames (keyframes) at positions I want. Where can I found tutorials or reference material for it? P.S Is it possible to do this with mencoder or any opensource encoder. I want to encode H263 file. I am writing under & for linux. 回答1: You'll need to look at the libavcodec documentation - specifically, at avcodec_encode_video(). I found that the best available documentation is in the ffmpeg header files and the API sample source code that's