[MPlayer-users] How to force a special color space converter during encoding
Daniel Lobo
dnlobo at gmail.com
Fri Apr 17 14:44:49 CEST 2009
Hi all,
I'm having a problem with the color space trying to encode a raw video into
mpeg4.
The following command (full output at the end of this email):
mencoder -vc rawbgr24flip input.avi -ovc lavc -lavcopts vcodec=mpeg4
-nosound -o output.avi
prints: [swscaler @ 0335C550]using unscaled bgr24 -> yuv420p special
converter
and the colors in output.avi are not the same as the original, I suppose
because the multiple conversions between color spaces.
The following command:
mplayer input.avi
prints: [swscaler @ 0357C9F0]using unscaled bgr24 -> rgb32 special converter
but:
mplayer output.avi
prints: [swscaler @ 00FFEDF4]using unscaled yuv420p -> rgb32 special
converter
So my question is if there is a command-line arg to force a bgr24 -> rgb32
special converter during the encoding process in order to avoid those
unnecessary conversions.
Any help appreciated.
Daniel
mencoder -vc rawbgr24flip input.avi -ovc lavc -lavcopts vcodec=mpeg4
-nosound -o output.avi
MEncoder Sherpya-SVN-r28126-4.2.5 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (Family: 6, Model: 15,
Step
ping: 11)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
success: format: 0 data: 0x0 - 0x647e000
AVI file format detected.
[aviheader] Video stream found, -vid 0
VIDEO: [] 746x588 24bpp 25.000 fps 263424.0 kbps (32156.2 kbyte/s)
[V] filefmt:3 fourcc:0x0 size:746x588 fps:25.000 ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Forced video codec: rawbgr24flip
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 746 x 588 (preferred colorspace: BGR 24-bit)
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 @ 0335C550]using unscaled bgr24 -> yuv420p special converter
videocodec: libavcodec (746x588 fourcc=34504d46 [FMP4])
Selected video codec: [rawbgr24flip] vfm: raw (RAW BGR24)
==========================================================================
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp h
eader.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp h
eader.
Pos: 3.2s 80f (98%) 0.00fps Trem: 0min 0mb A-V:0.000 [267:0]
Flushing video frames.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp h
eader.
Video stream: 267.173 kbit/s (33396 B/s) size: 106869 bytes 3.200 secs
80 f
rames
More information about the MPlayer-users
mailing list