forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The simplest code to display video on PSP 3.xx

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
antalus



Joined: 30 May 2008
Posts: 1

PostPosted: Fri May 30, 2008 8:40 am    Post subject: The simplest code to display video on PSP 3.xx Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group