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 

PMP(PSP Media Player)
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Ranwanui



Joined: 15 Oct 2005
Posts: 7

PostPosted: Wed Nov 02, 2005 1:23 pm    Post subject: Reply with quote

use asm version:
480:272---OK
-3: 272 ----Only Audio;

use c version:(replace csc_asm() with csc_c() in me_csc.c)
480:272 ---OK
-3:272 -----OK
But the stream control cannot work corrently
(push D pad or L\R trigger);
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Wed Nov 02, 2005 6:32 pm    Post subject: Reply with quote

what is "-3" ?


EDIT:
there are restrictions on my csc routines:

csc_c -> (width mod 2) = 0 and (height mod 2) = 0
csc_asm -> (width mod 8) = 0 and (height mod 2) = 0

me_csc with csc_c -> (width mod 2) = 0 and (height mod 4) = 0
me_csc with csc_asm -> (width mod 8) = 0 and (height mod 4) = 0


anyway a decent mpeg4 stream should have (width mod 8) = 0 and (height mod 8) = 0
a good stream (width mod 16) = 0 and (height mod 16) = 0
Back to top
View user's profile Send private message Visit poster's website
Ranwanui



Joined: 15 Oct 2005
Posts: 7

PostPosted: Thu Nov 03, 2005 11:35 am    Post subject: Reply with quote

I see.

"-3" means auto adapt with another parameter.
"-3:272" means auto adjust height to adapt the 272 width in 4:3
Back to top
View user's profile Send private message
dnnsmanace



Joined: 31 Oct 2005
Posts: 15

PostPosted: Thu Nov 03, 2005 1:42 pm    Post subject: Reply with quote

Anyone know how they are decoding xvid in PSPAdvance?

www.pspadvance.com
Back to top
View user's profile Send private message
Dibblah



Joined: 03 Nov 2005
Posts: 13

PostPosted: Thu Nov 03, 2005 7:18 pm    Post subject: Reply with quote

dnnsmanace wrote:
Anyone know how they are decoding xvid in PSPAdvance?

www.pspadvance.com


Using the XviD codec directly.

See http://forums.qj.net/showthread.php?p=239663#post239663
Back to top
View user's profile Send private message
someone
Idiot


Joined: 13 Sep 2005
Posts: 74

PostPosted: Thu Nov 03, 2005 8:12 pm    Post subject: Reply with quote

dnnsmanace wrote:
Anyone know how they are decoding xvid in PSPAdvance?

www.pspadvance.com


Well, in a crappy way I have to say. ch1.avi (the xvid in the freeware preview) is a lowres 10fps crappy vid, with external audio (ch1.mp3).
Replace ch1.avi with a xvid you've made and you will find that PSP Media Player its already way faster than PSPAdvance in xvid playback (at least for this preview release of PSPAdvance).
PSPAdvance is one week away from release.....and this slow performance make me think..........
Back to top
View user's profile Send private message
Dibblah



Joined: 03 Nov 2005
Posts: 13

PostPosted: Thu Nov 03, 2005 9:42 pm    Post subject: Reply with quote

To be clear, they *cannot* use the XviD codec in a commercial application, without providing source. So what they're doing is breaking the license agreement for the XviD codec.
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Thu Nov 03, 2005 9:56 pm    Post subject: Reply with quote

They are ignoring GPL and they are ignoring Lua license too!!!
Back to top
View user's profile Send private message Visit poster's website
andresilich



Joined: 09 Aug 2005
Posts: 13
Location: massachusetts

PostPosted: Thu Nov 03, 2005 10:03 pm    Post subject: Reply with quote

that software is also licensed with sony, so this should be a fun turn events if they actually ignore all this licenses agreements.


have you seen the thing, ADS in the PSP, they went there.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Shapyi



Joined: 25 Apr 2005
Posts: 95

PostPosted: Fri Nov 04, 2005 9:15 am    Post subject: Reply with quote

PSPAdvance seems to be DJSP (which he wrote), the open source psix demo, Lua and XviD compiled into one program. It seems to freeze a lot when I use it, I won't be buying it. Don't be surprised if you guys see this FFMPEG port in it.

Back on topic. How come I get all these exceptions when I play a clip in PSP Media Player after I already played one? Is there a way to fix this in code? Maybe reset a buffer or reset some variables.
Back to top
View user's profile Send private message
romhacker



Joined: 07 Feb 2005
Posts: 6

PostPosted: Fri Nov 11, 2005 8:26 am    Post subject: Reply with quote

I found it played MPEG quite well for the first 20 secs or so, then it crashed. Keep up the good work.
Back to top
View user's profile Send private message
digihoe



Joined: 14 May 2005
Posts: 108

PostPosted: Fri Nov 11, 2005 8:53 am    Post subject: Reply with quote

Yes, I have also found that it will slow down playback after a few seconds, anyone know what the problem is?

Best regards!
Back to top
View user's profile Send private message
romhacker



Joined: 07 Feb 2005
Posts: 6

PostPosted: Fri Nov 11, 2005 9:39 am    Post subject: Reply with quote

Pressing Triangle helps a lot (sets the CPU Speed to 333).
Back to top
View user's profile Send private message
dnnsmanace



Joined: 31 Oct 2005
Posts: 15

PostPosted: Mon Nov 14, 2005 2:50 pm    Post subject: Reply with quote

Seems its very close to playable... XviD that is. Im using avg 600 bitrate 2 pass. When motion gets high (higher bitrate) it goes crazy and stutters and such, but it seems to catch up when things quiet down. Otherwise the quality is amazing. Is anyone still working on this? A video I was playing (its about 20min) crashed after the first minute or so, first audio cut out then video stopped and it froze. Seems like its very close to being watchable in terms of optimization. Anyway, my 2 cents. Hope to see progress soon and you devs are amazing.
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Mon Nov 14, 2005 7:34 pm    Post subject: Reply with quote

I've got some idct optimizations working, video *only* runs at 28-30fps here on my psp :) (with the usual mpeg4 sp clip @ 480x272).
The bad side is that i've completely broken bframes (stupid me for testing only sp).
Anyway, still working on this. Full speed/stability will require some time (maybe will never get this :P), keep posting and don't worry if none answer, maybe one day you'll get a surprise ^^
Back to top
View user's profile Send private message Visit poster's website
digihoe



Joined: 14 May 2005
Posts: 108

PostPosted: Mon Nov 14, 2005 8:09 pm    Post subject: Reply with quote

Nice to see that you been able to make some idct optimizations jonny...
What bitrate are your SP clip? 1500kbs?
Is there any other way to play mp3 without using the CPU that much (wishthinking), or maybe ogg (it should be less CPU intensive, right?) can be used...?


Great to see progress, keep up the great work!

Best regards!
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Mon Nov 14, 2005 8:26 pm    Post subject: Reply with quote

the average bitrate on my tests is around 900 (you don't get more with an 1GB memstick and a 2h movie).
I can tell you nothing about the audio, i've still not added it on my benchs (there are differents libs and formats to check)
Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Wed Nov 16, 2005 8:57 am    Post subject: Reply with quote

A new bin:

http://jonny.leffe.dnsalias.com/pmp_mod/rar2/pmp_mod_0_02.rar

The idct is now done with the me too.
On a row basis, idcts are done at the same time of macroblocks decoding and motion compensation.
The remaining idcts are processed with both the cpu and the me.

I'm still experimenting different idct scheduling schemes (me sync is far from perfection).
The cache is a real nightmare when using the me.

Some numbers with my usual test clips:

avcodec_decode_video is passed from ~32fps to ~44fps

Video only is around 28-30fps (playing without any kind of sync seems quite smooth, sadly PMP seems to stutters a lot - i have to investigate on this).

Anyway... still tweaking :)


I've repacked the sources mainly to get some order on my hd:

http://jonny.leffe.dnsalias.com/pmp_mod/rar2/pmp_0_0_5_source.rar (JockyW base src, hey! "COPYING" was 2MB+ no one noticed this? :)
http://jonny.leffe.dnsalias.com/pmp_mod/rar2/pmp_mod_0_01_source.rar (my first mod, with JiniCho's suggestions included)
http://jonny.leffe.dnsalias.com/pmp_mod/rar2/pmp_mod_0_02_source.rar (my latest src)


PS:
I've done some benchs with the vfpu (on the idct), imho is still not usable.
While matrix muls are really fast, int -> float and float -> int (with the cop) kill the process (i hope someone find a way to load/write directly ints to/from the vfpu).



Mirror for the files:

http://rapidshare.de/files/7693264/pmp_0_0_5_source.rar.html
http://rapidshare.de/files/7693364/pmp_mod_0_01_source.rar.html
http://rapidshare.de/files/7693442/pmp_mod_0_02_source.rar.html
http://rapidshare.de/files/7693484/pmp_mod_0_02.rar.html
Back to top
View user's profile Send private message Visit poster's website
JiniCho



Joined: 14 Sep 2005
Posts: 18

PostPosted: Wed Nov 16, 2005 12:22 pm    Post subject: Reply with quote

Great work! it seems like it's fast enough to play fullscreen mpeg4 video for PSP.
One problem here, when i play .mpg file i see bunch of small green blocks instead of video. Maybe its because of the codec only prepare me_idct when the video is h263.
Back to top
View user's profile Send private message
dnnsmanace



Joined: 31 Oct 2005
Posts: 15

PostPosted: Wed Nov 16, 2005 1:55 pm    Post subject: Reply with quote

When loading an about 100mb avi xvid the app crashes with a "Bus error (data)." This didnt on the previous version on the same file. I can say on small samples, video is a lot smoother and audio is a lot more in sync. Keep up the progress!
Back to top
View user's profile Send private message
JiniCho



Joined: 14 Sep 2005
Posts: 18

PostPosted: Wed Nov 16, 2005 3:39 pm    Post subject: Reply with quote

Anyway, I merged jonny's optimization to my latest source code.

here's the link

http://mfiles.naver.net/9547a07a6e3158ebc199/data11/2005/11/16/23/PMP006.part01.rar
http://mfiles.naver.net/68ba5d8793cca5133f5c/data11/2005/11/16/161/PMP006.part02.rar
http://mfiles.naver.net/9a48af75613e57e4c9a9/data11/2005/11/16/28/PMP006.part03.rar

right click on the link and choose "Save As.."

here's very simple description.

PSP Media Player ver. 0.0.6

- Including jonny's idct optimization.(many thanks to jonny)
- doing overlay using gu. I refferenced the document from http://www.multimedia.cx/yuv-3d-rgb.txt.
- .mp4 playable.(with sound)
- you can use your favorate true type font. locate "default.ttf" into "PMP/font" directory.(it's buggy)
Back to top
View user's profile Send private message
Itaintrite



Joined: 15 Jul 2005
Posts: 54

PostPosted: Wed Nov 16, 2005 5:12 pm    Post subject: Reply with quote

Broken links JiniCho
Back to top
View user's profile Send private message
JiniCho



Joined: 14 Sep 2005
Posts: 18

PostPosted: Wed Nov 16, 2005 5:26 pm    Post subject: Reply with quote

just right click on the link and choose 'save as' not left click.
Back to top
View user's profile Send private message
Itaintrite



Joined: 15 Jul 2005
Posts: 54

PostPosted: Wed Nov 16, 2005 5:31 pm    Post subject: Reply with quote

Nevermind, it was Firefox's fault. I tried it with IE and worked. THanks
Back to top
View user's profile Send private message
JiniCho



Joined: 14 Sep 2005
Posts: 18

PostPosted: Wed Nov 16, 2005 6:21 pm    Post subject: Reply with quote

I missed something in the source code.

find LANGUAGE_KOREAN and change it to LANGUAGE_ENGLISH in ffplay_resample/ffplay.c

(in the same file)
make init_ttf_font() function like below

int init_ttf_font(char *filename, font_info *font, int ptsize)
{
int result = 0;

if (filename)
{
strcpy(font->filename, filename);
if (TTF_Init() >= 0)
{
font->ptsize = ptsize;
font->renderstyle = TTF_STYLE_NORMAL;
font->rendersolid = 1;
font->font = TTF_OpenFont(filename, font->ptsize);
if (font->font)
{
TTF_SetFontStyle(font->font, font->renderstyle);
result = 1;
}
}
}
return result;
}

and in the player_main(), insert one line like below...

int player_main(SceSize args, void* argp)
{
media_type type;
const char *txt;

// pspDebugScreenInit();
// SetupCallbacks();
// pspDebugInstallErrorHandler(MyExceptionHandler);

if (use_ttf_font)
{
if (!init_ttf_font(DEFAULT_FONTNAME, &my_font, DEFAULT_PTSIZE))
{
if (!init_font())
{
printf("Failed to initialize font!!!");
return 1;
}
use_ttf_font = 0; <== insert this line
ttf_failed = 1;
}
}

you have to do that if you don't use ttf stuff.
Sorry for the trouble...

Because of my blog's upload limit I can't post fixed source code.
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Wed Nov 16, 2005 6:55 pm    Post subject: Reply with quote

the jonny version plays my full resoltion avi file good, with the audio synchronized and this time, with no glitches.
the jinicho version has more problems with the synchronization, but it plays mp4 (320x240 i've tried) with sound very well (and synchronized).

oh, i hope that johny integrates the mp4 audio in his next version :) Both of you are doing a great work to let us have what $ony don't want, see full resolutions videos in the psp.
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Wed Nov 16, 2005 7:00 pm    Post subject: Reply with quote

Many thanks for the merge (is there a place where i can check for your updates?).
Really curious to check the new csc :) (sadly i'm not at home now)

Quote:

Maybe its because of the codec only prepare me_idct when the video is h263.

Yep it's true, i'll fix this soon.

PS:
you could use http://rapidshare.de to upload files

EDIT:
i've uploaded your files here:
http://rapidshare.de/files/7713059/PMP006.part01.rar.html
http://rapidshare.de/files/7713138/PMP006.part02.rar.html
http://rapidshare.de/files/7713159/PMP006.part03.rar.html
Back to top
View user's profile Send private message Visit poster's website
dnnsmanace



Joined: 31 Oct 2005
Posts: 15

PostPosted: Thu Nov 17, 2005 8:06 am    Post subject: Reply with quote

Could someone compile JiniCho's version with the fix please? Thanks.
Back to top
View user's profile Send private message
digihoe



Joined: 14 May 2005
Posts: 108

PostPosted: Thu Nov 17, 2005 8:44 am    Post subject: Reply with quote

dnnsmanace wrote:
Could someone compile JiniCho's version with the fix please? Thanks.


Maybe when jonny fixes the me_idct for other codecs than h263 it can be complied...?

Also very good work guys, keep it up!
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Thu Nov 17, 2005 9:28 am    Post subject: Reply with quote

Latest JiniCho's bin+src:

http://rapidshare.de/files/7738622/pmp_0_0_6.rar.html
http://rapidshare.de/files/7738585/pmp_0_0_6_source.rar.html
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 4 of 9

 
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