| View previous topic :: View next topic |
| Author |
Message |
gmk
Joined: 19 Jan 2006 Posts: 6
|
Posted: Thu Jan 19, 2006 12:46 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 1:07 am Post subject: |
|
|
| 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: | 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)
Result picture (cropped to 510x416, then rescaled to 480x272)
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 |
|
| Back to top |
|
 |
psp360
Joined: 21 Aug 2005 Posts: 25
|
Posted: Thu Jan 19, 2006 1:37 am Post subject: |
|
|
| wooolF nice find...ok just for us noobs, how exactly would i use this in SimplePMP? thanks |
|
| Back to top |
|
 |
hyedipin

Joined: 15 Jan 2006 Posts: 74
|
|
| Back to top |
|
 |
hyedipin

Joined: 15 Jan 2006 Posts: 74
|
|
| Back to top |
|
 |
reveine

Joined: 03 Jan 2006 Posts: 14
|
Posted: Thu Jan 19, 2006 1:44 am Post subject: |
|
|
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. _________________ ヽ(`ー`)ノエルメス
..(__)__
|電車男|~~
◎ ̄ ̄ ̄◎ ころころ~ |
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 1:44 am Post subject: |
|
|
| 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 :) |
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 1:45 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
hyedipin

Joined: 15 Jan 2006 Posts: 74
|
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 1:50 am Post subject: |
|
|
| 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 :) |
|
| Back to top |
|
 |
jonny
Joined: 22 Sep 2005 Posts: 351
|
Posted: Thu Jan 19, 2006 1:50 am Post subject: |
|
|
@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/ ??? |
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 1:54 am Post subject: |
|
|
| hyedipin wrote: | | Quote: | | 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" =) |
|
| Back to top |
|
 |
hyedipin

Joined: 15 Jan 2006 Posts: 74
|
Posted: Thu Jan 19, 2006 1:57 am Post subject: |
|
|
| wooolF wrote: | | hyedipin wrote: | | Quote: | | 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_Simple_Converter_0.07_ReadyPack.rar.html
http://forums.ps2dev.org/viewtopic.php?p=33359#33359 |
|
| Back to top |
|
 |
hyedipin

Joined: 15 Jan 2006 Posts: 74
|
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 2:21 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
hyedipin

Joined: 15 Jan 2006 Posts: 74
|
Posted: Thu Jan 19, 2006 3:01 am Post subject: |
|
|
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..  _________________ 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_Simple_Converter_0.07_ReadyPack.rar.html
http://forums.ps2dev.org/viewtopic.php?p=33359#33359 |
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 3:08 am Post subject: |
|
|
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 =) |
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 3:13 am Post subject: |
|
|
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... |
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 3:31 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 3:34 am Post subject: |
|
|
| hyedipin wrote: | | wooolF wrote: | | hyedipin wrote: | | Quote: | | 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. |
Oki doki =) Found the "issue", it was qpel filter that I was using.
| Quote: | 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 =) |
|
| Back to top |
|
 |
yawoo
Joined: 14 Jan 2006 Posts: 5
|
Posted: Thu Jan 19, 2006 4:05 am Post subject: |
|
|
| 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). |
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 4:17 am Post subject: |
|
|
| 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! |
|
| Back to top |
|
 |
hyedipin

Joined: 15 Jan 2006 Posts: 74
|
Posted: Thu Jan 19, 2006 4:38 am Post subject: |
|
|
Hmmm..
I end up getting 32 bytes of pmp file and nothing gets encoded..
Tried both .vob and .mpg (mpeg2) sources..
.BAT:
| Code: | mencoder.exe -sws 9 -vf crop=510:416:105:78,scale=480:272 -oac mp3lame -lameopts mode=0:cbr:br=128 -af volnorm -srate 44100 -ovc xvid -xvidencopts bitrate=700 "C:\Copy_Elf.vob" -o "C:\Copy_Elf.XviD.avi" 2> 2.txt
call pmpmux.bat "C:\Copy_Elf.XviD.avi" |
ERROR:
| Code: | 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: Cannot initialize video driver.
|
or
ERROR:
| Code: | 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: Cannot initialize video driver. |
 _________________ 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_Simple_Converter_0.07_ReadyPack.rar.html
http://forums.ps2dev.org/viewtopic.php?p=33359#33359 |
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 4:54 am Post subject: |
|
|
| 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: | FATAL: 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... |
|
| Back to top |
|
 |
hyedipin

Joined: 15 Jan 2006 Posts: 74
|
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 5:17 am Post subject: |
|
|
| Could it be that your cropping variables are "bad"? try to remove the crop filter and see if it helps |
|
| Back to top |
|
 |
Phuncz
Joined: 06 Jan 2006 Posts: 16
|
Posted: Thu Jan 19, 2006 5:18 am Post subject: |
|
|
A made a simple skin for PSP Simple, hope you like it:
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 |
|
| Back to top |
|
 |
wooolF

Joined: 12 Jan 2006 Posts: 146
|
Posted: Thu Jan 19, 2006 5:21 am Post subject: |
|
|
| 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_-_skin_by_phuncz.png |
|
| Back to top |
|
 |
Phuncz
Joined: 06 Jan 2006 Posts: 16
|
Posted: Thu Jan 19, 2006 5:54 am Post subject: |
|
|
| I added an "easy" here-clickable thingie :) |
|
| Back to top |
|
 |
k0nan
Joined: 03 Jan 2006 Posts: 36
|
Posted: Thu Jan 19, 2006 6:26 am Post subject: |
|
|
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? |
|
| Back to top |
|
 |
|