[Libav-user] how to create seekable mkv using libavformat?
Carl Eugen Hoyos
cehoyos at ag.or.at
Fri Sep 21 10:56:48 CEST 2012
Jan Pohanka <xhpohanka at ...> writes:
> if (enc_buf->flags & BUF_IFRAME)
> pkt.flags |= AV_PKT_FLAG_KEY;
>
> I was setting BUF_IFRAME flag sometimes also for P frames. After fixing it
> just to IDR frames everything is ok. I expect that AV_PKT_FLAG_KEY should
> be set only for IDR frames and not for I frames in h264, is that true?
If your stream contains non-I-frames that use reference frames
before the last I-frame and you set the flag as explained
above, you should see artefacts on decoding after seeking.
Carl Eugen
More information about the Libav-user
mailing list