playing wmv /avi video in CE GUI window

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
magicman
Just popping in
Just popping in
Posts: 4
Joined: Fri Dec 30, 2005 18:39

playing wmv /avi video in CE GUI window

Postby magicman » Mon Jan 09, 2006 14:47

I want to play an animation file in CE GUI window. I do need utilities any standard codec provodes such as play,pause stop.

Does CE GUI support any codec API?

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: playing wmv /avi video in CE GUI window

Postby lindquist » Mon Jan 09, 2006 21:32

CEGUI knows nothing about this sort of thing.
All the library can do is render a texture to a window. (fx by using a StaticImage control).

You'll need to render your video to a CEGUI texture.

User avatar
magicman
Just popping in
Just popping in
Posts: 4
Joined: Fri Dec 30, 2005 18:39

Re: playing wmv /avi video in CE GUI window

Postby magicman » Tue Jan 10, 2006 14:48

"You'll need to render your video to a CEGUI texture."

What does this mean? Could you write more about it? what animation file formats can I use ? Is the theora plugin solution?

Jake
Just popping in
Just popping in
Posts: 6
Joined: Tue Aug 29, 2006 19:05

Postby Jake » Thu Sep 28, 2006 17:08

It means you have to render a frame from the video stream and then attach it to the texture.

However, I've run into an issue with this. I've set up a DirectShow filtergraph that grabs bitmap frames to a buffer. Then I use the Texture::loadFromMemory function to update the texture. The problem is that the sampleGrabber stores the pixel info in an order which is horizontally mirrored from the order in which the loadFromMemory function expects. All my efforts to reorder the pixels in the buffer result in various levels of jaggies. Has anyone else dealt with this issue?

[Solved]


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 5 guests