PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Video Files & GAPIDraw

Is it possible to play video files (avi or wmv) using GapiDraw ?
and how ?
It is possible, but you need to provide the video decoding routine yourself. You can then call backbuffer->GetBuffer and write the pixels...
:?
provide the video decoding routine yourself

...doesn't sound like an easy way. Anybody tried this before?
AndreyT, who has managed to do so, does not seem to be an active member of this forum any more :( (does anybody have his email address?)...
any hints or suggestions, where a beginner like me could start research about getting or writing such a decoding routine? Video playing was supposed to be an essential part of my application....
sriraja · 14 Sep 2006, 06:02 UTC — Gapidraw and avi/wmv/3gp
Kind of a late reply to this post, but anyone had success with using avi/wmv/3gp with Gapidraw???

We are developing a game in which we have to play an avi file as an intro.
I am exactly looking for the same thing... The main problem is I don't know how to use a video codec because it depends on the platform.

Does anybody know a good tutorial that explains well how to use a video codec/lib in c++?
Johan wrote:It is possible, but you need to provide the video decoding routine yourself. You can then call backbuffer->GetBuffer and write the pixels...


Johan can you be more detailed on this issue? I'm planning to make something similar with pocketTVsdk (plugin) or mpeg2 library during the next two months. Where do i actually do this? I assume that like pocketHAL there is one continuous loop drawing stuff (correct me if i'm wrong) thus most probably i need to create another thread doing the decoding and with shared memory i need to copy the pixels?

In addition is it possible to play video and over it :-) to draw text? or is it to heavy for smartphones?
summer_goth · 06 Mar 2007, 13:34 UTC
Has anyone been able to do this?

I do not have the necessary expertise and knowledge to be able to play a video file in Gapidraw. Is it possible for someone to provide example source code?

I'll buy Gapidraw today if I knew how to do this.

Have a wonderful time everyone.
Hi Summer_goth.

I'm researching now on this problem, because I also need to play video file in my game, and found port of libMPEG2 library to Windows CE. Here is a link:

http://arisme.free.fr/ports/libmpeg2.php

Now I'm trying to use it to run some test video. Although, I have not made any progress yet. If you interested you can also try, maybe you will manage with this faster then I.

Best regards, Nomad.
summer_goth · 12 Mar 2007, 18:39 UTC
Ah, thank you very much Nomad.

I will look into this and try and figure it out as well. If I manage to get it to work I'll let you know.

Our company has put the two games that have videos on hold and we are completing a different game so long. I'm currently checking out the different libraries, but it looks like we'll probably buy GapiDraw. Edge being a bit expensive and PPL, which even though it looks amazing, is just too much to learn right now.

So I'll see if I somehow can get this MPEG library to work with GapiDraw.

Best of luck to you as well. I hope someone gets it to work.

Have a great time Nomad. Will keep you posted.
Hi, Summer_goth.

I've managed to run a small sample using this port of libMPEG2. Unfortunately by default the speed of playing full screen (320x240) video is very different depending on action on the screen and needs some improvements to be made.

P.S. If you'll experience any problems with running this sample fill free to ask here on forum or using private messaging.
Attachments:
minimalVideo.rar (141 KB)
summer_goth · 14 Mar 2007, 14:46 UTC
Nicely done Nomad.

I've not been able to have a look yet at the library. I've downloaded it though, but that is as far as I got. I'll quickly download your code and have a look at it tomorrow.

Have a great time and thanks for all the help.