Basically, what I want to be able to do is run a mpeg video while
moving graphics around at the same time. For example, have a video
running in the background with the time running being displayed "on
top" of the video. It seems the best way to do this is to use
DirectFB's capabilities, however I have not been able to compile the
DirectFB-extra package that has the ability to show mpeg videos. Has
anyone been able to compile this?
If that isn't possible, then I would use omapfbplay and have that
running at the same time as my app. But for that to work I would need
directFB to be running on /dev/fb1, so again, has anyone been able to
do that? I was able to get it to run on /dev/fb1, but the colors are
messed up, and it doesn't look like DirectFB can support the right
color space (according to http://www.directfb.org/docs/directfbrc.5.html)
Your help is very much appreciated.
Hi Jesse,
The problem with directFB and omap 3530 is that neither an SGX, nor a DSP driver have been done for them at the moment.
So, it does mean that all calculations will be done by software.
Best regards,
Maxime
(I sent this Saturday from webmail and didn't see it come through. Sorry if it double posts.)
Jesse wrote:
Basically, what I want to be able to do is run a mpeg video while
moving graphics around at the same time. For example, have a video
This is possible, though it took a progressive series of hacks. Our project is several months late so I haven't had time to do the proper thing and develop a DirectFB driver.
I did it by running MPlayer in fb0 (the only place it will run, as far as I can tell) Prior to that, I temporarily init DirectFB, render a font to a buffer, and then save the raw image data out, along with some font metrics. Then I use some heavily refactored code from omapfbplay to init fb1, with a simple software blitter. You have to set the color mode of the overlay appropriately - I'm not sure what it defaults to. I have color key transparency turned on - the location of the text is dark in my videos, so the jagged edges aren't noticeable.