[MPlayer-dev-eng] patch for demux_ogg_control() ??

Moritz Bunkus moritz at bunkus.org
Mon Dec 2 22:51:33 CET 2002


Hi.

> ok, guess it's not that difficult.
> let you know when I got it working:-)

Getting the length would require

a) identifying the streams contained in an OGM,
b) chosing which video stream to take (the first one? there may be more
than one),
c) seeking close to the end,
d) finding the last OGG page/OGG packet for this stream.

With this last packet's granulepos you also get the frame count, and
by dividing this by the FPS (which you get from the stream's header
packet) you'll get the length.

-- 
 ==> Ciao, Mosu (Moritz Bunkus)



More information about the MPlayer-dev-eng mailing list