[MPlayer-users] bug report: mencoder fails to make playable .avi from \*.png

Dean S. Messing deanm at sharplabs.com
Fri Jan 31 18:23:26 CET 2003


Using the mencoder commandline:

  mencoder \*.png -mf on:w=325:h=407:type=png -ovc rawrgb -o output.avi

I generate an .avi from a sequence of 120 325x407 .png images.

When I then try to play it with mplayer, using the commandline:

  mplayer -vo xv -vc rawbgr24 output.avi loop 0

I get a black playback window and the output log shown below
which ends with an endless stream of 

    Frame too small! (396825<397232) Wrong format?
    Frame too small! (396825<397232) Wrong format?
    Frame too small! (396825<397232) Wrong format?

The .avi won't play on Windows Media Player either.

Note the correct size of a frame is 325*407*3 = 396825.

Note also that 397232 - 396825 = 407 so mplayer thinks that
the width of the image should be one greater (326) than it is.
I don't know if this is an mencoder or an mplayer bug, but
it sure looks like a bone fide bug to me.

On  the other hand, if I encode the \*.png without any dimensions given
then I _do_ get a playable .avi using both mplayer and Windows Media Player,
but the sequence is spatially truncated to CIF size (352x288) which
is not correct.  (The extra width comes out black.)

I will be happy to place the \*.png sequence on the mplayer site
so you can re-produce the bug (or not :-) if you will tell me where
to upload the sequence.

A previous message:

   http://mplayerhq.hu/pipermail/mplayer-users/2003-January/028589.html

contains the output of Mencoder for the above commandline.

And my system specs are following the mplayer output log below:

                                  Dean S. Messing
                                  Display Algorithms & Visual Optimization Lab
                                  Information Systems Technologies Dept.
                                  Sharp Laboratories of America


========  begin output log of mplayer ========

    Using GNU internationalization
    Original domain: messages
    Original dirname: /usr/share/locale
    Current domain: mplayer
    Current dirname: /usr/share/locale


    MPlayer CVS-030123-21:00-3.2.1 (C) 2000-2003 Arpad Gereoffy (see DOCS)

    CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
    Detected cache-line size is 64 bytes
    CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
    Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

    Reading config file /etc/mplayer/mplayer.conf
    Reading config file /home/deanm/.mplayer/config
    Reading /home/deanm/.mplayer/codecs.conf: 49 audio & 130 video codecs
    font: can't open file: /home/deanm/.mplayer/font/font.desc
    font: can't open file: /usr/share/mplayer/font/font.desc
    Using Linux hardware RTC timing (1024Hz).
    Input config file /home/deanm/.mplayer/input.conf parsed : 0 binds

    Playing test.avi
    Cache fill:  8.59% (720896 bytes)    AVI file format detected.
    AVI_NI: No audio stream found -> no sound.
    AVI: No audio stream found -> no sound.
    VIDEO:  []  325x407  24bpp  25.00 fps  79365.0 kbps (9688.1 kbyte/s)
    Clip info:
     Software: MEncoder CVS-030123-21:00-3.2.1 
    vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0" => local display)
    Disabling DPMS
    ==========================================================================
    Forced video codec: rawbgr24
    Opening video decoder: [raw] RAW Uncompressed Video
    VDec: vo config request - 325 x 407 (preferred csp: BGR 24-bit)
    VDec: using BGR 24-bit as output csp (no 0)
    Movie-Aspect is undefined - no prescaling applied.
    VO: [xv] 325x407 => 325x407 BGR 24-bit  [flip]
    Selected video codec: [rawbgr24] vfm:raw (RAW BGR24)
    ==========================================================================
    Audio: no sound
    Starting playback...
    Frame too small! (396825<397232) Wrong format?
    Frame too small! (396825<397232) Wrong format?
    Frame too small! (396825<397232) Wrong format?
    Frame too small! (396825<397232) Wrong format?
    Frame too small! (396825<397232) Wrong format?
    <snip>


========  end output log of mplayer ========

======== System Information ===========

  * Linux distribution:
        o Mdk 9.0
  * kernel version:
       Linux medulla 2.4.19-16mdksmp #1 SMP Wed Sep 24 12:26:01 EDT 2003
        i686 unknown unknown GNU/Linux
  * libc version:
       /lib/libc-2.2.5.so
  * X version:
       XFree86 Version 4.2.1
  * gcc and ld versions:
      gcc -v:
       Reading specs from /usr/lib/gcc-lib/athlon-mandrake-linux-gnu/3.2.1/specs
       Thread model: posix
       gcc version 3.2.1 (Mandrake Linux 9.0 3.2.1-3mdk)
     ld -v:
       GNU ld version 2.12.90.0.15 20020717
  * binutils version:
       GNU assembler 2.12.90.0.15 20020717
  * Window manager type and version
       KDE 3.0.5a
       xinerama enabled (via nvidia twinview)

Hardware & drivers:

  * CPU info (this works on Linux only):
         processor         : 0
             vendor_id     : AuthenticAMD
             cpu family    : 6
             model         : 6
             model name    : AMD Athlon(tm) MP 1500+
             stepping      : 2
             cpu MHz       : 1333.410
             cache size    : 256 KB
             fdiv_bug      : no
             hlt_bug       : no
             f00f_bug      : no
             coma_bug      : no
             fpu           : yes    
             fpu_exception : yes
             cpuid level   : 1
             wp            : yes
             flags         : fpu vme de tsc msr pae mce cx8 apic
                             sep mtrr pge mca cmov pat pse36 mmx
                             fxsr sse syscall mmxext 3dnowext 3dnow
             bogomips      : 2660.76

          processor        : 1
             same thing as processor 0.
  * Video card manufacturer and model, e.g.:
        VisionTek Xtasy (Chip: nvidia GeForce4 Ti 4600, 128 MB DDR ram) 
  * Video driver type & version:
        NVIDIA_kernel-1.0-3123
        NVIDIA_GLX-1.0-3123



More information about the MPlayer-users mailing list