[MPlayer-users] Re: problem with a/v sync.

Sven Hartge hartge at ds9.argh.org
Thu Jan 17 17:45:02 CET 2002


Tilman Klar <fisi.tilman.klar at gmx.de> wrote:

> n1c3.

31337 d00d ...

> it works 100%, thx mate. what is this -ni switch, anyways?
> man mplayer says:
>       -ni    force usage of non-interleaved AVI parser
> what does it mean? it doesnt sound like "repair a/v sync"..
> enlighten me, plz.

Normally, Video and Audio are saved interleaved, meaning:

VAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVAVA

So the parser can just stream along the bytes and get the video and
audio frames to the specific decoders.

Within an noninterleaved file, the data is like this:

VVVVVVVVVVVVVVVVVVAAAAAAAAAAAAAAAAAAAA

Now, the parses has to seek through the file to hop to the audio frame
and the video frame and then to the audio frame and so on.

It is easily guessable, that this file is not streamable (using a
network, for example). And it is a pain in the a** to play such files
from slow media, like CD-ROM or DVD. Using an apropriate -cache value
can ease this problem though.

Now, some files seem to have incorrect header flags, saying, they are
interleaved, while in fact being non-interleaved. The -ni switch forces
mplayer to ignore the files information about itself and use the
non-interleaved parser.

(I hope this was not totally wrong.)

S°

-- 
Letzte Worte eines Türstehers: Nur über meine Leiche...




More information about the MPlayer-users mailing list