[MEncoder-users] white PNGs images becomes grey video
Jaime Gimeno
xaumexemuax at yahoo.es
Wed Nov 15 10:35:42 CET 2006
Hello,
I am using mencoder in order to make a video from a set of PNG files.
The command I use is like this:
mencoder -ovc lavc -lavcopts vcodec=msmpeg4v2 mf://*.png -o video.avi
The problem is that although the images have white background color, the
background in the video becomes gray. And it happens in all the players
that I have tried (mplayer, MPC, WMP,...)
Also, I have tried different codecs (mpeg4, mpng, wmv2,...) but the
problem always appears.
Strange things:
- If I extract the frames into images (using "mplayer -vo png"). The
white comes back to white.
- If I make the video from jpeg images, there is no problem with the
white background color in the video.
Why happens this problem?
Thank you
I have attach some outputs:
- mencoder, mplayer and identify (ImageMagick)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
MEncoder 1.0pre8-3.4.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model:
4, Stepping: 10)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
success: format: 16 data: 0x0 - 0x0
[mf] search expr: *.png
[mf] number of files: 5 (20)
[demux_mf] file type was not set! trying 'type=png'...
VIDEO: [MPNG] 0x0 24bpp 2.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16 fourcc:0x474E504D size:0x0 fps: 2.00 ftime:=0.5000
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffpng] vfm: ffmpeg (FFmpeg PNG decoder)
==========================================================================
VDec: vo config request - 352 x 240 (preferred colorspace: BGRA)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using BGRA as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: BICUBIC scaler, from BGRA to Planar YV12 using MMX2
videocodec: libavcodec (352x240 fourcc=3234504d [MP42])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not
writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not
writing vprp header.
Pos: 0.5s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 1.0s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 1.5s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [22:0]
Pos: 2.0s 4f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [17:0]
Pos: 2.5s 5f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [13:0]
Flushing video frames
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not
writing vprp header.
Video stream: 13.920 kbit/s (1740 B/s) size: 4350 bytes 2.500 secs
5 frames
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
MPlayer 1.0pre8-3.4.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model:
4, Stepping: 10)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
c:/windows/fonts/arial.ttf doesn't look like a font description, ignoring.
Cannot load font: c:/windows/fonts/arial.ttf
getch2: 6 can't get number of input events [disabling console input]
Playing kk.mpg.
AVI file format detected.
ID_VIDEO_ID=0
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO: [MP42] 352x240 24bpp 2.000 fps 13.9 kbps ( 1.7 kbyte/s)
Clip info:
Software: MEncoder 1.0pre8-3.4.2
ID_CLIP_INFO_NAME0=Software
ID_CLIP_INFO_VALUE0=MEncoder 1.0pre8-3.4.2
ID_CLIP_INFO_N=1
ID_FILENAME=kk.mpg
ID_DEMUXER=avi
ID_VIDEO_FORMAT=MP42
ID_VIDEO_BITRATE=13920
ID_VIDEO_WIDTH=352
ID_VIDEO_HEIGHT=240
ID_VIDEO_FPS=2.000
ID_VIDEO_ASPECT=0.0000
ID_LENGTH=2.50
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmp42] vfm: ffmpeg (FFmpeg M$ MPEG-4 v2)
==========================================================================
ID_VIDEO_CODEC=ffmp42
Audio: no sound
Starting playback...
VDec: vo config request - 352 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [directx] 352x240 => 352x240 Planar YV12
Exiting... (End of file)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>identify -verbose im000001.png
Image: im000001.png
Format: PNG (Portable Network Graphics)
Class: PseudoClass
Geometry: 352x240
Type: PaletteMatte
Endianess: Undefined
Colorspace: RGB
Channel depth:
Red: 1-bit
Green: 1-bit
Blue: 1-bit
Alpha: 1-bit
Channel statistics:
Red:
Min: 0 (0)
Max: 1 (1)
Mean: 0.953835 (0.953835)
Standard deviation: 0.209842 (0.209842)
Green:
Min: 0 (0)
Max: 1 (1)
Mean: 0.900994 (0.900994)
Standard deviation: 0.29867 (0.29867)
Blue:
Min: 0 (0)
Max: 1 (1)
Mean: 0.94375 (0.94375)
Standard deviation: 0.230404 (0.230404)
Alpha:
Min: 1 (1)
Max: 1 (1)
Mean: 1 (1)
Standard deviation: 0 (0)
Colors: 4
Histogram:
288: #000000 black
3612: #0000FF blue
4464: #FF0000 red
76116: #FFFFFF white
Colormap: 4
0: #000000 black
1: #FF0000 red
2: #0000FF blue
3: #FFFFFF white
Rendering intent: Undefined
Resolution: 28.35x28.35
Units: PixelsPerCentimeter
Filesize: 834b
Interlace: None
Background color: rgb(1,1,1)
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: none
Page geometry: 352x240+0+0
Dispose: Undefined
Iterations: 0
Compression: Zip
Orientation: Undefined
Signature:
40d4f377bc1dbe90103b1dd7270406ed88c5d9d89ef1e1940ba41ead45862936
Tainted: True
Version: ImageMagick 6.3.0 11/10/06 Q16 http://www.imagemagick.org
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
More information about the MEncoder-users
mailing list