[MPlayer-users] RGB image sequence -> AVI problems

sebaaihb at mailbox.tu-berlin.de sebaaihb at mailbox.tu-berlin.de
Wed Jan 29 10:49:58 CET 2003


Hi all,

I am trying to convert a sequence of 500x500 RGB  images to an AVI, but the 
resulting AVI is only black&white when I use a codec other than -ovc wrgb
I tried both jpeg and png with the following commands:

 mencoder \*.jpeg -mf on:w=500:h=500:fps=15:type=jpeg -ovc wrgb -o output.avi
-> that looks fine, but the movie file is huge

mencoder \*.jpeg -mf on:w=500:h=500:fps=15:type=jpeg -ovc lavc -lavcopts 
vcodec=mjpeg -o output.avi
-> back quality black&white only, but really small file 

What am I doing wrong? Is there a way to tell mencoder to encode the images to 
a color movie?
I pasted the output of mencoder when encoding with -ovc lavc at the end  of 
the mail.

Thanks for all tips,

Sebastian

--- mencoder output follows ---
:/tmp/mpg> mencoder \*.png -mf on:w=500:h=500:fps=15:type=png -ovc lavc 
-lavcopts vcodec=mjpeg -o output.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
MEncoder 0.90rc3-2.95.3 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 
10)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/s/.mplayer/codecs.conf: can't open 
'/home/s/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 130 video codecs
File not found: 'frameno.avi'
Reading config file /home/s/.mplayer/mencoder: No such file or directory
font: can't open file: /home/s/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x0
forced mf.
[demuxer] mf support.
[mf] search expr: *.png
[mf] number of files: 43 (172)
[V] filefmt:16  fourcc:0x474E504D  size:500x500  fps:15.00  ftime:=0.0667
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 - 500 x 500 (preferred csp: BGR 24-bit)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
VDec: using BGR 32-bit 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 9 -> 8

SwScaler: BICUBIC scaler, from BGR 32-bit to Planar YV12 using MMX2
videocodec: libavcodec (500x500 fourcc=47504a4d [MJPG])
Pos:   2.9s     43f ( 0%)  13fps Trem:   0min   0mb  A-V:0.000 [1953:0]
Writing AVI index...
Fixing AVI header...

Video stream: 1953.572 kbit/s  (244196 bps)  size: 700030 bytes  2.867 secs  
43 frames





More information about the MPlayer-users mailing list