The simplest code to display video on PSP 3.xx

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
antalus
Posts: 1
Joined: Fri May 30, 2008 7:38 am

The simplest code to display video on PSP 3.xx

Post by antalus »

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: Select all

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: Select all

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.
Post Reply