Page 1 of 1

Possible to seek outside keyframes?

Posted: 19 Nov 2015 17:29
by sampsa
Hello,

I have a h264 video stream in a Matroska container.

The container has cue information for each cluster. Cluster are organized in such a way, that there is only one I frame per cluster and the rest are P frames.

Now, is it possible to seek the video outside I frames..?

When seeking, I get this kind of things into the console:

[0x7f3e4cc2ead8] mkv demux debug: seek request to -1 (0.146000%)
[0x7f3e4cc2ead8] mkv demux debug: seek got 1600000 (3%)

.. so it did not seek where requested.

Is there any way to achieve between-I-frames-seeking? (input parameter for the player or some special structure in the matroska container)

Regards,

Sampsa

Re: Possible to seek outside keyframes?

Posted: 20 Nov 2015 15:51
by sampsa
I guess it was because I had forgotten the "DefaultDuration" ebml tag from the matroska file that defines the framerate.

Now it seems to seek far better ..