[MPlayer-users] [BUG] in -vop format=rgb32 (and SDL?)
Filip Kalinski
filon at pld.org.pl
Thu Jan 9 01:06:52 CET 2003
Hi,
When run:
mplayer <any YUV2 or YV12 movie> -vop format=rgb32 -vo sdl -fs
1. I get wrong colors, red is swapped with blue (with both -forcexv, and
-noxv)
2. The movie is fullscreen, but not scaled (in original size).
Without -vop format=rgb32 sdl is working.
/* Version */
MPlayer current, SDL 1.2.5.
/* Output */
$ mplayer /home/filon/movies/Megaus.mpg -vop format=rgb32 -vo sdl -fs -v
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
MPlayer CVS-030101-14:46-3.2 (C) 2000-2002 Arpad Gereoffy (see DOCS)
CPU: Advanced Micro Devices Duron SF Spitfire (Family: 6, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/filon/.mplayer/config
Reading /home/filon/.mplayer/codecs.conf: can't open '/home/filon/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 126 video codecs
CommandLine:Cannot load font: /home/filon/.mplayer/subfont.ttf
'/home/filon/movies/Megaus.mpg' '-vop' 'format=rgb32' '-vo' 'sdl' '-fs' '-v'
/home/filon/.mplayer/subfont.ttf doesn't look like a font description, ignoring
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/filon/.mplayer/input.conf'
Parsing input config file /home/filon/.mplayer/input.conf
Input config file /home/filon/.mplayer/input.conf parsed : 52 binds
get_path('menu.conf') -> '/home/filon/.mplayer/menu.conf'
Can't open menu config file: /home/filon/.mplayer/menu.conf
Menu inited: /usr/local/etc/mplayer/menu.conf
get_path('Megaus.mpg.conf') -> '/home/filon/.mplayer/Megaus.mpg.conf'
Playing /home/filon/movies/Megaus.mpg
Not an URL!
File size is 43565060 bytes
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x8475790
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x8475790
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x8475790
Checking for MOV
DEMUXER: freeing demuxer at 0x8475790
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x8475790
Checking for REAL
DEMUXER: freeing demuxer at 0x8475790
DEMUXER: freeing demuxer at 0x8475790
DEMUXER: freeing demuxer at 0x8475790
DEMUXER: freeing demuxer at 0x8475790
DEMUXER: freeing demuxer at 0x8475790
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x8475790
DEMUXER: freeing demuxer at 0x8475ff8
Checking for PVA
DEMUXER: freeing demuxer at 0x8475ff8
system stream synced at 0xB (0)!
==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 0
Searching for sequence header... OK!
VIDEO: MPEG1 352x288 (aspect 8) 25.00 fps 1687.5 kbps (210.9 kbyte/s)
[V] filefmt:2 fourcc:0x10000001 size:352x288 fps:25.00 ftime:=0.0400
get_path('sub/') -> '/home/filon/.mplayer/sub/'
==========================================================================
Opening 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
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 48000 Hz 128 kbit Stereo, BPF: 384
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [format=rgb32]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 288 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
scale: query(BGR 32-bit) -> 0
scale: query(RGB 32-bit) -> 1
scale: query(BGR 24-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(BGR 8-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 1-bit) -> 0
scale: query(Planar 444P) -> 0
scale: query(Planar 422P) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
scale: query(Planar 411P) -> 0
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Packed YUY2) -> 0
scale: query(BGR 32-bit) -> 0
scale: query(RGB 32-bit) -> 1
scale: query(BGR 24-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(BGR 8-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 1-bit) -> 0
scale: query(Planar 444P) -> 0
scale: query(Planar 422P) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
scale: query(Planar 411P) -> 0
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Packed YUY2) -> 0
scale: query(BGR 32-bit) -> 0
scale: query(RGB 32-bit) -> 1
scale: query(BGR 24-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(BGR 8-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 1-bit) -> 0
scale: query(Planar 444P) -> 0
scale: query(Planar 422P) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
scale: query(Planar 411P) -> 0
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Packed YUY2) -> 0
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (352x288->384x288,flags=1,'MPlayer',0x32315659)
scale: query(BGR 32-bit) -> 0
scale: query(RGB 32-bit) -> 1
scale: query(BGR 24-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(BGR 8-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 1-bit) -> 0
scale: query(Planar 444P) -> 0
scale: query(Planar 422P) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
scale: query(Planar 411P) -> 0
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Packed YUY2) -> 0
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: BICUBIC scaler, from Planar YV12 to RGB 32-bit using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (BGR)
SwScaler: 352x288 -> 352x288
REQ: flags=0x485 req=0x0
REQ: flags=0x85 req=0x0
REQ: flags=0x85 req=0x0
VO: [sdl] 352x288 => 384x288 RGB 32-bit [fs]
VO: Description: SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
VO: Author: Ryan C. Gordon <icculus at lokigames.com>, Felix Buenemann <atmosfear at users.sourceforge.net>
SDL: Using 0x52474220 (RGB 32-bit) image format
SDL: deactivating XScreensaver/DPMS
SDL: X11 Resolution 1152x864
SDL: Using driver: x11
SDL: using hardware-surface
SDL: setting zoomed fullscreen without modeswitching
SDL: Info - please use -vm or -zoom to switch to best resolution.
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: compiled for ALSA-0.9.0rc6
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: hw:0,0
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 1024
alsa-init: current val=32, fragcount=16
alsa-init: got buffersize=65536
alsa9: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa9] 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: Description: ALSA-0.9.x audio output
AO: Author: Alex Beregszaszi <alex at naxine.org>, Joy Winter <joy at pingfm.org>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
Start playing...
alsa-space: free space = 65536, status=139275856, prepared --
*** [scale] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
*** [scale] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
*** [vo] Direct Rendering mp_image_t, 352x288x32bpp RGB packed, 405504 bytes
*** [menu] Direct Rendering mp_image_t, 352x288x32bpp RGB packed, 405504 bytes
*** [vo] Exporting mp_image_t, 352x288x32bpp RGB packed, 405504 bytes
*** [scale] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
[timings cut off]
Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
uninit video: libmpeg2
DEMUXER: freeing demuxer at 0x8475ff8
DEMUXER: freeing sh_audio at 0x847a038
DEMUXER: freeing sh_video at 0x8474950
SDL: activating XScreensaver/DPMS
alsa-uninit: pcm closed
vo: x11 uninit called but X11 not inited..
Exiting... (Quit)
--
Filip Kalinski <filon at pld.org.pl>
More information about the MPlayer-users
mailing list