Re: [Libav-user] how to create seekable mkv using libavformat?

2012-09-21 Thread Carl Eugen Hoyos
Jan Pohanka 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 fr

Re: [Libav-user] how to create seekable mkv using libavformat?

2012-09-21 Thread Jan Pohanka
Hi, Could you provide a file that does not allow keyframe-seeking? I am curious if the decoding can be fixed. I have checked it once more and found the mistake. My fault. if (enc_buf->flags & BUF_IFRAME) pkt.flags |= AV_PKT_FLAG_KEY; I was setting BUF_IFRAME flag sometimes also for P fra

Re: [Libav-user] how to create seekable mkv using libavformat?

2012-09-21 Thread Carl Eugen Hoyos
Jan Pohanka writes: > I'm muxing a raw h264 stream from hadrdware encoder to mkv using > libavformat library. The resulting file is playable, but not properly > seekable I'm testing it in ffplay - moving to certains times causes the > image to disappear or break and there are these warnings

[Libav-user] how to create seekable mkv using libavformat?

2012-09-21 Thread Jan Pohanka
Hello, I'm muxing a raw h264 stream from hadrdware encoder to mkv using libavformat library. The resulting file is playable, but not properly seekable I'm testing it in ffplay - moving to certains times causes the image to disappear or break and there are these warnings: [h264 @ 0x7f329800