[MPlayer-dev-eng] rgb2bgr bug

Julian J. M. bandit at telecable.es
Sat May 4 00:47:13 CEST 2002


Hi,

	rgb2bgr video plugin is broken in current cvs (some minutes ago). It
worked fine a week ago, I don't know which release broke it. The problem
is that I only see about 1/3 of the image.

	If seen that libmpcodecs/vf_rgb2bgr.c last update was 13 April, so the
problem may be elsewhere.

	To see the problem just do:

	mplayer file.avi -vop scale,rgb2bgr

	scale filter just for color space conversion.

	Here is my mplayer output log:


MPlayer CVS-020504-00:25-3.0.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: Advanced Micro Devices Athlon TB Thunderbird (Type: 6, Stepping: 2)
extended cpuid-level: 6
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with features: MMX MMX2 3DNow 3DNowEx
Reading /home/bandit/.mplayer/codecs.conf: 34 audio & 86 video codecs
CommandLine: 'Yamakasi.avi' '-vop' 'scale,rgb2bgr' '-v'
get_path('font/font.desc') -> '/home/bandit/.mplayer/font/font.desc'
font: can't open file: /home/bandit/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206
chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_pie_on): Permission denied
Using usleep() timing
get_path('input.conf') -> '/home/bandit/.mplayer/input.conf'
Parsing input config file /home/bandit/.mplayer/input.conf
Input config file /home/bandit/.mplayer/input.conf parsed : 50 binds
Playing Yamakasi.avi
Not an URL!
File size is 733073326 bytes
Detected AVI file format!
list_end=0x146
======= AVI Header =======
us/frame: 40000  (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 130207   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  640 x 272
list_end=0xD4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 250000/10000 = 25.000
Start: 0   Len: 130207
Suggested BufferSize: 44518
Quality 0
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 272
  biPlanes 1
  biBitCount 24
  biCompression 1482049860='DIVX'
  biSizeImage 522240
===========================
Regenerating keyframe table for DIVX 4 video
list_end=0x146
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 48000/1152 = 41.667
Start: 0   Len: 217031
Suggested BufferSize: 960
Quality 0
Sample size: 0
found 'wf', 30 bytes of 20
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 12882
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1152
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
Broken chunk?  chunksize=1714  (id=JUNK)
list_end=0x2B5D0946
Found movie at 0x80C - 0x2B5D0946
Reading INDEX block, 347238 chunks for 130207 frames
Broken chunk?  chunksize=0  (id=idx1)
Reading INDEX block, 347238 chunks for 130207 frames
AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0xFC)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=724520523
VIDEO:  [DIVX]  640x272  24bpp  25.00 fps  1112.9 kbps (135.8 kbyte/s)
[V] filefmt:3  fourcc:0x58564944  size:640x272  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/bandit/.mplayer/sub/'
Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
Initializing audio codec...
Selecting Audio Decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
init layer2&3 finished, tables done
mp3lib: using 3DNow!Ex optimized decore!
MPEG 1.0, Layer III, 48000 Hz 80 kbit Joint-Stereo, BPF: 240
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 10000->192000
X11 opening display: :1
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bits/pixel (":1" =>
local display)
Opening video filter 'scale' with args '(null)'...
SwScale: -1 x -1
Opening video filter 'rgb2bgr' with args '(null)'...
==========================================================================
Opening Video Decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec: CPU flags: mmx mmxext 3dnow
INFO: libavcodec init OK!
Detected video codec: [ffodivx] drv:5 prio:0 (FFmpeg MPEG-4)
==========================================================================
vo_xv: get: XV_DOUBLE_BUFFER = 1
vo_xv: assume: XV_DOUBLE_BUFFER = 2000
vo_xv: get: XV_COLORKEY = 66046
vo_xv: assume: XV_COLORKEY = 31
vo_xv: get: XV_AUTOPAINT_COLORKEY = 1
vo_xv: assume: XV_AUTOPAINT_COLORKEY = 2000
vo_xv: get: XV_BRIGHTNESS = 0
vo_xv: assume: XV_BRIGHTNESS = 0
vo_xv: get: XV_CONTRAST = 4096
vo_xv: assume: XV_CONTRAST = 0
vo_xv: get: XV_SATURATION = 4096
vo_xv: assume: XV_SATURATION = 0
vo_xv: get: XV_HUE = 0
vo_xv: assume: XV_HUE = -1000
AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested:
Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
Start playing...
XXX initial  v_pts=0.000  a_pos=6432 (0.499) 
VDec: vo config request - 640 x 272, Planar YV12    0%  0%  0.0% 0 0 0%
[PP] Sorry, postprocessing is not available
[rgb2bgr] query(Planar YV12) -> 0
[rgb2bgr] query(Planar I420) -> 0
[rgb2bgr] query(Planar IYUV) -> 0
SwScale: -1 x -1
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 32-bit) -> 1
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 32-bit) -> 1
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
vo_debug: query(Planar YV12) returned 0xC75 (i=0) 
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 32-bit) -> 1
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
vo_debug: query(Planar I420) returned 0xC75 (i=1) 
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 32-bit) -> 1
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
vo_debug: query(Planar IYUV) returned 0xC75 (i=2) 
Movie-Aspect is undefined - no prescaling applied.
video_out->init(640x272->640x272,flags=0,'MPlayer',0x32315659)
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 32-bit) -> 1
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
REQ: flags=0x475  req=0x0  
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 32-bit) -> 1
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
SwScale scaling 640x272 Planar YV12 to 640x272 BGR 32-bit  
Using MMX2 for colorspace transform
SwScaler: using unscaled Planar YV12 -> BGR 32-bit special converter
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
REQ: flags=0x475  req=0x0  
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
REQ: flags=0x475  req=0x0  
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 1
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 3
SwScale scaling 640x272 RGB 32-bit to 640x272 Planar YV12  
REQ: flags=0x437  req=0x0  
VO: [xv] 640x272 => 640x272 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de>
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 42 for hw scaling
vo_xv: reset gamma correction
[xv] dx: 0 dy: 0 dw: 640 dh: 272
*** [pp] Exporting mp_image_t, 640x272x12bpp YUV planar, 261120 bytes
*** [scale] Allocating mp_image_t, 640x272x32bpp RGB packed, 696320
bytes
*** [vo] Allocating mp_image_t, 640x272x12bpp YUV planar, 261120 bytes
[xv] dx: 6 dy: 19 dw: 640 dh: 272
*** [scale] Allocating mp_image_t, 640x272x12bpp YUV planar, 261120
bytes
using npp filters 0x7/0x7
*** [rgb2bgr] Allocating mp_image_t, 640x272x32bpp RGB packed, 696320
bytes
[xv] dx: 6 dy: 19 dw: 640 dh: 272
A:   1.7 V:   1.3 A-V:  0.380 ct:  0.128   33/ 33  31% 89%  6.2% 28 0 0%
*** free_stream() called ***

Exiting... (Quit)



	Greetings,
		Julián






More information about the MPlayer-dev-eng mailing list