GNOME Bugzilla – Bug 617368
[matroska] Implement push-mode seeking and non-cue seeking
Last modified: 2010-07-22 10:21:49 UTC
matroskademux should support seeking in push mode and if no cues are inside the file. Seeking without cues could be implemented by a binary search as in oggdemux and an automatically generated index during playback.
See: commit a6bb8338fdf3e04e1caba95637309e0b9ad08f51 Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Wed Apr 14 11:53:46 2010 +0200 matroskademux: implement push mode seeking
For v2 matroska files (that at least record keyframe info), presumably something similar to flvdemux or oggdemux could be done (if no cues).
Hm, actually I already started to implement this similar to oggdemux. I hope you didn't start too already, Mark? :)
Not yet.
Ok, do you want to do this then or shall I? I don't have that many changes yet
The following then takes care of seek without cue: commit c626e90fda0e2cbbbcc5bda8690327accb36c99d Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Thu Jul 22 12:05:26 2010 +0200 matroskademux: pull mode non-cue seeking That is, in files that have no index (Cue), perform seek by scanning for nearest cluster with timecode before requested position. Scanning is done as a combination of interpolation and sequential scan. Fixes #617368.