 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
csuper
Joined: 03 Jan 2006 Posts: 103
|
Posted: Tue Feb 28, 2006 4:03 pm Post subject: |
|
|
| Change the fps ! => 24 or 25. |
|
| Back to top |
|
 |
pegasus
Joined: 17 Jan 2006 Posts: 61
|
Posted: Tue Feb 28, 2006 10:42 pm Post subject: hello |
|
|
still good on 23fps....
hey any1 knows what settings jonny uses in his serenity trailer?
that trailer is so fluid and smooth, you wont see any pixel (pixelated) at all
its like pixel doesnt exists! |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Tue Feb 28, 2006 10:48 pm Post subject: Re: about sceIoDevctl() |
|
|
| karnare wrote: | I believe that the function sceIoDevctl() is much more than just getting the free space.You can try to remove it, and then you will find the .pmp which is writed to MS right now via USB cann`t be played any more.
It seems that about 30k bytes(maybe 32k, one cluster?) at the head of the file can be read. WHY? |
That really shouldn't happen, because the sceIoDevctl() really only sends the command to the MS Device to return the free and total space in a buffer (malloc's original M4.02 also works and doesn't have the sceIoDevCtl function either). So it must be another reason why your upload to the MS will fail. |
|
| Back to top |
|
 |
karnare
Joined: 16 Feb 2006 Posts: 17
|
Posted: Wed Mar 01, 2006 1:01 am Post subject: Re: about sceIoDevctl() |
|
|
| Raphael wrote: |
That really shouldn't happen, because the sceIoDevctl() really only sends the command to the MS Device to return the free and total space in a buffer (malloc's original M4.02 also works and doesn't have the sceIoDevCtl function either). So it must be another reason why your upload to the MS will fail. |
Have you tried it? I have tested it in three psp machines, and the fact is there. Sometimes it will be Ok,but after *formatting* the MS and try again, it would be passed any more.Even if I used the USB sample in SDK, the problem is the same.
And I guess when the program starts, it will save the FAT in its cache. So the new file could not be read correctly.Will it possible?
Or will there be differences between our machines? |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Wed Mar 01, 2006 2:52 am Post subject: |
|
|
| Sounds more like your MS is bricked. Test with another MS to check for that |
|
| Back to top |
|
 |
happycoding
Joined: 22 Jan 2006 Posts: 31
|
Posted: Wed Mar 01, 2006 12:33 pm Post subject: Re: about sceIoDevctl() |
|
|
| Quote: | | malloc's original M4.02 also works and doesn't have the sceIoDevCtl function either |
I can not find malloc's original M4.02, but http://www.alex-berl.de/download/PMPMOD_1_01_M4g2_argandona_src.zip has sceIoDevCtl.
The key problem is: When you *format* your MS by SONY PSP's format function, and click "start" to fresh .pmp file list. you may not play the new uploaded (thru USB from PC) .pmp files if you don't use sceIoDevCtl.
Yes, it is wondering why it works but after SONY PSP's format it fails. But the fact is it! And it costs me a lot of time to solve the strange problem...
I also tried to use Windows XP to format MS (FAT16 or FAT32), and the result is the same with SONY PSP format. My MS is "SONY Memory Stick Pro Duo High Speed 1GB MagicGate,MSX-M1GN", and PSP version is, of course, 1.5.
Any suggestion is welcome and appreciated! |
|
| Back to top |
|
 |
jbruns
Joined: 28 Feb 2006 Posts: 3
|
Posted: Thu Mar 02, 2006 3:29 am Post subject: |
|
|
| csuper wrote: | | Change the fps ! => 24 or 25. |
WIll that mess up the video since the original xvid is 29fps? |
|
| Back to top |
|
 |
csuper
Joined: 03 Jan 2006 Posts: 103
|
Posted: Thu Mar 02, 2006 8:05 am Post subject: |
|
|
| jbruns wrote: | | csuper wrote: | | Change the fps ! => 24 or 25. |
WIll that mess up the video since the original xvid is 29fps? |
Nope if you use "mencoder"...
and with the front end call : AVI2PMP for example...
csuper. |
|
| Back to top |
|
 |
jbruns
Joined: 28 Feb 2006 Posts: 3
|
Posted: Thu Mar 02, 2006 2:20 pm Post subject: |
|
|
| I tried with AVI2PMP. I found at the above settings with a change in fps to 25 or 23 the video became choppy. However at 26.5 it was smooth. I guess ill be sticking with 26.5fps then. Thanks! |
|
| Back to top |
|
 |
AtaruZ
Joined: 09 Mar 2006 Posts: 14 Location: Italy
|
Posted: Thu Mar 09, 2006 9:25 am Post subject: A little mod to improve precision... |
|
|
Hello! This is my first POST here!
Tonight I've made a little modification to the pmpmod.c file in the PMPMOD_1_02_M4g3_argandona_src release in order to obtain a more precise file length in the GUI. It happens that, if a file has 23.97 fps, the length calculation is made with the integer part (23) resulting in an imprecise length shown in the GUI. I've also added the visualization (if it exists) of the resume position near the file size.
Here's a picture:
Here's the diff file:
| Code: |
--- pmpmod.c.original 2006-03-09 00:02:55.000000000 +0100
+++ pmpmod.c 2006-03-08 23:47:28.000000000 +0100
@@ -454,7 +454,7 @@ int exec_pu;
void exitUSBdrivers(void)
{
- sceUsbDeactivate();
+ sceUsbDeactivate(0x1c8);
// FIXME: last arg should be NULL (wrong prototype in pspsdk?)
sceUsbStop("USBStor_Driver",0,0);
@@ -649,7 +649,10 @@ void main_loop()
int top_entry = 0;
int maximum_number_of_rows = 14;
int starting_row = 7;
- unsigned int vwidth = 0, vheight = 0, vrate = 0, vframes = 0; // Video Information
+ unsigned int vwidth = 0, vheight = 0, vframes = 0, vpos = 0; // Video Information
+ // AtaruZ POS mod: handle vrate as float for sharp length & POS calculation later
+ float vrate = 0;
+
scrollpos = 0;
#ifndef USE_SKIN
@@ -729,12 +732,29 @@ void main_loop()
vwidth = pmp_struc->width;
vheight = pmp_struc->height;
if (pmp_struc->scale)
- vrate = pmp_struc->rate / pmp_struc->scale;
+ // AtaruZ POS mod: save the sharp fps rate for sharp length & POS calculation later
+ vrate = (float)pmp_struc->rate / (float)pmp_struc->scale;
else
- vrate = pmp_struc->rate;
+ // AtaruZ POS mod: save the sharp fps rate for sharp length & POS calculation later
+ vrate = (float)pmp_struc->rate;
vframes = pmp_struc->number_of_frames;
+
}
free_64(pmp_struc);
+
+ // AtaruZ mod start: try to determine resume percentage
+ char resume_filename[1024];
+
+ strcpy( resume_filename, sorted_files[selected_entry] );
+ strcpy( resume_filename + strlen(resume_filename), ".POS" );
+
+ SceUID fd;
+ if ((fd = sceIoOpen(resume_filename, PSP_O_RDONLY, 0777)))
+ {
+ sceIoRead( fd, &vpos, sizeof(int) );
+ sceIoClose( fd );
+ };
+ // AtaruZ mod end
}
@@ -928,7 +948,14 @@ void main_loop()
// Display Video Information
if (vwidth && vheight && vrate && vframes) {
pspDebugScreenSetXY(2, starting_row + maximum_number_of_rows + 7);
- pspDebugScreenPrintf("%ix%i %ifps, %i:%02i:%02i (%i%s)", vwidth, vheight, vrate, (vframes/vrate/3600),(vframes/vrate/60)%60, (vframes/vrate)%60, sel_size, sel_unit);
+ // AtaruZ POS mod: let's calculate file lenght more precisely!
+ pspDebugScreenPrintf("%ix%i %ffps, %i:%02i:%02i (%i%s)", vwidth, vheight, vrate, (int)(vframes/vrate/3600), (int)(vframes/vrate/60)%60, (int)(vframes/vrate)%60, sel_size, sel_unit);
+ // AtaruZ POS mod begin
+ if (vpos != 0) {
+ // Calculate saved position precisely with the float vrate value and display it
+ pspDebugScreenPrintf(" POS: %i:%02i:%02i", (int)(vpos/vrate/3600),(int)(vpos/vrate/60)%60, (int)(vpos/vrate)%60);
+ }
+ // AtaruZ POS mod finish
}
// Display Playlist Information
|
Notice also the
| Code: | | sceUsbDeactivate(0x1c8); |
line as from latest pspsdk...
Hope this to be useful!
Best regards!
AtaruZ |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Fri Mar 10, 2006 9:17 am Post subject: |
|
|
Nice, I'll add that to my current source tree, the POS information is a good idea :) However, I'd clip the float to 2 decimals, since 23.970000 looks rather weird than informative.
Hope to see more from you though ;)
BTW: Just to let you know on the current status of my work: I'm currently working on getting multilanguage support for the subtitle files (meaning languages based on ASCII charset work already), which really is much more problematic than I ever would have imagined (dough). But after looking over some source of VLC and MPC I finally have some idea of how to do it.
Before that I was stuck for nearly two weeks now on getting the font rendering done fast and correctly (some probably noticed my other thread on 4bit textures), yet it's still only 90% the way I wanted it to be (PSP GU is really picky).
And now I'm also running short on time, because I'm changing my subject on studies from mathematics to computer sciences and will have to move, so the next weeks will get stressy. I hope I can finish the subtitles before I run completely out of time (I will try my best), but if that happens I'll drop my unfinished work to malloc or someone other interested so he can finish it maybe.
Cheers,
Raphael |
|
| Back to top |
|
 |
AtaruZ
Joined: 09 Mar 2006 Posts: 14 Location: Italy
|
Posted: Fri Mar 10, 2006 10:17 am Post subject: |
|
|
Hi Raphael!
Take it easy, no need to rush.. Good things need time and patience!
I'm glad you like my little work on the GUI, I wish I was good enough to give you a hand with something thougher!
Here's the mod for the 2 decimals (easy!)
| Code: |
--- pmpmod.c.20060309 2006-03-10 01:24:15.000000000 +0100
+++ pmpmod.c 2006-03-10 01:24:43.000000000 +0100
@@ -949,7 +949,7 @@ void main_loop()
if (vwidth && vheight && vrate && vframes) {
pspDebugScreenSetXY(2, starting_row + maximum_number_of_rows + 7);
// AtaruZ POS mod: let's calculate file lenght more precisely!
- pspDebugScreenPrintf("%ix%i %ffps, %i:%02i:%02i (%i%s)", vwidth, vheight, vrate, (int)(vframes/vrate/3600), (int)(vframes/vrate/60)%60, (int)(vframes/vrate)%60, sel_size, sel_unit);
+ pspDebugScreenPrintf("%ix%i %.2ffps, %i:%02i:%02i (%i%s)", vwidth, vheight, vrate, (int)(vframes/vrate/3600), (int)(vframes/vrate/60)%60, (int)(vframes/vrate)%60, sel_size, sel_unit);
// AtaruZ POS mod begin
if (vpos != 0) {
// Calculate saved position precisely with the float vrate value and display it
|
Any chance to use a SVN or CVS server to share code?
Best regards!
AtaruZ |
|
| Back to top |
|
 |
synch22
Joined: 14 Mar 2006 Posts: 3
|
Posted: Thu Mar 16, 2006 11:58 am Post subject: |
|
|
| how do i install these mods to my pmp player?? I have downloaded the files and tried to use the folders but it did not update the player. Is there other stuff to do?? |
|
| Back to top |
|
 |
gmk
Joined: 19 Jan 2006 Posts: 6
|
Posted: Thu Mar 16, 2006 5:10 pm Post subject: |
|
|
| synch22 wrote: | | how do i install these mods to my pmp player?? I have downloaded the files and tried to use the folders but it did not update the player. Is there other stuff to do?? |
Hi synch22,
reveine give alllready the answer:
|
|
| Back to top |
|
 |
AtaruZ
Joined: 09 Mar 2006 Posts: 14 Location: Italy
|
Posted: Thu Mar 16, 2006 7:46 pm Post subject: PMPMOD_1_02_M4g3_argandona_AtaruZ_20060316 |
|
|
| synch22 wrote: | | how do i install these mods to my pmp player?? I have downloaded the files and tried to use the folders but it did not update the player. Is there other stuff to do?? |
If you mean to install my mod (POS & more precise length calc) you have to re-build PMP-MOD fter patching the source code.
Anyway, if Raphael agrees, I can post the modded version right here and make it available to the community...
Waiting for Raphael's reply!
*** UPDATE ***
OK, Raphael agrees! :)
Here's the compiled version in kxploit format (PMPMOD & PMPMOD%):
http://lnx.mangazone.org/psp/PMPMOD_1_02_M4g3_argandona_AtaruZ_20060316.tar.bz2
The diff:
| Code: |
--- pmpmod.c.original 2006-03-09 00:02:55.000000000 +0100
+++ pmpmod.c 2006-03-11 11:41:30.000000000 +0100
@@ -454,7 +454,7 @@ int exec_pu;
void exitUSBdrivers(void)
{
- sceUsbDeactivate();
+ sceUsbDeactivate(0x1c8);
// FIXME: last arg should be NULL (wrong prototype in pspsdk?)
sceUsbStop("USBStor_Driver",0,0);
@@ -649,7 +649,10 @@ void main_loop()
int top_entry = 0;
int maximum_number_of_rows = 14;
int starting_row = 7;
- unsigned int vwidth = 0, vheight = 0, vrate = 0, vframes = 0; // Video Information
+ unsigned int vwidth = 0, vheight = 0, vframes = 0, vpos = 0; // Video Information
+ // AtaruZ POS mod: handle vrate as float for sharp length & POS calculation later
+ float vrate = 0;
+
scrollpos = 0;
#ifndef USE_SKIN
@@ -729,12 +732,29 @@ void main_loop()
vwidth = pmp_struc->width;
vheight = pmp_struc->height;
if (pmp_struc->scale)
- vrate = pmp_struc->rate / pmp_struc->scale;
+ // AtaruZ POS mod: save the sharp fps rate for sharp length & POS calculation later
+ vrate = (float)pmp_struc->rate / (float)pmp_struc->scale;
else
- vrate = pmp_struc->rate;
+ // AtaruZ POS mod: save the sharp fps rate for sharp length & POS calculation later
+ vrate = (float)pmp_struc->rate;
vframes = pmp_struc->number_of_frames;
+
}
free_64(pmp_struc);
+
+ // AtaruZ mod start: try to determine resume percentage
+ char resume_filename[1024];
+
+ strcpy( resume_filename, sorted_files[selected_entry] );
+ strcpy( resume_filename + strlen(resume_filename), ".POS" );
+
+ SceUID fd;
+ if ((fd = sceIoOpen(resume_filename, PSP_O_RDONLY, 0777)))
+ {
+ sceIoRead( fd, &vpos, sizeof(int) );
+ sceIoClose( fd );
+ };
+ // AtaruZ mod end
}
@@ -928,7 +948,14 @@ void main_loop()
// Display Video Information
if (vwidth && vheight && vrate && vframes) {
pspDebugScreenSetXY(2, starting_row + maximum_number_of_rows + 7);
- pspDebugScreenPrintf("%ix%i %ifps, %i:%02i:%02i (%i%s)", vwidth, vheight, vrate, (vframes/vrate/3600),(vframes/vrate/60)%60, (vframes/vrate)%60, sel_size, sel_unit);
+ // AtaruZ POS mod: let's calculate file lenght more precisely!
+ pspDebugScreenPrintf("%ix%i %.2ffps, %i:%02i:%02i (%i%s)", vwidth, vheight, vrate, (int)(vframes/vrate/3600), (int)(vframes/vrate/60)%60, (int)(vframes/vrate)%60, sel_size, sel_unit);
+ // AtaruZ POS mod begin
+ if (vpos != 0) {
+ // Calculate saved position precisely with the float vrate value and display it
+ pspDebugScreenPrintf(" POS: %i:%02i:%02i", (int)(vpos/vrate/3600),(int)(vpos/vrate/60)%60, (int)(vpos/vrate)%60);
+ }
+ // AtaruZ POS mod finish
}
// Display Playlist Information
|
For lazy boys, here's a direct link to the diff file:
http://lnx.mangazone.org/psp/AtaruZ_POS_mod_20060316.diff
Have fun!
AtaruZ |
|
| Back to top |
|
 |
pegasus
Joined: 17 Jan 2006 Posts: 61
|
Posted: Fri Mar 17, 2006 2:23 pm Post subject: hello |
|
|
| good work... im still looking forward for file deletion when you press the select button.. miemt11 already done this but he doesnt put a confirmation dialog.. and it sucks. I accidentaly deleted my 800mb movie on the spot! and it took me 18mins again to transfer (1.1USB) |
|
| Back to top |
|
 |
AtaruZ
Joined: 09 Mar 2006 Posts: 14 Location: Italy
|
Posted: Fri Mar 17, 2006 8:35 pm Post subject: Re: hello |
|
|
| pegasus wrote: | | good work... im still looking forward for file deletion when you press the select button.. miemt11 already done this but he doesnt put a confirmation dialog.. and it sucks. I accidentaly deleted my 800mb movie on the spot! and it took me 18mins again to transfer (1.1USB) |
Maybe this could be next AtaruZ's mod!
Stay tuned!
AtaruZ |
|
| Back to top |
|
 |
pegasus
Joined: 17 Jan 2006 Posts: 61
|
Posted: Sat Mar 18, 2006 7:11 pm Post subject: hello |
|
|
| ok i'm gonna wait for that tnx! |
|
| Back to top |
|
 |
therock003
Joined: 23 Sep 2005 Posts: 96
|
Posted: Sat Mar 25, 2006 12:59 am Post subject: |
|
|
What's new in tha atarazu version?Just the decimal places?I think that so many zeros look ridiculus (no offence).I gues the best thing is to be no zeros at all.
So if movie is 24 or 25 show 24 or 25 and if it is 23.976 r 29.97 show 23.976 and 29.97.
I think the previous shows just 23 or 29.So y not get rid of the zeros? |
|
| Back to top |
|
 |
pegasus
Joined: 17 Jan 2006 Posts: 61
|
Posted: Sat Mar 25, 2006 2:04 am Post subject: hello |
|
|
| just try it.. you got it wrong dude |
|
| Back to top |
|
 |
therock003
Joined: 23 Sep 2005 Posts: 96
|
Posted: Mon Mar 27, 2006 6:43 am Post subject: |
|
|
| Ok i will,but for the record what's added? |
|
| Back to top |
|
 |
pegasus
Joined: 17 Jan 2006 Posts: 61
|
Posted: Mon Mar 27, 2006 4:01 pm Post subject: hello |
|
|
POS & more precise length calc.
the duration calc is made on the integer part so its imprecise, he now manage to correct it..
he also added the POS resume position after the fps (if it exist)
also the fps is set only to 2 decimals
ok try it now its good..
XD |
|
| Back to top |
|
 |
therock003
Joined: 23 Sep 2005 Posts: 96
|
Posted: Tue Mar 28, 2006 1:58 am Post subject: |
|
|
| I tried it,good job,thanx for the info pegasus. |
|
| Back to top |
|
 |
AtaruZ
Joined: 09 Mar 2006 Posts: 14 Location: Italy
|
Posted: Tue Mar 28, 2006 9:46 am Post subject: |
|
|
| therock003 wrote: | | I tried it,good job,thanx for the info pegasus. |
Thanks! ;)
AtaruZ |
|
| Back to top |
|
 |
Eingang
Joined: 04 Jan 2006 Posts: 59
|
Posted: Mon Apr 03, 2006 11:11 am Post subject: |
|
|
| Malloc, could you pleeeeaaasse add luminosity and the other stuff on to new 2.00 ??? |
|
| Back to top |
|
 |
pegasus
Joined: 17 Jan 2006 Posts: 61
|
Posted: Wed Apr 05, 2006 3:57 am Post subject: hello |
|
|
We should just wait until Raphael or sum1 incorporates it
Last edited by pegasus on Wed Apr 05, 2006 4:02 am; edited 1 time in total |
|
| Back to top |
|
 |
Wil
Joined: 23 Feb 2005 Posts: 15 Location: Las Vegas
|
Posted: Wed Apr 05, 2006 4:01 am Post subject: |
|
|
The guy above said he wishes for malloc to update the new PMP MOD Version 2.00 and include his updates which are 'lumonisity' and stuff -- not that he wants PMP Mod to work on Firmware 2.00. _________________ Wil |
|
| Back to top |
|
 |
pegasus
Joined: 17 Jan 2006 Posts: 61
|
Posted: Wed Apr 05, 2006 3:08 pm Post subject: hello |
|
|
yes i'm fully aware of that...
ok i'll rephrase my post
Eingang wants to merge jonny's 2.0 pmp and mod from PMPMOD_1_02_M4g3_argandona_AtaruZ_20060316
as this topic is all about modding jonny's work and not some firmware stuff
ok what do u say.. |
|
| Back to top |
|
 |
TestType
Joined: 13 Dec 2005 Posts: 23 Location: Iceland
|
Posted: Thu Apr 06, 2006 9:49 pm Post subject: |
|
|
Malloc / Ralph, where art thou?
I'm also hoping an issue I saw introduced in the latest mod mod version resolved when you guys get around to releasing the v2.0 edition of it. Most of the time when I press start to get the OSD up the video jumps a frame(s) backwards (or forward, can't remember which) for a split second. Playback is not affected in any way but it is a rather jarring and spasmic looking effect. I have not seen anybody mention it but I find it hard to believe I'm the only one (unless my 1.0 firmware is to blame).
Thanks for all your efforts guys, really like your modded version of Jonny's mod :) _________________ PSP: Japanese Firmware 1.0 :: 1gb SanDisk Memory Stick
Last edited by TestType on Sun Apr 09, 2006 6:43 am; edited 1 time in total |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Sun Apr 09, 2006 3:23 am Post subject: |
|
|
Hi guys,
sorry to let you wait so long, but I finally moved to my new appartement last weekend so I had little time for anything dev related, and last but not least, I still don't have internet there yet, because of the f***ing-lame-pink-T telephone company here in germany. This weekend I'm at my girlfriends house, so I was able to finally take a look here to write this and read my mails, so I didn't know of jonnys 2.0 up to now.
I'll download his version and take it home on USB stick on tuesday and start working on a merge and then try to upload everything from university if I find a possibility - that is unless someone else makes the merge until then AND if I manage to make myself comfortable with LINUX and ftp until then.
greets,
Raphael |
|
| Back to top |
|
 |
|
|
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
|