[MPlayer-users] Mplayer wrong colors problem on PXA270

Eray Öztürk erayozturk1 at gmail.com
Mon Sep 14 08:37:51 CEST 2015


​H​
ello,

I have cross compiled mplayer for PXA270 board and with the configuration
below.

I have tried several video types, also with encoded videos with mencoder to
mpeg4 mpeg1 mpeg2 but I could not get a visualization with correct colors.

There are some green areas of pixels on the screen, I've tried with -vf
rgb2bgr, but I got error. Also -vf rgb2bgr=swap has no effect, the colors
are the same.
Also if I do not add -bpp 16 parameter, it shows really mixed picture.
I have another system on the same board, works with nano-x and nxplayer
shows video with correct colors on fbset -g 640 480 640 480 19 -n settings.
I've an strace log of nxplayer (attached)

​I've tried to add some info about my environment.​

​Please help me to resolve color problem.

*​Here is a sample picture of video with wrong colors :​*

http://i62.tinypic.com/iypyrb.jpg

*My fb settings:*

fbset -g 640 480 640 480 8 -n
also I've tried with fbset -g 640 480 640 480 19 -n

*My system:*

# uname -a
Linux pxaboard 2.4.29-vrs1-pxa-intc4-col3 #528 Thu Apr 10 12:01:32 EEST
2008 armv5tel unknown

*My configuration for cross compiling:*

# ./configure --prefix=$MYINSTALLDIR --enable-cross-compile --cc=$CC
--host-cc=gcc --as=${CCPREFIX}as --ar=${CCPREFIX}ar
--ranlib=${CCPREFIX}ranlib --target=arm-linux --disable-ivtv --disable-dvb
--disable-dvbhead --disable-live --disable-dvdread
--disable-libdvdcss-internal --disable-network --disable-dvdnav
--disable-ftp --disable-qtx

*My Mplayer video out drivers:*

# mplayer -vo help
MPlayer 1.0rc2-3.3.2 (C) 2000-2007 MPlayer Team
CPU: ARM
Available video output drivers:
        fbdev   Framebuffer Device
        fbdev2  Framebuffer Device
        null    Null video output
        mpegpes Mpeg-PES file
        yuv4mpeg        yuv4mpeg output for mjpegtools
        tga     Targa output
        pnm     PPM/PGM/PGMYUV file
        md5sum  md5sum of each frame

*My encoding command line with mencoder:*

# mencoder Fighter.mpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -vf
scale=640:480 -nosound -o processed.avi

*A successful video play with wrong colors:*

# mplayer /mnt/media/processed.avi -bpp 16
MPlayer 1.0rc2-3.3.2 (C) 2000-2007 MPlayer Team
CPU: ARM

Playing /mnt/media/processed.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
AVI: No audio stream found -> no sound.
VIDEO:  [FMP4]  640x480  24bpp  29.970 fps  836.9 kbps (102.2 kbyte/s)
Clip info:
 Software: MEncoder 1.1-4.8
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x6611f0]No accelerated colorspace conversion found
[swscaler @ 0x6611f0]SwScaler: using unscaled yuv420p -> bgr565 special
converter
VO: [fbdev] 640x480 => 640x480 BGR 16-bit
V:  14.5 437/437 204% 20%  0.0% 0
0


Exiting... (End of file)

*Another try with errors (video did not play):*

# mplayer -vo fbdev2:/dev/fb2 /mnt/media/processed.avi -bpp 16
MPlayer 1.0rc2-3.3.2 (C) 2000-2007 MPlayer Team
CPU: ARM

Playing /mnt/media/processed.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
AVI: No audio stream found -> no sound.
VIDEO:  [FMP4]  640x480  24bpp  29.970 fps  836.9 kbps (102.2 kbyte/s)
Clip info:
 Software: MEncoder 1.1-4.8
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
[fbdev2] Can't put VSCREENINFO: Invalid argument
[fbdev2] Can't put VSCREENINFO: Invalid argument
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.
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
[fbdev2] Can't put VSCREENINFO: Invalid argument
[fbdev2] Can't put VSCREENINFO: Invalid argument
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.

FATAL: Could not initialize video filters (-vf) or video output (-vo).

[fbdev2] Can't reset original fb_var_screeninfo: Invalid argument

Exiting... (End of file)


More information about the MPlayer-users mailing list