[MEncoder-users] Colorspace Conversion

Tobias Brockamp tobiasbrockamp at gmx.de
Tue Sep 4 23:49:06 CEST 2007


Hi,

i'm trying to encode uncompressed avi to an xvid avi. the problem i have is
that the output is a little bit reddish.

i think the problem is that xvid needs yv12 input and and i have to  
convert from
rgb 24bit.

Here is the mencoder output:

MEncoder dev-SVN-rUNKNOWN-3.4.2 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU           T2500  @ 2.00GHz (Family: 6, Model:  
14, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Warning streams need a type !!!!
success: format: 0  data: 0x0 - 0x0
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  []  768x576  24bpp  25.000 fps  190869.9 kbps (23299.5 kbyte/s)
[V] filefmt:3  fourcc:0x0  size:768x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
xvid: using library version 1.2.-127 (build xvid-1.2.0-dev)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [pp=lb]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 768 x 576 (preferred colorspace: BGR 24-bit)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 768 x 576 (preferred colorspace: BGR 24-bit)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 768 x 576 (preferred colorspace: BGR 24-bit)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 768 x 576 (preferred colorspace: BGR 24-bit)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 768 x 576 (preferred colorspace: BGR 24-bit)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 768 x 576 (preferred colorspace: BGR 24-bit)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using BGR 24-bit as output csp (no 0)
Opening video filter: [flip]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 009955D0]SwScaler: using unscaled bgr24 -> yuv420p special  
converter
Opening video filter: [expand]
Expand: -1 x -1, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
videocodec: XviD (768x576 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=768x576, sampled=768x576
xvid: CBR Rate Control -- bitrate=1500kbit/s
Selected video codec: [rawbgr24flip] vfm: raw (RAW BGR24)
==========================================================================
MP3 audio selected.

Badly interleaved AVI file detected - switching to -ni mode...
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.052s.
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.052s.
Pos:   0.2s      7f ( 1%)  4.30fps Trem:   1min   3mb  A-V:0.000 [0:127]
Flushing video frames.
Writing index...
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.040s.

Video stream:  617.057 kbit/s  (77132 B/s)  size: 21597 bytes  0.280 secs   
7 frames

Audio stream:  127.999 kbit/s  (15999 B/s)  size: 28003 bytes  1.750 secs



Is there a way to convert first to yv12, possibly with a filter? Or does  
anybody have another
idea?

Kind regards,

Tobias Brockamp
-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/



More information about the MEncoder-users mailing list