antalus
Joined: 30 May 2008 Posts: 1
|
Posted: Fri May 30, 2008 8:40 am Post subject: The simplest code to display video on PSP 3.xx |
|
|
Hello, i'm looking for the simplest code that could decode and display video in my homebrew.
Any video format will do (pmp, pmf, mp4, avi, ...). I would just like to display fullscreen video (480x272).
So far i've tested http://forums.ps2dev.org/viewtopic.php?t=9927, or more precisely: http://www.mediafire.com/?zs1ojnnrxtx .
It compiles ok, reads the file, but it doesn't display it.
I don't know if it matters, but i get warnings while compiling:
implicit declaration of functions: sceMpegGetAvcNalAu, sceMpegAvcDecodeDetail2 and sceMpegAvcDecodeDetail2, sceMpegBaseCscAvc (and some others)
I've also tried pmf player 10: http://dl.qj.net/index.php?pg=12&fid=7926
After deleting 'CPMFPlayer::' (14 instances) from 'pmfplayer.h', and replacing lines 305 and 306 in 'pmfplayer.c':
| Code: |
ReaderThreadData* TDR = &Reader; -> TDR = &Reader;
DecoderThreadData* TDD = &Decoder; -> TDD = &Decoder;
|
and adding declarations of TDR and TDD at the beginning of SceInt32 CPMFPlayer::Play() (line 275):
| Code: |
ReaderThreadData* TDR;
DecoderThreadData* TDD;
|
...it compiles ok (no warnings), and i get a pmfPlayer.prx.
After editing paths in test/main.c so that everything is read from the same directory, i put 'EBOOT.PBP', 'pmfPlayer.prx' and 'movie.pmf' in the same directory but i get the error: Error loading module audiocodec.prx. Where do i get: audiocodec.prx, videocodec.prx, mpegbase.prx and mpeg_vsh.prx?
Any help getting these samples to work (or any other) would me much appreciated. |
|