Stefan Lucke wrote:
On Freitag, 18. Juni 2004 10:24, Nicolas Huillard wrote:

Stefan Lucke wrote:


Hi,

after getting vdr-softdevice running with my radeon I switched back
to my matrox-G550 and neither OSD nor video works with directfb.
Startup messages showed nothing unusual.

I also have problems with softdevice 0.0.6 / directfb CVS / viafb / 2.4.26-epia2.
I am currently documenting these problems, along with full testing of softmepg.
Problems are in the area of :
* video is only seen "through" the OSD (when no OSD, no video, when OSD is open, I can see the vedio behind the text / drawing areas


I got   softdevice running by changing SetParams like:
      dlc.options = (DFBDisplayLayerOptions)(DLOP_DST_COLORKEY | DLOP_DEINTERLACING ); 
// maybe your graphic card does not support this

//      dlc.pixelformat = DSPF_YV12;
//      dlc.pixelformat = DSPF_I420;
      dlc.pixelformat = DSPF_YUY2;

//      dlc.options = (DFBDisplayLayerOptions)( DLOP_ALPHACHANNEL );
//      dlc.options = (DFBDisplayLayerOptions)( DLOP_DST_COLORKEY | DLOP_DEINTERLACING 
); // maybe your graphic card does not support this
//      dlc.options = (DFBDisplayLayerOptions)( DLOP_NONE ); // maybe you should try 
this

So dlc.options has to been set according to card capabilities.
dlc.pixelformat I420 and YUY2 works. For some unknown reason colorkeying of
OSD does not work. Background is black instead of transparent.

I tried other settings but didn't have any one work right. I don't really know how to read layer caps and how to set them.
Maybe the program should simply choose by itself from existing caps...
I'm ready to help you test whatever you want.




* OSD is *monocolor*, as if it consisted only in transparency showing the video
* crashes (I still have to investigate where they occur exactly)


Could you locate them ?

See attached the gdb session when it crashes. I think this is simply related to "[dfb] (re)configuring Videolayer to 352 x 288" : switching to a channel with low-resolution stream. The channel.conf line is "Meteo Express:10911:v:S13E:27500:5820:5830:0:0:5800:0:0:0"


I am currently running DirectFB + DFB++ 0.9.21 CSV from 20040622. DirectFB has a new unichrome driver, that I can choose in /etc/directfbrc, by disabling the cle266 driver : disable-module=cle266
Attached is another gdb output with this unichrome driver, where we can see a third layer ("Unichrome DVD Subpicture"), which is IMO inaprorpriately choosen for video ("Using this layer for Video out: VIA Unichrome DVD Subpicture").


My "/etc/directfbrc" is now :

fbdev=/dev/fb0
mode=720x576
depth=32
pixelformat=AiRGB
sync
disable-module=keyboard
disable-module=lirc
disable-module=cle266

I tried softdevice with and without mode, depth and pixelformat. The latter (pixelformat=AiRGB) was recommended by Michael Hunold (author of the softmpeg vdr plugin I'm also trying to make work), to have the OSD worj with softmpeg (and it works).
An idea : why softdevice couldn't simply rely on what is set in /etc/directfbrc for the graphics params ? I had to change X resolution to 720 in the softdevice code because my card doesn't support 768x576, but 720x576. All other params should be treated the same, isn't it ?


My current status : OSD is still a monochrome transparent layer, video is still inexistent, and the screen is all dark blue.

How could we both work on this ? My skills are mainly packaging, testing and criticicing, and I have very little time (1 hour / day at most), but I really want to have vdr working on DirectFB (I don't want to go the XV of Xine route : too clumsy for me).

Yours,

NH
Starting program: /usr/bin/vdr --config=/etc/vdr --video=/home/video 
--lib=/usr/lib/vdr/plugins --shutdown=/bin/true --plugin=softdevice\ -vo\ dfb:
(no debugging symbols found)...(no debugging symbols found)...[Thread debugging using 
libthread_db enabled]
[New Thread 16384 (LWP 4257)]
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...[softdevice] processing args
[softdevice]   argv [0] = softdevice
[softdevice]   argv [1] = -vo
[New Thread 32769 (LWP 4260)]
[New Thread 16386 (LWP 4261)]
[New Thread 32771 (LWP 4262)]
[softdevice] initializing Plugin
[softdevice] Initializing Video Out
[dfb] init
(*) DirectFB/Config: Parsing config file '/etc/directfbrc'.

       ---------------------- DirectFB v0.9.21 ---------------------
             (c) 2000-2002  convergence integrated media GmbH
             (c) 2002-2004  convergence GmbH
        -----------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (with MMX support) (2004-06-22 21:06)
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(*) Direct/Memcpy: Using MMXEXT optimized memcpy()
(*) DirectFB/Core: doing sync()...
(no debugging symbols found)...(no debugging symbols found)...(*) Direct/Modules: 
suppress module 'keyboard'
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(*) 
Direct/Modules: suppress module 'lirc'
(no debugging symbols found)...(*) DirectFB/Genefx: MMX detected and enabled
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(*) DirectFB/Graphics: VIA/S3G UniChrome 0.3 (-)
(no debugging symbols found)...(*) DirectFB/WM: Default 0.1 (Convergence GmbH)
 (!!!)  *** WARNING [no video mode set yet] *** [../../../src/core/layers.c:536 in 
dfb_screen_rectangle()]
 (!!!)  *** WARNING [no video mode set yet] *** [../../../src/core/layers.c:536 in 
dfb_screen_rectangle()]
[dfb] RAM: 33554432 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
[dfb] Supported video Modes are: [EMAIL PROTECTED] [EMAIL PROTECTED]
[dfb] Setting  Videomode to 720x576-32
[dfb] Enumeratig display Layers
Layer 0 VIA CLE266 Graphics  Type: graphics
  Caps: alphachannel brightness contrast opacity saturation src_colorkey surface
Layer 1 VIA CLE266 Video  Type: graphics picture video
  Caps: brightness contrast deinterlacing hue opacity saturation screen_location 
surface
  This is our videoLayer
 (!!!)  *** WARNING [letting unprivileged IDirectFBDisplayLayer::GetSurface() call 
pass until cooperative level handling is finished] *** 
[../../../src/display/idirectfbdisplaylayer.c:159 in 
IDirectFBDisplayLayer_GetSurface()]
Using this layer for OSD: VIA CLE266 Graphics
Size: 720 x 576
Caps:
 - primary
 - videoonly
 - flipping
 - separated
VideoCaps:
 - videoonly
[dfb] Configuring CooperativeLevel for Overlay
[dfb] Configuring ColorKeying
[dfb] Configuring CooperativeLevel for OSD
... configured
[dfb] Using this layer for OSD: VIA CLE266 Graphics
[dfb] Using this layer for Video out: VIA CLE266 Video
[softdevice] Video Out seems to be OK
[softdevice] Initializing Audio Out
[softdevice] Audio out seems to be OK
[softdevice] A/V devices initialized, now initializing MPEG2 Decoder
[New Thread 49156 (LWP 4263)]
[New Thread 65541 (LWP 4264)]
[New Thread 81926 (LWP 4265)]
[New Thread 98311 (LWP 4266)]
[softdevice] should set volume to 255
[New Thread 114696 (LWP 4267)]
[softdevice] OSD-Position at 66 x 369
[video] Creating WindowLayer at 66 x 369, (600 x 135)
[Thread 81926 (LWP 4265) exited]
[Thread 114696 (LWP 4267) exited]
[Thread 98311 (LWP 4266) exited]
[New Thread 131081 (LWP 4269)]
[New Thread 147466 (LWP 4270)]
[softdevice] OSD is off now
[New Thread 163851 (LWP 4271)]
[softdevice] OSD-Position at 66 x 369
[video] Creating WindowLayer at 66 x 369, (600 x 135)
[dfb] (re)configuring Videolayer to 352 x 288
 (!!!)  *** WARNING [Application exited without deinitialization of DirectFB!] *** 
[../../../src/core/core.c:638 in dfb_core_deinit_check()]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 4257)]
0x4088c96b in dfb_layer_region_flip_update () from /usr/lib/libdirectfb-0.9.so.21
(gdb) bt
#0  0x4088c96b in dfb_layer_region_flip_update () from /usr/lib/libdirectfb-0.9.so.21
#1  0x4086d418 in IDirectFBSurface_Layer_Construct () from 
/usr/lib/libdirectfb-0.9.so.21
#2  0x40595167 in IDirectFBSurface::Flip () from /usr/lib/libdfb++-0.9.so.21
#3  0x402ba506 in cDFBVideoOut::Refresh () from 
/usr/lib/vdr/plugins/libvdr-softdevice.so.1.2.6
#4  0x402b611d in cVideoOut::CommitWindow () from 
/usr/lib/vdr/plugins/libvdr-softdevice.so.1.2.6
#5  0x402b479e in cSoftOsd::CommitWindow () from 
/usr/lib/vdr/plugins/libvdr-softdevice.so.1.2.6
#6  0x0809c7c3 in cOsdBase::Flush ()
#7  0x0809d29b in cOsd::Flush ()
#8  0x08083388 in cInterface::GetKey ()
#9  0x080b3f63 in main ()
(gdb)
Starting program: /usr/bin/vdr --config=/etc/vdr --video=/home/video 
--lib=/usr/lib/vdr/plugins --shutdown=/bin/true --plugin=softdevice\ -vo\ dfb:
(no debugging symbols found)...(no debugging symbols found)...[Thread debugging using 
libthread_db enabled]
[New Thread 16384 (LWP 4341)]
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...[softdevice] processing args
[softdevice]   argv [0] = softdevice
[softdevice]   argv [1] = -vo
[New Thread 32769 (LWP 4344)]
[New Thread 16386 (LWP 4345)]
[New Thread 32771 (LWP 4346)]
[softdevice] initializing Plugin
[softdevice] Initializing Video Out
[dfb] init
(*) DirectFB/Config: Parsing config file '/etc/directfbrc'.

       ---------------------- DirectFB v0.9.21 ---------------------
             (c) 2000-2002  convergence integrated media GmbH
             (c) 2002-2004  convergence GmbH
        -----------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (with MMX support) (2004-06-22 21:06)
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(*) Direct/Memcpy: Using MMXEXT optimized memcpy()
(*) DirectFB/Core: doing sync()...
(no debugging symbols found)...(no debugging symbols found)...(*) Direct/Modules: 
suppress module 'keyboard'
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(*) 
Direct/Modules: suppress module 'lirc'
(no debugging symbols found)...(*) DirectFB/Genefx: MMX detected and enabled
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(*) Direct/Modules: suppress module 'cle266'
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(*) DirectFB/Graphics: VIA/S3G 
UniChrome 0.4 (-)
(no debugging symbols found)...(*) DirectFB/WM: Default 0.1 (Convergence GmbH)
 (!!!)  *** WARNING [no video mode set yet] *** [../../../src/core/layers.c:536 in 
dfb_screen_rectangle()]
 (!!!)  *** WARNING [no video mode set yet] *** [../../../src/core/layers.c:536 in 
dfb_screen_rectangle()]
[dfb] RAM: 33554432 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
[dfb] Supported video Modes are: [EMAIL PROTECTED] [EMAIL PROTECTED]
[dfb] Setting  Videomode to 720x576-32
[dfb] Enumeratig display Layers
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 opacity screen_location surface
  This is our videoLayer
uc_overlay: color-keying is disabled
Layer 2 VIA Unichrome DVD Subpicture  Type: graphics picture video
  Caps: opacity surface
  This is our videoLayer
 (!!!)  *** WARNING [letting unprivileged IDirectFBDisplayLayer::GetSurface() call 
pass until cooperative level handling is finished] *** 
[../../../src/display/idirectfbdisplaylayer.c:159 in 
IDirectFBDisplayLayer_GetSurface()]
Using this layer for OSD: VIA CLE266 Graphics
Size: 720 x 576
Caps:
 - primary
 - videoonly
 - flipping
 - separated
VideoCaps:
 - videoonly
[dfb] Configuring CooperativeLevel for Overlay
[dfb] Configuring ColorKeying
[dfb] Configuring CooperativeLevel for OSD
... configured
[dfb] Using this layer for OSD: VIA CLE266 Graphics
[dfb] Using this layer for Video out: VIA Unichrome DVD Subpicture
[softdevice] Video Out seems to be OK
[softdevice] Initializing Audio Out
[softdevice] Audio out seems to be OK
[softdevice] A/V devices initialized, now initializing MPEG2 Decoder
[New Thread 49156 (LWP 4347)]
[New Thread 65541 (LWP 4348)]
[New Thread 81926 (LWP 4349)]
[New Thread 98311 (LWP 4350)]
[softdevice] should set volume to 255
[New Thread 114696 (LWP 4351)]
[softdevice] OSD-Position at 66 x 369
[video] Creating WindowLayer at 66 x 369, (600 x 135)
[softdevice] OSD is off now

Reply via email to