[MPlayer-dev-eng] Nut startcodes

Michael Niedermayer michaelni at gmx.at
Thu Apr 29 20:58:22 CEST 2004


Hi

On Thursday 29 April 2004 19:28, Ville Saari wrote:
> On Thu, Apr 29, 2004 at 02:40:20AM +0200, Michael Niedermayer wrote:
> > ok, heres the explanation on how this is possible, its not easy unless we
> > restrict ourselfs to seeking to frames with an immediatly preceeding
> > startcode, in which case it would be easy ...
>
> That requires an assumption that there is only one stream or that all
> the streams have their keyframe positions synchronized. In more general
> case only one of the streams might have a keyframe immediately after the
> startcode and all the other streams have to be decoded starting from
> their last keyframes. That keyframe has to be located somehow.
yes, there are several ways
ignore it, (seek to video frame, start decoding from there, u loose maybe 50ms 
audio with current codecs, its good enough for a simple player IMHO)

or do a seek for every stream, note, this is fast as the player should 
remember the already found information

both are O(log n)

[...]
-- 
Michael
level[i]= get_vlc(); i+=get_vlc();		(violates patent EP0266049)
median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]);	(violates patent #5,905,535)
buf[i]= qp - buf[i-1];				(violates patent #?)
for more examples, see http://mplayerhq.hu/~michael/patent.html
stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en




More information about the MPlayer-dev-eng mailing list