Hi!

Using DFB there are several ways to proceed:

You will definately need to use the "multi application" feature of DFB. 
XDirectFB is one of your applications, and mplayer the other.
You can do it in two ways:

1) Use DFB in "windowed" mode - each DFB app runs in a "window" (the XDirectFB 
"window" will probably be fullscreen, the mplayer window may be smaller)
The different windows are managed by DirectFB, they share the same graphics 
layer. This will work on any video card, even using the VESA framebuffer. 
DirectFB will handle the transparency for the windows in software.

2) Use multiple layers of your Graphics Hardware. This assumes your video card 
supports multiple layers, and DirectFb has a driver for it.
In this mode, you would open XDirectFB on the main (graphics) layer of your 
video card. You would open mplayer on an "overlay" layer.
In this method the Graphics card hardware will be responsible for compositing 
the layers, and thus the transparency will be done in hardware.
Note that not all Graphics Cards will support what you want - some have only 
one layer, some don't support putting video on top of graphics, some don't 
support transparency.... It depends on your video card. Current ATI and NVIDIA 
cards will do what you need.
Note that you may need to use the dfb_layer program to set the options on the 
different layers, for example to move the video on top of the graphics.

Regards,

Richard Unger




 

> -----Ursprüngliche Nachricht-----
> Von: Michael Eichhorn [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 22. Februar 2007 14:06
> An: Unger Richard
> Betreff: Re: [directfb-users] newbie question, using directfb 
> only for overlay a video on my desktop
> 
> thanks, for the fast help.
> 
> i think i will try the first way, do you know if i could move 
> the layer with the player during playing a video over my desktop?
> 
> michael
> 
> 
> 
> Unger Richard wrote:
> 
> >HI!
> >
> >What you want to do is non-trivial. However, it should be 
> possible without programming, in several ways:
> >
> >1) Using DirectFB:
> >
> >* make sure your linux framebuffer is working (see FrameBuffer-HOWTO)
> >* install DirectFB, XDirectFB and mplayer (with DFB support)
> >* Configure your system to use XDirectFB
> >* Start XDirectFB - you will have your normal desktop, but 
> now Xwindows is running on DFB!
> >* Start mplayer (using DFB output) and position it as desired
> >
> >Possible Problems: I am not sure mplayer will support 
> transparent videos, ie I am not sure you will see the desktop 
> and the other video through the topmost video.
> >
> >2) Using X-Windows:
> >
> >* Install/Use a recent X.org version Xwindows
> >* Activate the "composite" and "xrender" extensions in your xorg.conf
> >* Install the "xcompmgr" and "transset" applications
> >* Install mplayer
> >* Now each window should have its own pixel buffer, meaning 
> windows can 
> >be "really" transparent, with other windows showing through
> >* Use mplayer to open and position your video windows
> >* by using transset you should be able to make the mplayer windows 
> >transparent
> >
> >Possible Problems: Performance
> >
> >3) Using Xgl / Aixgl:
> >
> >* You will need a recent version of X.org
> >* Best to check a Xgl-HOWTO for your Distribution, it is a 
> hot topic so 
> >there are many examples
> >* You will need a fairly powerful 3D GFX card, I think Nvidia models 
> >are preferred
> >* Install Xgl or Aixgl, compiz or Beryl, etc as detailed in 
> the HowTo...
> >* Use your favourite player to show the videos
> >* You should now be able to activate a number of fancy effects, 
> >including per-window transparency (see 
> >http://youtube.com/watch?v=hIXaVbJSnkA for a demo of this method!)
> >
> >Possible Problems: Requires good GFX card for performance
> >
> >
> >Regards,
> >
> >Richard Unger
> >
> >
> >  
> >
> >>-----Ursprüngliche Nachricht-----
> >>Von: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED] Im Auftrag von Michael 
> >>Eichhorn
> >>Gesendet: Mittwoch, 21. Februar 2007 16:38
> >>An: directfb-users@directfb.org
> >>Betreff: [directfb-users] newbie question,using directfb only for 
> >>overlay a video on my desktop
> >>
> >>Hello all,
> >>
> >>i want to realize something like this:
> >>
> >>http://directfb.org/screenshots/ten_videos.jpg
> >>
> >>but i want my normal desktop and somewhere on my desktop, 
> there should 
> >>be played a video, perhaps two overlayed.
> >>Now i dont know how to handle several layers or to manage 
> the output 
> >>of a video player and a desktop.
> >>
> >>is there a little how to for this?
> >>
> >>michael
> >>
> >>
> >>_______________________________________________
> >>directfb-users mailing list
> >>directfb-users@directfb.org
> >>http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
> >>
> >>    
> >>
> >
> >_______________________________________________
> >directfb-users mailing list
> >directfb-users@directfb.org
> >http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
> >  
> >
> 
> 

_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to