[MPlayer-dev-eng] Patch concerning get_total_time in ogg-files

Moritz Bunkus moritz at bunkus.org
Thu Oct 30 12:09:12 CET 2003


Hi.

> Doesn't work too well for ogm files, the total time is correct and
> seeking is more accurate than before, but it makes mplayer take over a
> minute to start playing a 200mb ogm video.

Refused in the current form, due to the forceful scanning of the
file. This takes much too long, and even longer on slow media like
CD-ROMs. OGM does not contain a header field for the length nor an
index. So if you want to have the biggest granulepos then write some
code that seeks close to the find, syncs to the next Ogg page, find the
last Ogg page, get the granulepos and serial number and calculate the
max timecode like that.

-- 
 ==> Ciao, Mosu (Moritz Bunkus)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031030/2172830e/attachment.pgp>


More information about the MPlayer-dev-eng mailing list