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

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

Moderators: cheriff, TyRaNiD

Post Reply
gmk
Posts: 6
Joined: Thu Jan 19, 2006 12:37 am

Post by gmk »

wooolF wrote:Since I do all of my conversions in mencoder, did anyone managed to crop the black bars a the top and bottom with it? I couldn't see that option in manual, but probably i jumped it over... I'm 95% sure it's not possible with mencoder, but anyways... hope dies last =)

basically... I'm more then happy with my mencoder expirience right now... it's more or less "1 click solution" (when everything is configured right). If only I could crop the input video with it... no other apps needed :P
Hi wooolF,

yes there is an option "-vf cropdetect"

I'm working on a Linux bash script, that automatic convert my Movies or VDRrecords in to pmp. it autodetects the cropping area. It works about 95% Perfect. If someone wants my script just say something.

@jonny and malloc: THANKS, for youre work!! From now on, I only use my PSP for watching movies in the train. THANKS!!!!


cu
gmk
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

gmk wrote:Hi wooolF,

yes there is an option "-vf cropdetect"
Yeh well, it just outputs the size of the video without the bars, but it doesn't crop it... :P

At same time I found this in the manual:

Code: Select all

	crop[=w:h:x:y]
	Crops the given part of the image and discards the rest. Useful to remove black bands from widescreen movies.
	<w>,<h>
	Cropped width and height, defaults to orig- inal width and height.
	<x>,<y>
	Position of the cropped picture, defaults to center.
Just tried, works as intended... haw haw! \o/ no need for VDubMod/Blight/whatever... everything done with help of 1 tool! Yeehaa ^_^

To anyone interested how to get rid of the bars...

Source picture (4:3 at 720x576 with bars to make it look 16:9)
Image

Result picture (cropped to 510x416, then rescaled to 480x272)
Image

All that done with 1 video filter described earlier in this post :)

My example : crop=510:416:105:78 (means crop it to 510x416, remove 105 pixels from each side, remove 78 pixels from top and bottom).

Note: You HAVE to crop first, THEN scale it... not the other way =)
Last edited by wooolF on Thu Jan 19, 2006 1:42 am, edited 3 times in total.
psp360
Posts: 25
Joined: Sun Aug 21, 2005 10:25 pm

Post by psp360 »

wooolF nice find...ok just for us noobs, how exactly would i use this in SimplePMP? thanks
User avatar
hyedipin
Posts: 74
Joined: Sun Jan 15, 2006 2:57 pm

Post by hyedipin »

wooolF, by one tool. do you mean mencoder in command with all the switches you mentioned or use simple converter and incorporate your switches and attributes and get it out?

Also, when it is cropped, the resolution is changed, and doesn't PSP stretch the image? Because if the top and bottom removed, the final resolution either will be different, or it will still end up being filled with black/default color.
Otherwise you would have to crop on the sides as well to make it sort of pan scan.. ?

As for the PSP Simple converter, here is the new pack..


Jan 18th v.0.07 - PMP Simple Converter by miemti11 to use with PMP MOD Player on your PSP PACKAGED ready. Image PMP_Simple_Converter_0.07_ReadyPack (RapidShare)
Image Official PMP Mod Topic
Image Official PMP Simple Converter Topic
Jan 18th v.0.07 - PMP Simple Converter by miemt11 to use with PMP MOD Player on your PSP PACKAGED ready. http://rapidshare.de/files/11293003/PMP ... k.rar.html
http://forums.ps2dev.org/viewtopic.php?p=33359#33359
User avatar
hyedipin
Posts: 74
Joined: Sun Jan 15, 2006 2:57 pm

Post by hyedipin »

darn,

woolfie, you just edited your post with the new pictures just as I posted ^ above :) :) great thnking man...
Jan 18th v.0.07 - PMP Simple Converter by miemt11 to use with PMP MOD Player on your PSP PACKAGED ready. http://rapidshare.de/files/11293003/PMP ... k.rar.html
http://forums.ps2dev.org/viewtopic.php?p=33359#33359
User avatar
reveine
Posts: 14
Joined: Tue Jan 03, 2006 10:22 pm

Post by reveine »

Does anyone know how to turn off b-frames in winmenc? It seems to be turned on by default. Any mencoder scripts to do that? Thank you.
&#12541;(&#65344;&#12540;&#65344;)&#12494;&#65396;&#65433;&#65426;&#65405;
..&#65288;&#65343;&#65343;&#65289;__
&#65372;&#38651;&#36554;&#30007;&#65372;&#65374;&#65374;
&#9678;&#65507;&#65507;&#65507;&#9678; &#12371;&#12429;&#12371;&#12429;&#65374;
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

hyedipin wrote:wooolF, by one tool. do you mean mencoder in command with all the switches you mentioned or use simple converter and incorporate your switches and attributes and get it out?
1 tool... mencoder... no more, no less ;)
hyedipin wrote:Also, when it is cropped, the resolution is changed, and doesn't PSP stretch the image? Because if the top and bottom removed, the final resolution either will be different, or it will still end up being filled with black/default color.
Otherwise you would have to crop on the sides as well to make it sort of pan scan.. ?
Exactly... You'll have to remove some of the picture from both sides to give it same look as before (not stretched)... read my previous post above, I've explained in last lines :)
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

reveine wrote:Does anyone know how to turn off b-frames in winmenc? It seems to be turned on by default. Any mencoder scripts to do that? Thank you.
max_bframes=0
default is set to 2

by the way, why do you want to set it to 0? just curious
Last edited by wooolF on Thu Jan 19, 2006 1:46 am, edited 1 time in total.
User avatar
hyedipin
Posts: 74
Joined: Sun Jan 15, 2006 2:57 pm

Post by hyedipin »

You'll have to remove some of the picture from both sides to give it same look as before (not stretched)... read my previous post above, I've explained in last lines :)
:) see my post above :)

1 tool... mencoder... no more, no less ;)
Please post the whole switch/attribute, let me try the same way you did, if I can get the same results..
Jan 18th v.0.07 - PMP Simple Converter by miemt11 to use with PMP MOD Player on your PSP PACKAGED ready. http://rapidshare.de/files/11293003/PMP ... k.rar.html
http://forums.ps2dev.org/viewtopic.php?p=33359#33359
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

psp360 wrote:wooolF nice find...ok just for us noobs, how exactly would i use this in SimplePMP? thanks
You put it under "Extra video filter"
I'm just not sure if the crop filter executed BEFORE scale filter or after...
If it's executed AFTER, then you can't use it...
And I have no way to check what command line PMP Simple generates, thus I can't be 100% sure if you can use it... Try to encode some 16:9, then you'll see for yourself :)
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

@reveine:

ops, sorry, i always forget rapidshare issues ( i'm not able to download with rapidshare too, here at work :S )
can someone put the file on http://www.yousendit.com/ ???
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

hyedipin wrote:
1 tool... mencoder... no more, no less ;)
Please post the whole switch/attribute, let me try the same way you did, if I can get the same results..
I'm still tweaking it ("worked" on mencoder settings for like 3 days now :P), but finally when I'm 100% satisfied, I'll post a tutorial =)

Right now (after succeeding at removing the bars with mencoder) I'm expiriencing a small lag (for both video and audio) while playing the movie... probably it's because of my high bitrate (1200kbps)... I'll have to make some more conversions to find the "bug" =)
User avatar
hyedipin
Posts: 74
Joined: Sun Jan 15, 2006 2:57 pm

Post by hyedipin »

wooolF wrote:
hyedipin wrote:
1 tool... mencoder... no more, no less ;)
Please post the whole switch/attribute, let me try the same way you did, if I can get the same results..
I'm still tweaking it ("worked" on mencoder settings for like 3 days now :P), but finally when I'm 100% satisfied, I'll post a tutorial =)

Right now (after succeeding at removing the bars with mencoder) I'm expiriencing a small lag (for both video and audio) while playing the movie... probably it's because of my high bitrate (1200kbps)... I'll have to make some more conversions to find the "bug" =)

Allrighty, looking forward to it.
Jan 18th v.0.07 - PMP Simple Converter by miemt11 to use with PMP MOD Player on your PSP PACKAGED ready. http://rapidshare.de/files/11293003/PMP ... k.rar.html
http://forums.ps2dev.org/viewtopic.php?p=33359#33359
User avatar
hyedipin
Posts: 74
Joined: Sun Jan 15, 2006 2:57 pm

Post by hyedipin »

jonny wrote:@reveine:

ops, sorry, i always forget rapidshare issues ( i'm not able to download with rapidshare too, here at work :S )
can someone put the file on http://www.yousendit.com/ ???
Here is the revised one with alternative links:




jonny has uploaded a benchmark to test the speed of memstick/hdd used:

http://rapidshare.de/files/11252151/PMP ... n.rar.html
http://s53.yousendit.com/d.aspx?id=30XW ... 9VNXUD42LA Image
http://www.megaupload.com/?d=5HRY49AK Image
*same file, different mirrors.
jonny wrote:It basically read video/audio frames and report the speed based on video frames per second

my results:

-1GB sandisk (memstick duo pro): 1555 fps
-original 32MB memstick: 549 fps

i'm interested on speed with different memsticks and really interested on the hdd results.
every report is really appreciated


PS: do not change the testing clip, or the results will not be comparable
hope this helps..
Jan 18th v.0.07 - PMP Simple Converter by miemt11 to use with PMP MOD Player on your PSP PACKAGED ready. http://rapidshare.de/files/11293003/PMP ... k.rar.html
http://forums.ps2dev.org/viewtopic.php?p=33359#33359
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

We need to get yawoo (author of WinMEnc) on this board... I found where he "lives", but that board is in chinese... and I can't read that... I even found his official page, but no contact information either...

Why I need to contact him? So I could ask him if it's possible to add filters BEFORE scale filter (video)... like adding crop filter because it have to be executed before scaling... I can do whole DVD > PMP comression with just help of WinMEnc, but to do scaling I need to edit the bat file... not that it takes lots of time, but anyway...

If ANYONE from here that understands language on this board could try to contact yawoo there? And point him at this post (link to this post is http://forums.ps2dev.org/viewtopic.php?p=33404#33404)? or maybe ask him to try to contact me at wooolF{[aaattt]}gmail.dot.com
User avatar
hyedipin
Posts: 74
Joined: Sun Jan 15, 2006 2:57 pm

Post by hyedipin »

wooolF, i think you need to get a hold of mencoder's author for that, since winmenc just lays out the options and executes commands in mencoder.

doesn't it work in the order of inputting filters/switches? for example
crop THEN resize THEN sharpen ?

btw, winMenc has given me hell with a few encodes, (read my wayy back posts) but if everything is done correctly, you are right it is one step encoding but still, it does the steps which you can do seperatly, therefore know how long each one will take. with winmenc, i kept on waiting and waiting and waiting.. Image
Jan 18th v.0.07 - PMP Simple Converter by miemt11 to use with PMP MOD Player on your PSP PACKAGED ready. http://rapidshare.de/files/11293003/PMP ... k.rar.html
http://forums.ps2dev.org/viewtopic.php?p=33359#33359
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

well, winmenc does generates the bat file, that true... if I place the crop video filter in the only place where I can place it, then it would be placed AFTER the scale video filter in the generated video...

now... MAYBE mencoder does have that feature where CROP goes before SCALE, but since mencoder got tons of filters, I doubt it... but who knows... maybe I should just give it a try here, then I can see it for myself...

Also... waiting problem isn't an issue imho... my mencoder outputs progress indicator to the console... so I can follow it... just gotta remember that I do 2xpass, so I will see the progress indicator twice =)
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

Result of placing crop AFTER scale:
crop: bad position/width/height - cropped area is out of the original!

So yeh... as I thought, mencoder doesn't prioritize any of the filters...
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

wooolF wrote:Also... waiting problem isn't an issue imho... my mencoder outputs progress indicator to the console... so I can follow it... just gotta remember that I do 2xpass, so I will see the progress indicator twice =)
My bad, it's always at 0%... but knowing how long is your video source (in seconds) makes it as easy as 2+2 to determine where in the process timeline you are =)

EDIT: Actually my bad once again! (haha)... it's set to 0% if the video clip that you're encoding is too short... but if the scene is long enough, you'll see process indicator showing you procents (how much procents of 1st or 2nd pass are finished).

Example :
Pos: 174.7s 4370f (42%) 25.97fps Trem: 3min 0mb A-V:0.000 [2437:0]
Last edited by wooolF on Thu Jan 19, 2006 3:39 am, edited 1 time in total.
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

hyedipin wrote:
wooolF wrote:
hyedipin wrote: Please post the whole switch/attribute, let me try the same way you did, if I can get the same results..
I'm still tweaking it ("worked" on mencoder settings for like 3 days now :P), but finally when I'm 100% satisfied, I'll post a tutorial =)

Right now (after succeeding at removing the bars with mencoder) I'm expiriencing a small lag (for both video and audio) while playing the movie... probably it's because of my high bitrate (1200kbps)... I'll have to make some more conversions to find the "bug" =)
Allrighty, looking forward to it.
Oki doki =) Found the "issue", it was qpel filter that I was using.
qpel Raise the number of candidate motion vectors by increasing the precision of the motion estimation from halfpel to quarterpel. The idea is to find better motion vectors which will in return reduce bitrate (hence increasing quality). However, motion vectors with quarterpel precision require a few extra bits to code, but the candidate vectors do not always give (much) better results. Quite often, the codec still spends bits on the extra precision, but little or no extra quality is gained in return. Unfortunately, there is no way to foresee the possible gains of qpel, so you need to actually encode with and without it to know for sure.

qpel can be almost double encoding time, and requires as much as 25% more processing power to decode. It is not supported by all standalone players.
Now it's all good =) I will try to encode 1 long scene from Matrix2 and if there will be no probs (desync/video-audio quality etc), I'll post a quide =)
yawoo
Posts: 5
Joined: Sat Jan 14, 2006 4:16 am

Post by yawoo »

wooolF wrote:Result of placing crop AFTER scale:
crop: bad position/width/height - cropped area is out of the original!

So yeh... as I thought, mencoder doesn't prioritize any of the filters...
Currently the only workaround solution is set "video size" as "Original", and then enter "crop=510:416:105:78,scale=480:272" in the field "Extra->Video Filter".

I am considering another approach to do the cropping, say, scale the width as 140% (ajustable) screen width (480px), and then do the cropping to the screen size (480:272).
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

yawoo wrote:
wooolF wrote:Result of placing crop AFTER scale:
crop: bad position/width/height - cropped area is out of the original!

So yeh... as I thought, mencoder doesn't prioritize any of the filters...
Currently the only workaround solution is set "video size" as "Original", and then enter "crop=510:416:105:78,scale=480:272" in the field "Extra->Video Filter".

I am considering another approach to do the cropping, say, scale the width as 140% (ajustable) screen width (480px), and then do the cropping to the screen size (480:272).
Yeah baby! Now we're talking! Now I'm 100% satisfied. Thanks for the tip, yawoo =) And please let us know when (and if) you'll release a new version of WinMEnc. For me it's the one and only app for PMP conversions =) Great job dude!
User avatar
hyedipin
Posts: 74
Joined: Sun Jan 15, 2006 2:57 pm

Post by hyedipin »

Hmmm..
I end up getting 32 bytes of pmp file and nothing gets encoded..
Tried both .vob and .mpg (mpeg2) sources..

.BAT:

Code: Select all

mencoder.exe -sws 9 -vf crop=510&#58;416&#58;105&#58;78,scale=480&#58;272 -oac mp3lame -lameopts mode=0&#58;cbr&#58;br=128 -af volnorm -srate 44100 -ovc xvid -xvidencopts bitrate=700 "C&#58;\Copy_Elf.vob" -o "C&#58;\Copy_Elf.XviD.avi" 2> 2.txt
call pmpmux.bat "C&#58;\Copy_Elf.XviD.avi"
ERROR:

Code: Select all

No accelerated IMDCT transform found
Using MMX optimized resampler
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
MP3 audio selected
FATAL&#58; Cannot initialize video driver.
or

ERROR:

Code: Select all

The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
MP3 audio selected
FATAL&#58; Cannot initialize video driver.
Image
Jan 18th v.0.07 - PMP Simple Converter by miemt11 to use with PMP MOD Player on your PSP PACKAGED ready. http://rapidshare.de/files/11293003/PMP ... k.rar.html
http://forums.ps2dev.org/viewtopic.php?p=33359#33359
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

hyedipin wrote:Hmmm..
I end up getting 32 bytes of pmp file and nothing gets encoded..
Tried both .vob and .mpg (mpeg2) sources..
ERROR:

Code: Select all

FATAL&#58; Cannot initialize video driver.
Try to set your "Video Frames (fps)" to the same fps as the source file. If that doesn't work, I'm 99% sure it's your video drivers. Nvidia?

Also... the generated bat file might have wrong syntax... but I can't pinpoint the problem now...
User avatar
hyedipin
Posts: 74
Joined: Sun Jan 15, 2006 2:57 pm

Post by hyedipin »

Never had this problem with mencoder before.. why now. :( will experiment more later maybe tomorrow..
Jan 18th v.0.07 - PMP Simple Converter by miemt11 to use with PMP MOD Player on your PSP PACKAGED ready. http://rapidshare.de/files/11293003/PMP ... k.rar.html
http://forums.ps2dev.org/viewtopic.php?p=33359#33359
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

Could it be that your cropping variables are "bad"? try to remove the crop filter and see if it helps
Phuncz
Posts: 16
Joined: Fri Jan 06, 2006 9:50 pm

Post by Phuncz »

A made a simple skin for PSP Simple, hope you like it:

Image

Right-click the image and "save destination/target as..." to download the PNG file or click here !


Miemt11: is it possible to add more freedom to the skins ? It would be handy if we could include a file (.params or something) for the size of the skin and coordinates to place the content of the PMP Simple window somewhere else that dictated by default. So I can centralize it in a PSP image for a nice skin ;)
I would also advise to use magenta as the transparency color, it's a less used color than yellow.
Last edited by Phuncz on Thu Jan 19, 2006 5:57 am, edited 4 times in total.
User avatar
wooolF
Posts: 146
Joined: Thu Jan 12, 2006 7:09 am

Post by wooolF »

Phuncz wrote:A made a simple skin for PSP Simple, hope you like it

...
That was definetly better then the standart one ;P
Buuuut... you forgot to attach the skin my friend ;)

EDIT: right clicking wont help :P users will save the screenshot, not the skin =)
URL to the skin : http://users.edpnet.be/phunc/pmp.simple ... phuncz.png
Phuncz
Posts: 16
Joined: Fri Jan 06, 2006 9:50 pm

Post by Phuncz »

I added an "easy" here-clickable thingie :)
k0nan
Posts: 36
Joined: Tue Jan 03, 2006 12:43 pm

Post by k0nan »

wooolF & yawoo,

Have either of you tried the zoom features in malloc's latest mod (M3)? If the black bars are inherent in your source, I'm not sure how well it would work. But simply for zooming 4:3 video to fill 480x272 (by sacrificing a bit of the vertical picture), it works really well. I just converted both seasons of the Chappelle show to 360x272 and am very pleased with how well it looks zoomed. In fact, I'm surprised Sony didn't include this feature for zooming 320x240 mp4s, as opposed to only letting users strech them (of course, if Sony had their way, they'd probably block 368x208 mp4 as well just to sell more UMDs). Give it a try if you haven't already.

Just a general question about cropping, if you simply cropped a 480x272 window out of a larger source (and didn't care about video lost on all 4 sides), would the output video theoretically be of higher quality due to that fact that no resizing filter would be applied?
Post Reply