Hello everyone on the mailing list Ive just joined on the list because I have been trying to use directfb and I am having a peculiar problem.
I am using directfb with vdr through softdevice. The problem is that I can start vdr from the command line as follows vdr -P "softdevice -vo dfb:mgatv" [softdevice] processing args [softdevice] argv [0] = softdevice [softdevice] argv [1] = -vo vo_argv: dfb:mgatv [setup-softdevice] alsa ac3Mode set to: 0 [setup-softdevice] alsa AC3 device set to: hw:0,1 [setup-softdevice] alsa device set to: default [setup-softdevice] A/V Offset set to (0) [setup-softdevice] Cropping 0 lines from bottom [setup-softdevice] Cropping 0 columns from left [setup-softdevice] cropping mode set to 0 (none) [setup-softdevice] cropping mode toggle key set to 0 (none) [setup-softdevice] Cropping 0 columns from right [setup-softdevice] Cropping 0 lines from top [setup-softdevice] deinterlace method set to 0 none [setup-softdevice] mainMenu: 1 [setup-softdevice] setting alpha blend mode to pseudo [softdevice] picture mirroring set to 0 (off) [setup-softdevice] pixel format set to (YUY2) [setup-softdevice] shouldSuspend to: 0 [setup-softdevice] syncTimerMode: sig [softdevice] UseStretchBlitset to on [setup-softdevice] vidBrightness: -1 [setup-softdevice] vidContrast: -1 [setup-softdevice] vidHue: -1 [setup-softdevice] vidSaturation: -1 [setup-softdevice] startup aspect set to (4:3 normal) [softdevice] initializing Plugin [softdevice] Initializing Video Out [softdevice] ffmpeg build(3347968) [dfb] init [dfb] RAM: 16777216 bytes [dfb] Accellerated Functions: FillRectange DrawRectange DrawLine FillTriangle Blit StretchBlit All [dfb] Drawing Flags: Blend Src.premultiply [dfb] Surface Blitting Flags: BlendAlpha BlendColorAlpha Colorize SrcColorkey SrcPremultiply Deinterlace [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] [dfb] Enumerating display Layers Layer 2 FBDev Primary Layer Type: graphics Caps: brightness contrast saturation surface Layer 1 Matrox Backend Scaler Type: graphics picture video Caps: brightness contrast deinterlacing dst_colorkey screen_location surface Layer 0 Matrox CRTC2 Layer Type: graphics picture video Caps: brightness contrast hue field_parity saturation surface [dfb] (osdLayer): flags, options, pixelformat: 0000005f, 00000000 00200801 [dfb] (osdLayer): width, height: 720 576 [dfb] osdLayer without !! alpha channel [dfb] Set DLBM_TRIPLE for layer [Matrox CRTC2 Layer] [dfb] DLOP_FIELD_PARITY supported by layer [Matrox CRTC2 Layer] [surface capabilities] scrSurface: videoonly flipping interlaced triple-buffered PixelFormat = 0x00418c04 [dfb] width = 720, height = 576 [dfb] got fmt = 0x00418c04 bpp = 32 [dfb] Using this layer for OSD: (Matrox CRTC2 Layer - [720x576]) [surface capabilities] osdSurface: videoonly double-buffered flipping PixelFormat = 0x00418c04 [surface capabilities] videoSurface: videoonly PixelFormat = 0x00200806 [dfb] Using this layer for OSD: Matrox CRTC2 Layer [dfb] Using this layer for Video out: Matrox CRTC2 Layer [dfb] Display frame time is 19957 microseconds [dfb] (re)configuring Videolayer to 720 x 576 (720x576) [dfb] creating new surface (stretchBlit) [surface capabilities] videoSurface: videoonly interlaced PixelFormat = 0x00200806 [dfb] (re)configured 0x00200806 [softdevice] Subplugin successfully opend [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 [dfb] (re)configuring Videolayer to 736 x 576 (736x576) [dfb] creating new surface (stretchBlit) [surface capabilities] videoSurface: videoonly interlaced PixelFormat = 0x00200806 [dfb] (re)configured 0x00200806 [dfb] (re)configuring Videolayer to 720 x 576 (720x576) [dfb] creating new surface (stretchBlit) [surface capabilities] videoSurface: videoonly interlaced PixelFormat = 0x00200806 [dfb] (re)configured 0x00200806 and everything works fine and the tv picture can be seen from the screen as long as I let the vdr run. But if I create a script #!/bin/bash vdr -P "softdevice -vo dfb:mgatv" and run that script from the command prompt the execution ends as soon as it starts to initialize [softdevice] processing args [softdevice] argv [0] = softdevice [softdevice] argv [1] = -vo vo_argv: dfb:mgatv [setup-softdevice] alsa ac3Mode set to: 0 [setup-softdevice] alsa AC3 device set to: hw:0,1 [setup-softdevice] alsa device set to: default [setup-softdevice] A/V Offset set to (0) [setup-softdevice] Cropping 0 lines from bottom [setup-softdevice] Cropping 0 columns from left [setup-softdevice] cropping mode set to 0 (none) [setup-softdevice] cropping mode toggle key set to 0 (none) [setup-softdevice] Cropping 0 columns from right [setup-softdevice] Cropping 0 lines from top [setup-softdevice] deinterlace method set to 0 none [setup-softdevice] mainMenu: 1 [setup-softdevice] setting alpha blend mode to pseudo [softdevice] picture mirroring set to 0 (off) [setup-softdevice] pixel format set to (YUY2) [setup-softdevice] shouldSuspend to: 0 [setup-softdevice] syncTimerMode: sig [softdevice] UseStretchBlitset to on [setup-softdevice] vidBrightness: -1 [setup-softdevice] vidContrast: -1 [setup-softdevice] vidHue: -1 [setup-softdevice] vidSaturation: -1 [setup-softdevice] startup aspect set to (4:3 normal) [softdevice] initializing Plugin [softdevice] Initializing Video Out [softdevice] ffmpeg build(3347968) [dfb] init This is a part from directfb.log from the working situation (-) [Main Thread 0.017] ( 4209) FBDev/VT: vt_set_fb( 8, -1 ) (-) [Main Thread 0.058] ( 4209) FBDev/VT: vt_init_switching() (-) [VT Switcher 0.062] ( 4218) FBDev/VT: dfb_vt_detach() (-) [VT Switcher 0.062] ( 4218) Direct/Signals: Blocking all signals from now on! (-) [VT Switcher 0.065] ( 4218) FBDev/VT: vt_thread( 0x8ab0f88, (nil) ) (-) [VT Switcher 0.065] ( 4218) FBDev/VT: ...vt_thread (signal -1) (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 4218)... Here is a small piece from the same position as in the working situation on directfb.log where the execution starts to shut down (-) [Main Thread 0.017] ( 4163) FBDev/VT: vt_set_fb( 7, -1 ) (-) [Main Thread 0.061] ( 4163) FBDev/VT: vt_init_switching() (-) [VT Switcher 0.099] ( 4172) FBDev/VT: dfb_vt_detach() (-) [VT Switcher 0.100] ( 4172) Direct/Signals: Blocking all signals from now on! (-) [VT Switcher 0.103] ( 4172) FBDev/VT: vt_thread( 0x90223b0, (nil) ) (-) [VT Switcher 0.103] ( 4172) FBDev/VT: ...vt_thread (signal -1) (!) [ 4163: 0.104] --> Caught signal 1 (sent by pid 4172, uid 0) <-- (-) [Main Thread 0.104] ( 4163) DirectFB/Core: dfb_core_destroy... (-) [Main Thread 0.104] ( 4163) Direct/Signals: Removing handler 0x204440 for signal -1 with context 0x90743f0... (-) [Main Thread 0.104] ( 4163) DirectFB/Core: Shutting down... This is a little bit of a problem because I can not start vdr as a service. Any hints to what to look for or where would be appreciated. I've read all the readmes and tried to go through the directfb archives but found no help. I have DirectFB-1.0.0-rc2 DFB++-0.9.25 Softdevice-0.3.1 I believe softdevice is working because it works with -vo xv: option. _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
