[MPlayer-users] help w/ encoding an avi file from sequence of .png files

Dean S. Messing deanm at sharplabs.com
Sat Jan 25 08:55:29 CET 2003


I am running the current CVS of mplayer and have read (but not
completely understood) the mencoder docs.  In fact I found, in the
examples, a commandline to do what I want: convert a sequence of .png
files to a single .avi file


But it's not working.

Here is the commandline that is in the docs (with dimensions changed
to match my image files, fps changed from 25 to 15,  and '/*.png' changed to '*.png'):


  mencoder *.png -mf on:w=325:h=407:fps=15:type=png -ovc raw -o output.avi

This gave an error because "raw" is not one of the choices given by
`mencoder -ovc help'.  (The docs need to be corrected!)

Then I tried "rawrgb" in place of "raw" and I now get the following
output log:

  => mencoder *.png -mf on:w=325:h=407:fps=15:type=png -ovc rawrgb -o output.avi
  Using GNU internationalization
  Original domain: messages
  Original dirname: /usr/share/locale
  Current domain: mplayer
  Current dirname: /usr/share/locale


  MEncoder 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: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
  Reading /home/deanm/.mplayer/codecs.conf: 49 audio & 130 video codecs
  File not found: 'frameno.avi'
  Reading config file /home/deanm/.mplayer/mencoder: No such file or directory
  success: format: 0  data: 0x0 - 0x35A10
  Searching demuxer type for filename lady000.png ext: .png
  XMMS: found plugin: libidcin.so (Id Software .cin player 1.2.7)
  XMMS: found plugin: libtonegen.so (Tone Generator 1.2.7)
  XMMS: Closing plugin /usr/lib/xmms/Input/libtonegen.so
  XMMS: Closing plugin /usr/lib/xmms/Input/libidcin.so
  ============ Sorry, this file format is not recognized/supported =============
  === If this file is an AVI, ASF or MPEG stream, please contact the author! ===
  Cannot open demuxer.
  Exiting...

I then tried "copy" in place of "rawrgb" but got  similar output.

What am I doing wrong?

Note that the .png files were created from "raw rgb" files using
ImageMagick `convert'.  Here is how ImageMagick `identify' identifies
a file:

   =>identify lady000.png
   lady000.png PNG 325x407+0+0 DirectClass 8-bit 214.5k 0.030u 0:01

Note that the "8-bit" is 8-bits per colour plane.


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