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

Patrick Lynch patlynch at hailmail.net
Fri Mar 5 15:02:37 CET 2004


On Fri, 5 Mar 2004 04:19 am, D Richard Felker III wrote:
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
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-users

Look, I was hoping it was a commonly encountered problem. A non-interleved avi 
file that mencoder only picks up 1/2 of its frames and all.

The audio is not low-qual, it is 44-16 PCM pure audio.

Any ideas? 
MPlayer  output is below

Thanks,
Patrick.

MPlayer 0.92-3.2.2  (C) 2000-2003 MPlayer Team
CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon 
(Family: 6, Stepping: 2)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/pat/.mplayer/config
Reading /home/pat/.mplayer/codecs.conf: can't open 
'/home/pat/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 50 audio & 136 video codecs
font: can't open file: /home/pat/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system 
startup scripts.
Using usleep() timing
Can't open input config file /home/pat/.mplayer/input.conf: No such file or 
directory
Input config file /usr/share/mplayer/input.conf parsed: 52 binds

Playing metallica0229-2349(TV9).avi
AVI file format detected.
Detected NON-INTERLEAVED AVI file format.
VIDEO:  [YUY2]  768x576  16bpp  25.00 fps  91499.9 kbps (11169.4 kbyte/s)
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 176400->176400 (1411.2 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
vo: X11 running at 800x600 with depth 24 and 32 bpp (":0.0" => local display)
Disabling DPMS
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 768 x 576 (preferred csp: Packed YUY2)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1

SwScaler: BICUBIC scaler, from Packed YUY2 to BGR 32-bit using MMX
VO: [x11] 768x576 => 768x576 BGR 32-bit
Selected video codec: [rawyuy2] vfm:raw (RAW YUY2)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
A:  59.6 V:  59.6 A-V:  0.001 ct:  0.000  1491/1491   0%  0%  0.0% 0 0 0%
Successfully enabled DPMS

Exiting... (End of file)




More information about the MPlayer-users mailing list