[MPlayer-users] Re: help w/ encoding an avi file from sequence of .png
Dean S. Messing
deanm at sharplabs.com
Wed Jan 29 03:06:27 CET 2003
A'rpi wrote:
:: try:
:: mencoder -mf on:type=png \*.png -ovc rawrgb
:: it works fine here.
::
:: and RTFM...
::
Thanks, A'rpi, for the help. Unfortunately several
messages have flown by on the mailing list since I first
wrote what you responded to. (See anything with .png in
the Subject:) I know about the \*.png error and explained
in a previous message why I made that (stupid) errror.
But there are deeper problems. I did try your suggestion
(i.e. without any width or height specification) and I get
a playable .avi file (both MPlayer and Windows Media
Player) but the play dimensions are wrong.
The dimensions are wrong in this line:
[V] filefmt:16 fourcc:0x474E504D size:352x288 fps:25.00 ftime:=0.0400
But they are correct in this line:
VDec: vo config request - 325 x 407 (preferred csp: BGR 24-bit)
in the mencoder output below.
============== begin: mencoder command line and output log ==========
=> mencoder -mf on:type=png \*.png -ovc rawrgb
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 - 0x0
forced mf.
[demuxer] mf support.
[mf] search expr: *.png
[mf] number of files: 120 (480)
[V] filefmt:16 fourcc:0x474E504D size:352x288 fps:25.00 ftime:=0.0400
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [mpng] PNG Images decoder
Selected video codec: [mpng] vfm:mpng (PNG images decoder)
==========================================================================
Writing AVI header...
VDec: vo config request - 325 x 407 (preferred csp: BGR 24-bit)
VDec: using BGR 24-bit as output csp (no 1)
Opening video filter: [flip]
Movie-Aspect is undefined - no prescaling applied.
Pos: 4.8s 120f ( 0%) 18fps Trem: 0min 0mb A-V:0.000 [85958:0]
Writing AVI index...
Fixing AVI header...
Video stream: 85958.398 kbit/s (10744800 bps) size: 51575040 bytes 4.800 secs 120 frames
============== end: mencoder output log ==========
Unfortunately, both MPlayer and Windows Media Player use
the 352x288 size and not the native size of each .png
which is 325x407
On the other hand, if I encode as follows:
=> mencoder -mf on:w=325:h=407:type=png \*.png -ovc rawrgb (as per the manual!!)
I get an unplayable .avi file. Windows Media Player
simply barfs. MPlayer output is below. I've tried to
RTFM but, honestly, I'm stumped. Maybe I'm must blind and
not seeing something written there.
Note that in the mplayer output the correct frame size is
396825 (= 407*325) So what's my problem?
============== begin: mencoder output log ==========
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 - 0x0
forced mf.
[demuxer] mf support.
[mf] search expr: *.png
[mf] number of files: 120 (480)
[V] filefmt:16 fourcc:0x474E504D size:325x407 fps:25.00 ftime:=0.0400
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [mpng] PNG Images decoder
Selected video codec: [mpng] vfm:mpng (PNG images decoder)
==========================================================================
Writing AVI header...
VDec: vo config request - 325 x 407 (preferred csp: BGR 24-bit)
VDec: using BGR 24-bit as output csp (no 1)
Opening video filter: [flip]
Movie-Aspect is undefined - no prescaling applied.
Pos: 4.8s 120f ( 0%) 24fps Trem: 0min 0mb A-V:0.000 [79365:0]
Writing AVI index...
Fixing AVI header...
Video stream: 79365.000 kbit/s (9920625 bps) size: 47619000 bytes 4.800 secs 120 frames
============== end: mencoder output log ==========
============== begin: mplayer command line and output log ==========
=> mplayer -vo xv -vc rawbgr24 test.avi
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?
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?
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?
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?
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?
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?
MPlayer interrupted by signal 2 in module: sleep_rtc
Successfully enabled DPMS
============== end: mplayer output log ==========
Dean S. Messing
Display Algorithms & Visual Optimization Lab
Information Systems Technologies Dept.
Sharp Laboratories of America
E-Mail: deanm at sharplabs.com
More information about the MPlayer-users
mailing list