Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Video Files & GAPIDraw


Video Files & GAPIDraw

Postby Guest » Apr 25, 2004 @ 4:03am

Is it possible to play video files (avi or wmv) using GapiDraw ?
and how ?
Guest
 


Postby Johan » Apr 26, 2004 @ 8:00am

It is possible, but you need to provide the video decoding routine yourself. You can then call backbuffer->GetBuffer and write the pixels...
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[http://www.gapidraw.com]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby mcode » Sep 20, 2004 @ 8:07pm

:?
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....
mcode
pm Member
 
Posts: 4
Joined: Sep 1, 2004 @ 2:15pm


Gapidraw and avi/wmv/3gp

Postby sriraja » Sep 14, 2006 @ 7:02am

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.
sriraja
pm Member
 
Posts: 2
Joined: Sep 10, 2006 @ 7:14pm


Postby norwy » Sep 23, 2006 @ 7:05am

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++?
norwy
pm Member
 
Posts: 39
Joined: Aug 13, 2004 @ 4:10pm
Location: Paris


Postby anxer » Jan 7, 2007 @ 1:41am

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?
anxer
pm Member
 
Posts: 15
Joined: Oct 20, 2004 @ 1:39pm


Postby summer_goth » Mar 6, 2007 @ 2:34pm

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.
summer_goth
pm Member
 
Posts: 55
Joined: May 20, 2002 @ 8:19pm
Location: South Africa


Postby Nomad » Mar 12, 2007 @ 3:59pm

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.
Nomad
pm Member
 
Posts: 76
Joined: Oct 28, 2006 @ 8:21pm
Location: Ukraine, Kiev


Postby summer_goth » Mar 12, 2007 @ 7:39pm

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.
summer_goth
pm Member
 
Posts: 55
Joined: May 20, 2002 @ 8:19pm
Location: South Africa


Postby Nomad » Mar 14, 2007 @ 2:32pm

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
This is very very basic and simple sample. It maps file "//1.mpg" to memory and then plays it.
In this sample I used PocketHAL, but it is not very much code to change to make output by means of gapiDraw instead of PocketHAL.
(140.35 KiB) Downloaded 448 times
Nomad
pm Member
 
Posts: 76
Joined: Oct 28, 2006 @ 8:21pm
Location: Ukraine, Kiev


Postby summer_goth » Mar 14, 2007 @ 3:46pm

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.
summer_goth
pm Member
 
Posts: 55
Joined: May 20, 2002 @ 8:19pm
Location: South Africa


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum