PMP Mod v2.02 & PMP Mod AVC v1.02

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Itaintrite
Posts: 54
Joined: Fri Jul 15, 2005 12:32 pm

Post by Itaintrite »

artik wrote:
Itaintrite wrote:@artik: do I use PAL for all videos? Even the NTSC ones?
in fact all my tests where better in pal.
In the video world : NTSC = Never The Same Color

hehe ;)
Great. Thanks for the tip.
AZImmortal
Posts: 14
Joined: Thu Jan 05, 2006 4:16 am

Post by AZImmortal »

jonny wrote:maybe i like more bookmark instead of always resume (still thinking about this)
go to time-frame will probably never be here :) (i'll probably add a fast seek with the analog controller + of course some sort of time indicator and timeline)
custom thumbnails ... better to fly over this request :P :)
I think a good button config would be:
left/right = same as now (rw/ff)
up = pause/play
down = stop
left/right triggers = jump backward/forward

and the face buttons can toggle different things like showing time elapsed/remaining, enable/disable resume, bookmark, etc, or whatever you decide to implement.
therock003 wrote:Jonny what can be done with the order the files appear?Can't they be sorted by the user or at least appear in alphabetical order?
I was wondering the same thing about the file order.

jonny: Is folder support possibly on the "to do" list? And would it also be possible to show the volume level?
26bboy
Posts: 6
Joined: Fri Jan 06, 2006 2:58 pm

Post by 26bboy »

If anyone wants to get crazy skipping video (like the spiderman trailer johnny posted earlier but far worse) to see what pmp mod can handle encode your xvid videos with quarter pixel ticked.

I get choppy video and audio at just 300kbps! So dont enable this, i found this out while seeing what different xvid settings i can use.

What i think would be great would be to see this implemented in psp-oss or something similar so we have an operating system which uses this as its video player.
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

the code to do this is quite simple:

Code: Select all

char *static_init()
	{
	scePowerSetClockFrequency(333, 333, 166);
	scePowerLock(0);


	sceCtrlSetSamplingCycle(0);
	sceCtrlSetSamplingMode(PSP_CTRL_MODE_ANALOG);


	av_register_all();


	if (me_struct_init() == 0)
		{
		return("static_init: me_struct_init failed");
		}


	if (me_idct_p_malloc() == 0)
		{
		return("static_init: me_idct_p_malloc failed");
		}


	return(0);
	}


int main(int unused0, char *unused1[])
	{
	pspDebugScreenInit();

	if (static_init() == 0)
		{
		char *result = pmp_play("yourfile.pmp");
		if (result != 0)
			{
			// show the error
			}
		}


	sceKernelExitGame();
	return(0);
	}

plus there is a need to reduce max buffer allocation in "pmp_decode.h", depending on how base memory eat the caller
malloc
Posts: 23
Joined: Thu Apr 28, 2005 2:40 am

Post by malloc »

I've updated the small mod I posted earlier. ** edited ***

- Left and Right trigger can be used to adjust the luminosity during playback (it's usefull to add a bit of luminosity to remove the bad ghosting effect of the LCD screen in dark scenes)
- if START is pressed during play, it goes to the start of the video.
- if the .PMP.POS file is selected in the file selector, it launches the .PMP directly


App :
http://rapidshare.de/files/10585949/pmpmod.zip.html

Src :
http://rapidshare.de/files/10586040/pmpmod_src.zip.html

Jonny, I'll have some time to do some PSP dev, if you have a todo list and want me to do some of the things to help you, PM me ;)[/b]
Last edited by malloc on Sun Jan 08, 2006 1:44 am, edited 1 time in total.
artik
Posts: 37
Joined: Thu Dec 01, 2005 2:04 am

Post by artik »

malloc wrote:Jonny, I'll have some time to do some PSP dev, if you have a todo list and want me to do some of the things to help you, PM me ;)
Woaw, one of the first help in the psp scene i saw. what about using CVS ? can create account if you need.


Nice malloc
daume
Posts: 6
Joined: Thu Jan 05, 2006 3:57 am

Post by daume »

great job malloc !
thanks for useful options

cya
++ all
imutau
Posts: 15
Joined: Thu Dec 15, 2005 4:37 am

Post by imutau »

malloc wrote:I've updated the small mod I posted earlier.

- if START is pressed during play, it goes to the start of the video.
- if the .PMP.POS file is selected in the file selector, it launches the .PMP directly

App :
http://rapidshare.de/files/10574097/pmpmod.zip.html

Src :
http://rapidshare.de/files/10574114/pmpmod_src.zip.html

Jonny, I'll have some time to do some PSP dev, if you have a todo list and want me to do some of the things to help you, PM me ;)
Wow I'm liking this mod alot. Thanks malloc for the update this thing is just getting better and better.

I think the analog stick would be better as a FF/REW tool and maybe use the Left and right buttons or the shoulder buttons as a position skip like say every 1 min or 3 min or 5 min skip or 2x/4x/8x FF/REW just a suggestion.

As always great stuff. Thanks to all again.
Dnim
Posts: 12
Joined: Fri Jan 06, 2006 6:29 am

Post by Dnim »

muxer fails with:

Code: Select all

Processing video ...
dwTotalFrames: 5400
dwWidth:       480
dwHeight:      272
dwScale:       400000
dwRate:        10000000
movi:          32528

Status: [invalid dwTotalFrames]

Code: Select all

Processing video ...
475 / 501
dwTotalFrames: 501
dwWidth:       480
dwHeight:      272
dwScale:       400000
dwRate:        10000000
movi:          32528

Status: [invalid dwTotalFrames]
-when does "invalid dwTotalFrames" get triggered?
(i shall look into the source when I get more time)

---------------------------
codec Xvid
Q4 (type h.263), start frame0, begin with key frame, SP, unchecked(AQ,IE,QP,GMC,B-VOPs), VHQ-off, Use chroma motion, no turbo, FrameDrop=0, I-frame interval 300, Trellis quantization
commercial encoder (have not had problems with it until now)
tested with "non-compatible indexing" DS compatible (AVI2 only) and with VFW compatible indexing (avi1/2 compatible)

of course with 3GP_converter it had no problem
Last edited by Dnim on Sun Jan 08, 2006 4:25 am, edited 4 times in total.
LVX
k0nan
Posts: 36
Joined: Tue Jan 03, 2006 12:43 pm

Post by k0nan »

Jonny, awesome player! So far out of my encodes and all the others I've downloaded from this thread, Spiderman 2 still looks the most amazing. What was the exact encoder, codec, and settings you used?
zshadow
Posts: 42
Joined: Mon Dec 26, 2005 5:36 am

Post by zshadow »

therock003 wrote:artik where can i find the profile you're tslking about?

zshadow

do they play fine?Cause 1900 is some serious bitrate!
Yep, it plays perfect.
Sorted
Posts: 33
Joined: Fri Jan 06, 2006 4:46 am

Post by Sorted »

Jonny, awesome player! So far out of my encodes and all the others I've downloaded from this thread, Spiderman 2 still looks the most amazing. What was the exact encoder, codec, and settings you used?
I did a Sin City encode which I would say matches the Spiderman one.

It depends on your Source for quality i would think.

Mind you i would like to know his exact settings :)

This whole thing gets better everyday, encodes are quite easy once you get the hang of it and the NEW PMP mod whereby you can start where u left off is great as well

TOP WORK COMPUTER BOFFIN PEEPS INVOLVED!!
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

@Dnim:
when does "invalid dwTotalFrames" get triggered?
when the number of frames in the header doesn't match the frames found in the file.
could be a not fully valid file.
try to check it with virtualdub (video -> ~scan for errors menu)
this could also happen with large files (maybe 1-2 GB files - still not managed to get a serious test since the majority have a 1GB mem stick right now)
Cause 1900 is some serious bitrate!
i've told this at the time of the demo, i was pushing 1800-2000 kbps with no problems
in some recent tests i was getting stuttering only with scenes with a much higher bitrate



sp2 is encoded using this simple avisynth script:

directshowsource("Spider-Man 2 - Trailer.avi")
lanczosresize(480,272)


the original avi is 608x336 and is not perfect (little blocking present in the pmp, was also present in the source)
the avi gets decoded via ffdshow, with no postprocessing (iirc)

all is encoded with vdub, latest xvid, default options (so quant=4) but no bframes


maybe many of you are using clips that gets decoded with divx with film effect enabled (this waste compressibility of the movie)
Dnim
Posts: 12
Joined: Fri Jan 06, 2006 6:29 am

Post by Dnim »

@jonny:

scanned with VirtualDub...
0-bad frames
0-frames good but undecodable

otherwise VD reports the same number of frames as the muxer.

the muxer handles the error immediately after start, before processing frames (as far as I can tell)

(the files are quite small, it happens even with a few hundred frames)

could this be the problem?:
Image
LVX
NyNex
Posts: 13
Joined: Sun Jan 08, 2006 7:16 am

audiojumping

Post by NyNex »

Hi!

I would like to say that your PMP is amazing.

I have been making pmp videos to probe audiojumping because of the fact that i am a 4GB datel hdd owner (spiderman trailer sometimes jump on hdd, not on memory stick).

I have selected Matrix to make these probes. The beginning of the film, when Trinity is talking by telephone with Cypher and there are a lot of green numbers changing on screen, is a good test for PMP. I have noticed audiojumping (even on memory stick) using bitrates from 350Kbps (lower still not probed) and audio from 56kbps. xvid (not GMC,QPEL) and divx codecs. Resolution 480x272. Ripped from original DVD using GKnot.

Thank you for this app.
Last edited by NyNex on Sun Jan 08, 2006 7:55 am, edited 1 time in total.
User avatar
Itaintrite
Posts: 54
Joined: Fri Jul 15, 2005 12:32 pm

Post by Itaintrite »

Can somebody upload malloc's updated mod to a different host please? I've exceeded rapidshare's limit for today (a measly 35mb) and I can't dl for another day. I'll even host the file on my webhost if somebody sends it to me. THanks.
gcmospeada
Posts: 4
Joined: Thu Jan 05, 2006 2:02 pm

Post by gcmospeada »

malloc:

is it possible to do a fast foward? or play 16x? or a 2minute jump into the future of the video?
Dnim
Posts: 12
Joined: Fri Jan 06, 2006 6:29 am

Post by Dnim »

@malloc/jonny:

the POS needs resetting after the video finishes :)

and maybe it will be a good idea to start the video from last position only if you choose .POS file, and from the very start if you choose the .PMP (so you can have a choice to start from the beginning)
and file-list update on exit video (by "end" or choice) is a good idea...

cheers
LVX
MalumEnSe
Posts: 5
Joined: Fri May 20, 2005 3:41 pm

Post by MalumEnSe »

Itaintrite wrote:Can somebody upload malloc's updated mod to a different host please? I've exceeded rapidshare's limit for today (a measly 35mb) and I can't dl for another day. I'll even host the file on my webhost if somebody sends it to me. THanks.
Ask and ye shall receive - we've mirrored the file on PSPUpdates. Great work Malloc, and Jonny as well - I love where this program is going!! :)
User avatar
GiBBz
Posts: 19
Joined: Thu Nov 17, 2005 10:02 pm

Post by GiBBz »

I don't mean to be the bearer of bad news, but i have a clip that crashes every time in mallocs version same frame everytime. yet it plays fine on Jonny's, i would upload the video but it has a X rating, it is pornographic.

Let me know if u want the clip its 2mb, and recreates a glitch in Mallocs mod everytime (mod1) havnt tried 2yet.
(+.[____]·:·)
BlackPaladin
Posts: 11
Joined: Fri Jan 06, 2006 3:55 am
Location: Portland, Oregon -- USA
Contact:

Muxer update

Post by BlackPaladin »

I kept running into the same errors in my video all the time and was getting tired of uploading the whole thing to the PSP only to find it wouldn't play. I've built a version of the pmp_muxer.pm which will catch many of the errors detected in the player on the PSP. That way you find out before you copy the file over (I'm on USB 1.1....). Particularly I kept running into "first frame is not a keyframe". This version will also catch sizing problems, etc. Most of the things looked for in the player. No audio checking right now.

http://www.matthias.org/pspdev/pmp/pmp_muxer.pm

I am using the perl script directly. I don't know what jonny did to build the perl script into an .exe file (and I don't have a Windows box) so if you want to use this, run the perl script directly. Or maybe jonny wants to make an .exe from it.
Unix Junkie
BaLdMoNkEy
Posts: 8
Joined: Sun Jan 08, 2006 9:15 am

PSPMPVerter.0.2

Post by BaLdMoNkEy »

I have made a simple gui compatible with "mencoder" and "pmp muxer" to make conversion into pmp files about 100x easier for those who dont know how :p
is has now been updated to 0.9
Last edited by BaLdMoNkEy on Fri Jan 13, 2006 9:42 am, edited 1 time in total.
yazooo
Posts: 5
Joined: Sat Jan 07, 2006 9:41 am

Post by yazooo »

good effort, trying that now, ta...just after i've been tinkering with the bat files lol
yazooo
Posts: 5
Joined: Sat Jan 07, 2006 9:41 am

Post by yazooo »

works well, couple of things...you're using the divx codec, an option for xvid would be nice. option for 1 pass only would be nice. output folder location would also be good. queuing would be a godsend!
xxxstarmanxxx
Posts: 84
Joined: Thu Jan 05, 2006 8:52 am

Post by xxxstarmanxxx »

malloc wrote:I've updated the small mod I posted earlier. ** edited ***

- Left and Right trigger can be used to adjust the luminosity during playback (it's usefull to add a bit of luminosity to remove the bad ghosting effect of the LCD screen in dark scenes)
- if START is pressed during play, it goes to the start of the video.
- if the .PMP.POS file is selected in the file selector, it launches the .PMP directly


App :
http://rapidshare.de/files/10585949/pmpmod.zip.html

Src :
http://rapidshare.de/files/10586040/pmpmod_src.zip.html

Jonny, I'll have some time to do some PSP dev, if you have a todo list and want me to do some of the things to help you, PM me ;)[/b]
Hi Malloc

Can I just say thankyou mate for the amplification code on your mod - Its saved me loads of time -

Looking forward to your next round of tweaks!

All the best

J.
User avatar
Itaintrite
Posts: 54
Joined: Fri Jul 15, 2005 12:32 pm

Post by Itaintrite »

Thanks BaldMonkey for the easy-to-use converter.
csuper
Posts: 103
Joined: Tue Jan 03, 2006 6:19 pm

Post by csuper »

@ BaLdMoNkEy...

Thanx for a GUI : very interesting... :)

May I ask you more feature ?
If you got time, can you add to a v3 :
+ the possibility to choose xvid or divx...
Example of command line for xvid :
... -ovc xvid -xvidencopts pass=1:vhq=0:me_quality=6:chroma_opt ...
and
... -ovc xvid -xvidencopts pass=2:vhq=0:bitrate=768:me_quality=6:chroma_opt ...

+ the possibility to add a subtitle to the video stream (hardsub) :
... -sub "VIDEONAME.SRT" -subpos 100 -subcp cp950 -subfont-text-scale 3
ps : subfont-text-scale is the size of the text...

Anyway thanx.

csuper.
miemt11
Posts: 89
Joined: Sun Nov 20, 2005 5:29 pm

PMP Simple Converter 0.01 for memcoder

Post by miemt11 »

PMP Simple Converter 0.01 for memcoder

What it do?

1: Convert any video (rmvb, avi mpg, wmv) to PSP PMP format

2: Support size is 320x240, 360x272 and 480x272 resolution

3: All PMP output video are harddup enable

4: Encode Process Priority


Component Requirement:

1: Get all the memcoder component from here
http://www.mplayerhq.hu/homepage/design7/dload.html
or here http://oss.netfarm.it/mplayer-win32.php than and intall all any directory you like. e.g. C:\Memcoder
2: Put pmp_muxer.exe to the intall directory e.g. C:\Memcoder

3: Now extract my PMP Simple to the intall directory e.g. C:\Memcoder

4: .Net Framework Runtime 2.00 from here
http://download.microsoft.com/download/ ... tnetfx.exe




Develop by miemt11


Download here

http://s12.yousendit.com/d.aspx?id=1KTW ... XCBSLFCBKZ

or

here

http://rapidshare.de/files/10633295/PMP ... 1.rar.html
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

this won't work for me. :( .net framework 2.0 make catalyst go crazy so i have only 1.1
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

@NyNex:

probably the hd have a slower reading rate, causing serious bottleneck.
async read could solve this, but require big changes in the actual code (+ i can't check if it really works)
maybe changing the size of the reading buffer could help, when i have time i could send you a benchmark app, in order to check optimal parameters
Post Reply