[MPlayer-users] Frame count problem encoding non-interleaved AVI

D Richard Felker III dalias at aerifal.cx
Thu Mar 4 18:19:52 CET 2004


On Fri, Mar 05, 2004 at 01:24:59AM +1100, Patrick Lynch wrote:
> Hi
> 
> I have a raw AVI file sourced from a TV card on a windows box.
> It is PAL, 768x576. I want to encode it to DIvX or something, so this windows 
> user bloke can consider getting linux on his encoding slave PC
> 
> The file is 662MB, and it contains like 1500 frames. It runs at 25fps. So the 
> time of it is like 60secs.
> I had to find out frame count info using the avifile package, as mplayer 
> doesnt give this info. ( That is until the movie is played)
> 
> Problem is:
> When I play it with mplayer, indeed it plays 1500 frames.
> But when using mencoder, I only get 765 frames, however I still get the whole 
> clip. Only it runs 2 times faster.
> 
> Please help, I have tried -nobps, -ni and stuff no avail.
> Only thing I can do is to set -fpi to 12.5 :/ when encoding, at least that way 
> the clip is the full 60secs length, and the audio is in sync

We cannot help without (1) full mencoder output, and (2) possibly also
a sample of the file. I expect the file generated by this recording
program is somewhat broken, but there are also possibly some bugs in
how mencoder handles low-quality audio which the file may have used.
In any case more info is needed.

Rich




More information about the MPlayer-users mailing list