How to play avi/mp4 etc, programmatically
How to play avi/mp4 etc, programmatically
Hi,
I'm working on a PSP version of 'Deal or No Deal', but would like to have a video intro for it. Is there a way to play video files through my own code? If anyone wants to know what 'Deal or No Deal' is then take a look at http://www.channel4.com/deal
It's the UK version of a US show.
Thanks in advance for any help,
Polo
__________________
In development: Deal or No Deal on PSP
In development: UK TV Guide on PSP
I'm working on a PSP version of 'Deal or No Deal', but would like to have a video intro for it. Is there a way to play video files through my own code? If anyone wants to know what 'Deal or No Deal' is then take a look at http://www.channel4.com/deal
It's the UK version of a US show.
Thanks in advance for any help,
Polo
__________________
In development: Deal or No Deal on PSP
In development: UK TV Guide on PSP
I also want to know if this is yet possible or if it isn't, i'm also making a game with a movie intro but don't know how to play it.
thanks in advance
thanks in advance
My PSP games:
Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
jonny wrote:you can use PMPMod, but there are some consequences:
- release your work under GPL licence
- your executables size will raise of about 2MB
- works only on fw 1.5
Thanks for that, I'll have to take a look at it. i'm not too bothered about filesize as there may be quite a chunk of audio/video in my game..
Thanks again..
found an example that show how to play:
http://forums.ps2dev.org/viewtopic.php?p=32268#32268
(also reducing the max allocation in pmp_decode.h will be probably required)
http://forums.ps2dev.org/viewtopic.php?p=32268#32268
(also reducing the max allocation in pmp_decode.h will be probably required)
Compile PMPMod as a PRX, and let your program pass an argument to the PRX to start the video. Then just release the PRX + source code.jonny wrote:you can use PMPMod, but there are some consequences:
- release your work under GPL licence
- your executables size will raise of about 2MB
- works only on fw 1.5
That should keep it GPL-legal, correct?
afaik, in this case only eventual modification in the module need to be released.
the negative point of this method is that, the first time gets called, the mp3 lib takes ~6 seconds to initialize some static data (so you'll have to wait this for every video instead of only for the first one)
actually, if someone want to statically link pmpmod but don't want to release the source, can always ask/discuss this with me (if the project is completely free/there is no money involved, i will probably agree)
the negative point of this method is that, the first time gets called, the mp3 lib takes ~6 seconds to initialize some static data (so you'll have to wait this for every video instead of only for the first one)
actually, if someone want to statically link pmpmod but don't want to release the source, can always ask/discuss this with me (if the project is completely free/there is no money involved, i will probably agree)
afaik since always
http://www.fsf.org/licensing/licenses/g ... luginsInNF
(see: "Can I apply the GPL when writing a plug-in for a non-free program?" & "Can I release a non-free program that's designed to load a GPL-covered plug-in?")
this seems also logical.
suppose you are writing, for example, a video encoder, using the XviD library (XviD is GPLed).
linking it statically or dinamically doesn't change things too much, actually you are creating a single program that use GPL code.
the permitted limit is when your program use GPL code "as an external program".
in the example above: i could write a command line encoder and release it under GPL; after this i could write a GUI for the encoder, in this case i'm not in need to release the GUI under GPL (but the only things the GUI can do are call the encoder with parameters, wait for end and check for eventual return codes)
http://www.fsf.org/licensing/licenses/g ... luginsInNF
(see: "Can I apply the GPL when writing a plug-in for a non-free program?" & "Can I release a non-free program that's designed to load a GPL-covered plug-in?")
this seems also logical.
suppose you are writing, for example, a video encoder, using the XviD library (XviD is GPLed).
linking it statically or dinamically doesn't change things too much, actually you are creating a single program that use GPL code.
the permitted limit is when your program use GPL code "as an external program".
in the example above: i could write a command line encoder and release it under GPL; after this i could write a GUI for the encoder, in this case i'm not in need to release the GUI under GPL (but the only things the GUI can do are call the encoder with parameters, wait for end and check for eventual return codes)
ehrm. if dynamic linking to something that is not gpl would be a gpl violation, then what about
- binary drivers (links against the linux kernel)
- anything compiled for windows (links against various windows libs)
?
(maybe the link you were giving talks about the v2 gpl, which is a lot more restrictive?)
- binary drivers (links against the linux kernel)
- anything compiled for windows (links against various windows libs)
?
(maybe the link you were giving talks about the v2 gpl, which is a lot more restrictive?)
err yes ofcourse, link something that isnt gpl with something that is. (if both would be gpl then there would obviously be no problem at all :))we are talking about dynamically linking something that IS under gpl (and yes, v2)
in any case that only proves the point why i dont like gpl (and even less v2)