Page 1 of 1

playing wmv /avi video in CE GUI window

Posted: Mon Jan 09, 2006 14:47
by magicman
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?

Re: playing wmv /avi video in CE GUI window

Posted: Mon Jan 09, 2006 21:32
by lindquist
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.

Re: playing wmv /avi video in CE GUI window

Posted: Tue Jan 10, 2006 14:48
by magicman
"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?

Posted: Thu Sep 28, 2006 17:08
by Jake
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]