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

Michael Behrisch behrisch at informatik.hu-berlin.de
Thu Oct 30 12:19:21 CET 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Donnerstag, 30. Oktober 2003 12:09 schrieb Moritz Bunkus:
> 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.

But does that work as well with chained streams (not that the current 
code does, but that was what I planned to implement next)

Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/oPO5ZDyR4hR8HnQRAgFgAKCfdbhN7KeH4VYLOW3OXWBi6geeMgCgloqp
5kwSef/vhm7QPYuIWFEvANE=
=kVmZ
-----END PGP SIGNATURE-----



More information about the MPlayer-dev-eng mailing list