[MPlayer-users] Encoding black and white movie

FDV smeagol321 at telenet.be
Wed Mar 23 07:23:13 CET 2005


Hi,

Thanks for taking the time to read my question... I'm using MPlayer and libavcodec/mpeg4 to encode a black and white movie, but having problems with the colors. At the beginning of every keyframe the colors are ok (all grey), but immediatly when there is movement the colors get a green tint getting worse until the next keyframe, then this repeats. I can try to ignore it but it's pretty noticable. The source (mpeg/pes format) doesn't have this problem, so it must be something lavc does.

What I tried:

- higher bitrate
- disabling every -vf filter
- lavc option gray
- lavc options grayscale and nochroma_opt are not recognised by my build

Any help is greatly apreciated since I'm out of ideas.

Cheers,

Fred

PS

The mencoder output:

MEncoder 1.0pre6-3.4.3-20050110 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Athlon Thunderbird (Family: 6, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

77 audio & 189 video codecs
AVI file format detected.
VIDEO:  [FrNo]  720x576  24bpp  25.000 fps    0.8 kbps ( 0.1 kbyte/s)
Using pass3 control file: frameno.avi
success: format: 0  data: 0x0 - 0xeecdd95e
AVI file format detected.
AVI: ODML: Building odml index (2 superindexchunks)
AVI_NI: No audio stream found -> no sound.
VIDEO:  []  720x576  24bpp  25.000 fps  5610.0 kbps (684.8 kbyte/s)
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  8500.0 kbps (1062.5 kbyte/s)
[V] filefmt:3  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [hqdn3d=2:1:2]
Opening video filter: [crop w=704 h=560 x=8 y=8]
Crop: 704 x 560, 8 ; 8
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=44100 bits=0 bps=8770 sample-0)
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (704x560 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
ODML: vprp aspect is 16384:9165. Trem:   0min   0mb  A-V:0.000 [0:0]
Pos:   0.9s     24f ( 0%)  17fps Trem:   0min   0mb  A-V:0.000 [0:58]
Skipping frame!
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)[1961:72]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (704x560 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Could not open codec.
FATAL: Cannot initialize video driver.
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)[1962:72]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (704x560 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Could not open codec.

FATAL: Cannot initialize video driver.

[... then encoding...]




More information about the MPlayer-users mailing list