This seams to me a never ending story - I tried to make a quiet VDR
based on Epia, with maximum acceleration, the chipset (cle266) can do,
but it is not working.
The base is a Debian etch (standard - most components are installed by
apt-get) with the latest drivers offered at viaarena.
I followed the HowTo (vdr-portal thread Postid 562388), but this is
dealing with older versions of the components - I do not get the same
results.

This are the versions, I'd like to use:

Kernel 2.6.18-4-686
latest FB-Modul from viaarena (Linux-FBDev-kernel-src_2.6.00.03a) with
accel.h-Patch
VDR 1.4.7
libcle266mpegdec-0.5
DirectFB-1.0.0
DFB++-1.0.0
ffmpeg is not self-compiled. It comes out of the etch-distri :

|FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-gpl --enable-pp --enable-pthreads
--enable-vorbis --enable-libogg --enable-a52 --enable-dts
--enable-libgsm --enable-dc1394 --disable-debug --enable-shared
--prefix=/usr
  libavutil version: 0d.49.0.0
  libavcodec version: 0d.51.11.0
  libavformat version: 0d.50.5.0
  built on Mar 26 2007 15:50:40, gcc: 4.1.2 20061115 (prerelease)
(Debian 4.1.1-21)
|
DirectFB is compiled using configure --prefix=/usr
--with-gfxdrivers=cle266,unichrome !

When I test vdr, the program prints the following messages:

|# vdr -P"softdevice -vo dfb:cle266"
[softdevice] processing args
[softdevice]   argv [0] = softdevice
[softdevice]   argv [1] = -vo
[softdevice] enabling CLE266 HW decoding
[softdevice] initializing Plugin
[softdevice] Initializing Video Out
[softdevice] ffmpeg build(3345152)
13:19:32.0580 I [3121] [dfb] init

     =======================|  DirectFB 1.0.0  |=======================
          (c) 2001-2007  The DirectFB Organization (directfb.org)
          (c) 2000-2004  Convergence (integrated media) GmbH
        ------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2007-08-30 08:28)
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 3127)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3128)...
(*) DirectFB/Input: AT Translated Set 2 keyboard (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3129)...
(*) DirectFB/Input: PC Speaker (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3130)...
(*) DirectFB/Input: ImExPS/2 Generic Explorer Mouse (3) 0.1 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) Direct/Modules: suppress module 'cle266'
(*) DirectFB/Graphics: VIA/S3G CLE266/UniChrome 0.4 (-)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
[dfb] RAM: 66830336 bytes
[dfb] Accellerated Functions: FillRectange DrawRectange DrawLine
FillTriangle Blit StretchBlit All
[dfb] Drawing Flags: Blend Xor
[dfb] Surface Blitting Flags: BlendAlpha BlendColorAlpha Colorize
SrcColorkey DstColorkey Deinterlace
13:19:32.0701 I [3121] [dfb] Supported video Modes are:
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED]
13:19:32.0702 I [3121] [dfb] Enumerating display Layers
13:19:32.0702 I [3121] [dfb] Configuring CooperativeLevel for OSD
Layer 0 VIA CLE266 Graphics  Type: graphics
  Caps: alphachannel brightness contrast opacity saturation src_colorkey
surface
Layer 1 VIA Unichrome Video  Type: graphics picture video
  Caps: deinterlacing dst_colorkey levels field_parity opacity
screen_location surface
13:19:32.0716 I [3121] Initialising CLE266 decoder (øå·øå·): success!
13:19:32.0716 I [3121] CLE266: Creating buffers for decoder
13:19:32.0716 D [3121] CLE266: Creating buffer number 0
13:19:32.0730 D [3121] CLE266: Creating buffer number 1
13:19:32.0744 D [3121] CLE266: Creating buffer number 2
13:19:32.0757 D [3121] CLE266: Creating buffer number 3
13:19:32.0770 D [3121] CLE266: passing mpegfb_stride
13:19:32.0771 D [3121] CLE266: passing buffers to decoder
13:19:32.0771 I [3121] [dfb] (osdLayer): flags, options, pixelformat:
0000000f, 00000000 00400c03
13:19:32.0771 I [3121] [dfb] (osdLayer): width, height:              
640 480
13:19:32.0771 I [3121] [dfb] osdLayer has alpha channel
13:19:32.0783 E [3121] [dfb] init
EXITING:action=IDirectFBDisplayLayer::SetConfiguration(DFBDisplayLayerConfig&),
result=Not supported!
 (!!!)  *** WARNING [Application exited without deinitialization of
DirectFB!] *** [core.c:775 in dfb_core_deinit_check()]|

It seems to be a problem with the alpha channel option in the
unichrome-gfxdriver - I do not know, why softdevice is testing the
unichrome driver as well, if it's started with -vo dfb:cle266. But I
tracked the origin of the error back to the function osdTestRegion in
the unichrome-uc_primary.c file. Options are 0x01 - which means Alpha,
but this seams not to be supported.

directfb is:

|# fbdev=/dev/fb0|
|# mode=720x576|
|mode=640x480|
|depth=32|
|# primary-layer=1|
|# primary-only|
|pixelformat=RGB32|
|disable-module=cle266|
|no-vt|

if I uncomment the primary-flags, I get :

|# vdr -P"softdevice -vo dfb:cle266"
[softdevice] processing args
[softdevice]   argv [0] = softdevice
[softdevice]   argv [1] = -vo
[softdevice] enabling CLE266 HW decoding
[softdevice] initializing Plugin
[softdevice] Initializing Video Out
[softdevice] ffmpeg build(3345152)
14:59:13.0484 I [3066] [dfb] init

     =======================|  DirectFB 1.0.0  |=======================
          (c) 2001-2007  The DirectFB Organization (directfb.org)
          (c) 2000-2004  Convergence (integrated media) GmbH
        ------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2007-08-30 08:28)
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 3072)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3073)...
(*) DirectFB/Input: AT Translated Set 2 keyboard (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3074)...
(*) DirectFB/Input: PC Speaker (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3075)...
(*) DirectFB/Input: ImExPS/2 Generic Explorer Mouse (3) 0.1 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) Direct/Modules: suppress module 'cle266'
(*) DirectFB/Graphics: VIA/S3G CLE266/UniChrome 0.4 (-)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
[dfb] RAM: 66830336 bytes
[dfb] Accellerated Functions: FillRectange DrawRectange DrawLine
FillTriangle Blit StretchBlit All
[dfb] Drawing Flags: Blend Xor
[dfb] Surface Blitting Flags: BlendAlpha BlendColorAlpha Colorize
SrcColorkey DstColorkey Deinterlace
14:59:13.0736 I [3066] [dfb] Supported video Modes are:
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED]
14:59:13.0736 I [3066] [dfb] Enumerating display Layers
14:59:13.0737 I [3066] [dfb] Configuring CooperativeLevel for OSD
Layer 0 VIA Unichrome Video  Type: graphics picture video
  Caps: deinterlacing dst_colorkey levels field_parity opacity
screen_location surface
14:59:13.0737 E [3066] [dfb]: could not find suitable videolayer
 (!!!)  *** WARNING [Application exited without deinitialization of
DirectFB!] *** [core.c:775 in dfb_core_deinit_check()]|

vdr -V shows:
|vdr (1.4.7/1.4.5) - The Video Disk Recorder
sky (0.3.5) - Sky Digibox interface
svccli (0.1.1) - Service demo client
streamdev-server (0.3.3-20070509) - VDR Streaming Server
status (0.2.0) - Status monitor test
osddemo (0.1.1) - Demo of arbitrary OSD setup
sc (0.8.1) - A software emulated CAM
softdevice (0.4.0) - A software emulated MPEG2 device
streamdev-client (0.3.3-20070509) - VTP Streaming Client
svdrpdemo (0.0.2) - How to add SVDRP support to a plugin
skincurses (0.0.8) - A text only skin
svcsvr (0.1.1) - Service demo server
hello (0.1.1) - A friendly greeting
|
fbset shows:
|# fbset -i
mode "640x480-60"
    # D: 25.175 MHz, H: 31.469 kHz, V: 59.940 Hz
    geometry 640 480 640 480 32
    timings 39722 48 16 33 10 96 2
    rgba 8/16,8/8,8/0,0/0
endmode

Frame buffer device information:
    Name        : Via
    Address     : 0xe4000000
    Size        : 66830336
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 0
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 2560
    MMIO Address: 0xe8000000
    MMIO Size   : 16777216
    Accelerator : Unknown (77)
|
dbinfo shows:
|# dfbinfo
     =======================|  DirectFB 1.0.0  |=======================
          (c) 2001-2007  The DirectFB Organization (directfb.org)
          (c) 2000-2004  Convergence (integrated media) GmbH
        ------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2007-08-30 08:28)
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 3186)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3187)...
(*) DirectFB/Input: AT Translated Set 2 keyboard (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3188)...
(*) DirectFB/Input: PC Speaker (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3189)...
(*) DirectFB/Input: ImExPS/2 Generic Explorer Mouse (3) 0.1 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) Direct/Modules: suppress module 'cle266'
(*) DirectFB/Graphics: VIA/S3G CLE266/UniChrome 0.4 (-)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)


Screen (00) FBDev Primary Screen            (primary screen)
   Caps: VSYNC POWER_MANAGEMENT

     Layer (00) VIA CLE266 Graphics             (primary layer)
        Type:    GRAPHICS
        Caps:    SURFACE OPACITY ALPHACHANNEL SRC_COLORKEY BRIGHTNESS
CONTRAST SATURATION

     Layer (01) VIA Unichrome Video          
        Type:    GRAPHICS VIDEO STILL_PICTURE
        Caps:    SURFACE OPACITY SCREEN_LOCATION DEINTERLACING
DST_COLORKEY LEVELS FIELD_PARITY SCREEN_POSITION SCREEN_SIZE

     Layer (02) VIA Unichrome DVD Subpicture 
        Type:    GRAPHICS VIDEO STILL_PICTURE
        Caps:    SURFACE OPACITY


Input (01) IMPS/2 Mouse                    (primary mouse)
   Type: MOUSE
   Caps: AXES BUTTONS
   Max. Axis: 2
   Max. Button: 2

Input (00) AT Translated Set 2 keyboard    (primary keyboard)
   Type: KEYBOARD
   Caps: KEYS

Input (11) ImExPS/2 Generic Explorer Mouse
   Type: MOUSE
   Caps: AXES BUTTONS
   Max. Axis: 3
   Max. Button: 4|

lsmod shows:
|# lsmod
Module                  Size  Used by
ppdev                   8676  0
lp                     11012  0
parport                33256  2 ppdev,lp
button                  6672  0
ac                      5188  0
battery                 9636  0
ipv6                  226016  12
snd_seq_dummy           3844  0
snd_seq_oss            28768  0
snd_seq_midi_event      7008  1 snd_seq_oss
snd_seq                45680  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            38368  0
snd_mixer_oss          15200  1 snd_pcm_oss
dvb_bt8xx              14980  0
nxt6000                 6916  1 dvb_bt8xx
mt352                   6276  1 dvb_bt8xx
sp887x                  6980  1 dvb_bt8xx
dst_ca                 12384  1 dvb_bt8xx
dst                    25704  2 dvb_bt8xx,dst_ca
dvb_core               71560  2 dvb_bt8xx,dst_ca
dvb_pll                14308  1 dvb_bt8xx
cx24110                 7652  1 dvb_bt8xx
or51211                 9060  1 dvb_bt8xx
zl10353                 5252  1 dvb_bt8xx
lgdt330x                7708  1 dvb_bt8xx
viafb                 155176  1
loop                   15048  0
tsdev                   7520  0
sd_mod                 19040  0
bt878                  10392  2 dvb_bt8xx,dst
snd_via82xx            26008  0
gameport               14632  1 snd_via82xx
bttv                  159732  2 dvb_bt8xx,bt878
snd_ac97_codec         83104  1 snd_via82xx
snd_ac97_bus            2400  1 snd_ac97_codec
video_buf              23012  1 bttv
firmware_class          9600  4 dvb_bt8xx,sp887x,or51211,bttv
via_v4l_drv           449908  0
snd_pcm                68676  3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer              20996  2 snd_seq,snd_pcm
snd_page_alloc          9640  2 snd_via82xx,snd_pcm
snd_mpu401_uart         8064  1 snd_via82xx
ir_common              27780  1 bttv
via                    33792  1 via_v4l_drv
psmouse                35016  0
snd_rawmidi            22560  1 snd_mpu401_uart
snd_seq_device          7820  4
snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
compat_ioctl32          1472  1 bttv
i2c_algo_bit            8424  1 bttv
drm                    61332  1 via
serio_raw               6660  0
btcx_risc               4776  1 bttv
tveeprom               13840  1 bttv
videodev               21120  2 bttv,via_v4l_drv
v4l1_compat            12036  1 videodev
v4l2_common            20448  2 bttv,videodev
snd                    47012  11
snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
pcspkr                  3072  0
i2c_viapro              8244  0
soundcore               9248  1 snd
i2c_core               19680  14
dvb_bt8xx,nxt6000,mt352,sp887x,dst,dvb_pll,cx24110,or51211,zl10353,lgdt330x,bttv,i2c_algo_bit,tveeprom,i2c_viapro
shpchp                 33024  0
pci_hotplug            28704  1 shpchp
via_agp                 9920  1
agpgart                29896  2 drm,via_agp
evdev                   9088  1
ext3                  119240  3
jbd                    52456  1 ext3
mbcache                 8356  1 ext3
usb_storage            71840  0
scsi_mod              124168  2 sd_mod,usb_storage
dm_mirror              19152  0
dm_snapshot            15552  0
dm_mod                 50232  9 dm_mirror,dm_snapshot
ide_generic             1408  0 [permanent]
ide_cd                 36064  0
cdrom                  32544  1 ide_cd
ide_disk               14848  3
via_rhine              22664  0
mii                     5344  1 via_rhine
ehci_hcd               28136  0
uhci_hcd               21164  0
usbcore               112644  4 usb_storage,ehci_hcd,uhci_hcd
via82cxxx               8388  0 [permanent]
generic                 5476  0 [permanent]
ide_core              110504  6
usb_storage,ide_generic,ide_cd,ide_disk,via82cxxx,generic
thermal                13608  0
processor              28840  1 thermal
fan                     4804  0 |

and last but not least, this is the patch, I made in accel.h of the
Via-FB-Driver:

|........
|| */
 

#ifndef __ACCEL_H__
#define __ACCEL_H__

/* To be included in fb.h */
#ifndef FB_ACCEL_VIA_UNICHROME
#define FB_ACCEL_VIA_UNICHROME  77   // <-- this was 50
#endif

/* MMIO Base Address Definition */
..................
|

Is there somebody out in the jungle, who can explain me the strange
output of softdevice/directfb?
Maybe, this is solved somewhere, but I googled two days without success.
In march, someone from France asked nearly the same in the dfb mailing
list. The answer was just to use the latest softdevice - what I did. But
there was also a hint about the ARGB pixel format, which has been never
supported by DirectFB, and now is explicitly denied. Possible the
solution can be found in that area.
The directfb-examples are running fine, softdevice with vesa-fb is
running (not fine, but running), but softdevice via directfb on
Epia-Hardware is still a challenge.

-- 
Mit freundlichen Grüßen  / best regards

Guido Dampf
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to