View Full Version : XviD4PSP video converter for PSP PS3 Xbox 360 PC iPod iPhone BlackBerry
Pages :
1
2
3
4
[
5]
6
7
8
9
winnydows
25th February 2007, 18:46
Test please - will work 768 kbps without --filter ?
ludeboy12
25th February 2007, 22:34
Test please - will work 768 kbps without --filter ?
yup that works fine too.
winnydows
26th February 2007, 10:10
XviD4PSP 4.107 RC1 update for 4.106 (http://winnydows.com/download/xvid4psp/XviD4PSP_4107_RC1_update.exe)
Try this update.
vincentquest
5th March 2007, 17:12
I love your program! I think its great! the only thing that I find lacking in it is the conversion of MKV files with dual audio and subtitle selection.
Currently I have an anime that is encoded in MKV with 2 audio tracks. The first track is Japanese and the second track is English. I would like to encode the file with the english track instead of the default Japanese track.
Is there an option in which you can select what audio track you want and also if you want the subtitles?
I think a buton, switch, or drop down, with the option to select audio tracks and subtitles would be a great idea. If this can be implemented your program would be the most through program I have seen thus far.
I think you are on your way to having the best encoding software ever.
winnydows
5th March 2007, 17:57
Track and subs in my TODO. Will be soon.
kikker
7th March 2007, 19:23
Do you plan to add other device profiles such as for Windows Mobile devices? Perhaps one profile may work already. A fantastic player already exists for playback of xvids and AVC files in TMPCP/Coreplayer. Thanks...
winnydows
7th March 2007, 21:44
Set AVI format and set resolution for your device. It work for PDA too.
Will be added suport MP4 for Hardware players.
Will be added WMV output.
Seer
9th March 2007, 07:45
I have a feature request to make. Im running 3.03 OE-C on my psp, so i can do full res videos (480 x 272). However, it would also be nice to have a 4:3 aspect ratio under the PSP M4P 480 profile, like 363 x 272 (the actual encoding width would be greater, im guessing).
Also, i am having trouble doing custom resolutions...right now i am trying to edit the temp avs file with the res i want, but that isnt really working. So, is it possible to set custom res?
Also, some problems i've been having:
sometimes the video file ends up vertically mirrored (really weird). Im not sure why this is happening
When converting 4:3 video using PSP 480, it doesnt appear to be setting the blackbars correctly in order to keep the aspect ratio the same. Its not adding enough black, which stretches the image out when you tell the psp to do full screen. Ideally, the middle video part should be close to 363 pixels (4/3 * 272) in order to get a good fit. I think the correct number of black pixels to add to each side comes out to 58.7 ~= 59. The program comes up with 44.
winnydows
9th March 2007, 10:21
@Seer
This request for OE firmware creator.
Schrade
9th March 2007, 19:25
I have a feature request to make. Im running 3.03 OE-C on my psp, so i can do full res videos (480 x 272). However, it would also be nice to have a 4:3 aspect ratio under the PSP M4P 480 profile, like 363 x 272 (the actual encoding width would be greater, im guessing).
I also had a problem using XviD4PSP and 4:3 video or just any video that isn't 16:9 and finally got fed up with it.
I switched to AVIDemux 2.4-development branch and that pretty much does what I want.
You load the video in (4:3, 2.35:1, 16:9, etc..etc..), select Auto -> PSP (H.264) and then I leave the resize type at defaults. (PSP Full Res, 1:1, 1:1) then save the video out and voila, it works perfectly.
AVIDemux uses x264 code so it's pretty fast.
There's a thread about AVIDemux here: http://forum.doom9.org/showthread.php?t=108784
Seer
9th March 2007, 21:36
@Seer
This request for OE firmware creator.
Not really... Here's what i mean:
When encoding the video on your computer using Xvid4PSP, there is no resolution option for 363x272, ie full resolution 4:3. I tried using full res 480x272 encoding and aspect fixing it by adding black bars, but this leaves the video unplayable in quicktime, and completely upside down in MPC!!!. Also, I had to manually tell it to add the correct number of blackbar pixels, because it wasn't adding enough causing the image to stretch. So, i haven't even touched the psp yet and there are several problems. This is using the MP4 PSP 480 "core" in Xvid4PSP.
I also had a problem using XviD4PSP and 4:3 video or just any video that isn't 16:9 and finally got fed up with it.
I switched to AVIDemux 2.4-development branch and that pretty much does what I want.
You load the video in (4:3, 2.35:1, 16:9, etc..etc..), select Auto -> PSP (H.264) and then I leave the resize type at defaults. (PSP Full Res, 1:1, 1:1) then save the video out and voila, it works perfectly.
AVIDemux uses x264 code so it's pretty fast.
There's a thread about AVIDemux here: http://forum.doom9.org/showthread.php?t=108784
Thanks, Ill try that out later.
Schrade
9th March 2007, 23:08
Thanks, Ill try that out later.
I forgot to mention, the PSP support is only in the AVIDemux 2.4 builds.
See this post to download the code: http://forum.doom9.org/showthread.php?p=965705#post965705
Seer
10th March 2007, 01:38
I forgot to mention, the PSP support is only in the AVIDemux 2.4 builds.
See this post to download the code: http://forum.doom9.org/showthread.php?p=965705#post965705
It works great, Im loving it!
picree
11th March 2007, 14:32
I really am trying to get this transcoder to work. But I'm about done trying.
I live in the US (NTSC). My son has a PSP FW v2.71. I have tried all different sorts of formats only applying the defaults (MP4 PSP 480, MP4 PSP 2.80 (I know my f/w is only 2.71), PMP AVC). But on the PSP all I get is "Unsupported data" or "No movies found" or sometimes "Corrupted media".
I put the vids in the H:\MP_ROOT\100MNV01 folder
I make sure they are named M4V00001.MP4.
If XviD4PSP renames the file MAQ00001.MP4 then I tried putting it in the \100ANV01 folder.
I noted that Xvid4PSP defaults to a frame rate of 25. I tried switching that to 29.97. Nothing. I uninstalled/reinstalled. Nothing.
PSP Video 9 worked fine...first time. No problems. So what gives? I would like to use XviD4PSP since it enables me to Join multiple *.VOB's...I don't believe PSP Video 9 does that.
All I would like to know is, which default profile do I need to get this to work? And are there any specific settings I need to change for my son's PSP?
Help.:stupid:
winnydows
11th March 2007, 14:48
2.71 don`t supported.
Upgrade to latest off version or better to 3.10 OE.
XviD4PSP 4.107 RC4 full (http://winnydows.com/download/xvid4psp/XviD4PSP_4107_RC4_full.exe)
Almost final. Full version. Check outpost conflict and new bugs please.
MP4 PS3 probably fixed.
winnydows
12th March 2007, 00:19
XviD4PSP 4.107 RC5 full (http://winnydows.com/download/xvid4psp/XviD4PSP_4107_RC5_full.exe)
Now in MP4 PSP 480 work all files.
Fixed PMP brocken in RC4.
MP4 PS3 now work too.
winnydows
12th March 2007, 11:09
XviD4PSP 4.107 RC6 full (http://winnydows.com/download/xvid4psp/XviD4PSP_4107_RC6_full.exe)
ffdshow fixed
n510310ltbc
12th March 2007, 12:55
Everytime, when I try to convert a DVD into mp4psp 480, when it reaches to "extract sound" it will stop at 12.7%. How do you fix this?
I left it for one whole night, and it didn't move on. I tried restarting the machine, removing the dvd from the drive, using another computer, but nothing worked. Can you help me?
PS: The DVD I used is the same - Casino Royale DVD
Thanks.
winnydows
12th March 2007, 14:51
XviD4PSP 4.107 RC6 full (http://winnydows.com/download/xvid4psp/XviD4PSP_4107_RC6_full.exe)
XviD4PSP 4.107 RC7 update for RC6 (http://winnydows.com/download/xvid4psp/XviD4PSP_4107_RC7_update.exe)
Direct import DVD temporary don`t work. Use import from HDD.
@n510310ltbc
Try reauthor DVD with DVD Shrink.
winnydows
12th March 2007, 20:30
XviD4PSP 4.107 (http://winnydows.com/download/xvid4psp/XviD4PSP_4107.exe)
XviD4PSP 4.107 update from RC7 only!!! (http://winnydows.com/download/xvid4psp/XviD4PSP_4107_update.exe)
To format AVI added option save sound in MP2 and AC3.
Fixed 3-pass mpeg2 encoding (files was without sound).
Sound now possible encode to MP3 CBR and MP3 ABR.
Added MOD files import (MPEG2 files from HD video camcorders).
Enhanced encoding quality for XviD and DivX.
For XviD and DivX encoding added Turbo, Ultra, Extreme presets.
In Extreme mode XviD better than DivX in speed and quality.
PMP Splitter update to 1.0.1.0.
x264 updated to 628.
NicAudio updated to 1.7.
AVI format output now created in right conteiner.
Now possible create
Now if sound encoded to AC3 - downmix don`t used.
Mencoder updated to r22505.
Now possible use video and audio from previous jobs (useful if muxing crash).
For AVI muxing now used AVI-Muxer GUI.
Now x264_pmp used only for PMP.
Now NicMP4Box used only for MP4 iPod 640.
CLI for mencoder finished.
No more conflicts with Outpost and Argentum.
Now all MP4 PSP 480 files must work..
Now used 4-sided crop with visual preview.
Start and end frame now set in visual preview.
Now encoding to MP4 PS3 working well.
ffdhsow updated to 1008.
For format MP4 PSP 480 removed level 3.0 limit - quality more better now.
Beastie Boy
13th March 2007, 08:44
Excellent. Many thanks Winnydows.
This has to be one of the best supported and most updated freeware apps around.
One quick question since I don't yet own a PS3. What are the limits on mp4 playback on the PS3 with regard to bitrate and resolution etc. Is it yet possible to play a re-encoded HD DVD or Bluray disc?
Cheers, Beastie.
sergentrazor
13th March 2007, 19:53
Best encoder for 3.03 OE psp firmware!
Thanks winnydows!
n510310ltbc
15th March 2007, 09:41
How do you reauthor a DVD with DVD Shrink?
thanks
winnydows
17th March 2007, 22:04
DVD shrink - open disk - reauthor button - double click on movie - compression settings - remove unused audio track and subs and disable compression - backup.
XviD4PSP 4.108 (http://winnydows.com/download/xvid4psp/XviD4PSP_4108.exe)
XviD4PSP 4.108 update from 4.108 RC6 only (http://winnydows.com/download/xvid4psp/XviD4PSP_4108_update.exe)
4.108 changes:
AVI now possible create with x264 video.
AVI now possible create with AAC audio (FAAC only).
PMP now possible create with AAC audio (FAAC only).
x264 updated to 634.
Mencoder updated to r22519.
Enhanced MPEG files import.
Enhanced aspect visualisation.
AVI mux GUI now run in hidden mode.
Crop now auto start on opening.
Start and End now set by frame.
Added frame skip buttons - let shure set start and end frame.
duen
22nd March 2007, 12:30
Newbie needing help here. :-)
I just started using this program. Here's what I did:
- Ripped a chapter using DVD Decrypter (IFO mode, Enable stream processing).
- Started XviD4PSP, a dialog popped up and asked about creating index. Did that.
- Another dialog popped up and started to play the chapter. Stopped it. Accepted everything at default.
- Another dialog popped up showing encoding settings. Changed to "MP4 PSP 480" and kept everything else at default.
- Click on "Start"
- After everything was finished, transfered the finished files to PSP (3.03 OE-C).
- Was able to launch the movie clip from XMB.
Problem: There were black bars all around the picture. That is, the picture was not filling up the full screen. The original DVD is a widescreen movie.
Questions:
1- Did I miss a setting somewhere?
2- Is using vob files ripped by DVD Decrypter a good idea? I want to be able to convert certain chapters and not the whole dvd (for music videos). If not, what's the best way?
3- Why does it ask to create index everytime a mpeg4 VOB file is opened?
Observations:
1- Nice looking program!
2- If I don't create index when it asked me, the sound is is just noise. Normal?
Thanks in advance, guys/gals.
sergentrazor
24th March 2007, 06:15
Hi!
On your psp you have 3 screen mode:"zoom", "normal", "full screen".
The default mode is "normal" mode, this mode zoom out your 480x272 movie. Just put the screen mode to "full screen" and your movie will be in full screen.
duen
24th March 2007, 23:09
Got that. Tried it. Worked like a charm. Thanks.
winnydows
26th March 2007, 12:53
XviD4PSP 4.109 (http://winnydows.com/download/xvid4psp/XviD4PSP_4109.exe)
4.109 changes:
Now possible select audio tracks from MKV, OGM and AVI.
Added [] symbols warning.
Thumbnails now create for PMPPlayer Advance too.
COPY audio stream now work for MKV too.
Added FLV format output, Sorenson codec only.
Added unlimited MPG output (any resolution, any framerate, high bitrate).
For AVI and PMP audio encoding to AAC sound now with NeroAACEnc too.
Audio bitrate change now more smooth - 8 kbit.
Fixed lost windows focus after preview player.
Fixed early exit form AviSynth Wrapper.
x264 updated to 635.
Mplayer and Mencoder updated to 22772.
DGIndex updated to 1.4.9 Beta 17.
Use DVD Decryptor in IFO mode = most bad idea. ONly use file mode or much better use DVD SHrink in Reauthor mode.
BlueCup
28th March 2007, 01:30
I have an iPod 30gig which can play back any 320x240 video I encode with your program. When I try to put a 640x480 file on the iPod using your default MP4 iPod 640 profile it does not work. Software version 1.2.1 is on the iPod. Is it possible this model can not play back 640 video? Or can it be the profile setting?
Reverendrun
30th March 2007, 03:48
Thanks for the awesome program Winnydows!
I recently upgraded the firmware of my psp to 3.10 OE-A' and I'm using this converter exclusively. The interface is simple and straight-forward. The amount of conversion options is simply amazing.
I'm really glad to see FLV output in the latest version (I can't wait to try it out)--I might recommend we start using this at work for our flash video conversion as we also have Sorensen Squeeze 4 for Flash.
The only problem I've had is very rarely the audio gets out of sync--but I haven't had that problem since I updated to 4.107.
Once again--thanks for the converter.:)
morten795
30th March 2007, 20:40
Thanks for a great program Winnydows.
I have a suggestion for an automatic resize option. If you expose an option for automatically resizing movies, such that the aspect ratio of the original movie is maintained, you can use the folloing AVS script code to do the automatic resize:
fWidth=Float(video.width)
fHeight=Float(video.height)
currentAr=fWidth/fHeight
targetAr=480.0/272.0
cropLeft=0
cropRight=0
cropTop=0
cropBottom=0
# PSP native resolution is 480/272 -> 1.7647058823529411764705882352941
currentAr > targetAr ? Eval("""
diff=Round(fWidth-(fHeight*targetAr))
cropLeft=diff/2-diff%2
cropRight=diff/2+diff%2
""") : Eval("""
diff=Round(fHeight-(fWidth/targetAr))
cropTop=diff/2-diff%2
cropBottom=diff/2+diff%2
""")
cropLeft=cropLeft-(cropLeft%2)
cropRight=cropRight+(cropRight%2)
cropTop=cropTop-(cropTop%2)
cropBottom=cropBottom+(cropBottom%2)
video = video.Crop(cropLeft, cropTop, -cropRight, -cropBottom)
video = video.Lanczos4Resize(480, 272)
This will crop the video such that the Lanczos4Resize(480, 272) will not result in the aspect ratio changing...
I hope you will add this as an option, since it is a bit tedious to change the script manually every time :)
Morten
morten795
30th March 2007, 21:23
Doesn't XvidD4PSP work with the new 3.30 firmware and its new support for 480x272? - The movies converted using the MP4 PSP 480 profile don't play on my PSP (which has firmware 3.30 on it).
knowitman
31st March 2007, 22:34
I am trying to use your program to encode some OGM files to MP4, yet when I try to change the audio track it will give me an error and not encode.
winnydows
1st April 2007, 00:49
XviD4PSP 4.110 RC11 update from 4.109 (http://winnydows.com/download/xvid4psp/XviD4PSP_4110_RC11_update.exe)
3.30 added.
OGM fixed.
Fixed audio track selection.
Fixed small bugs in DVD importing.
MP4 PSP 3.10 OE format now support any resolution and aspect without black correction.
Now video in MP4 PSP 3.10 OE format start play with correct aspect.
MP4 PSP 3.10 OE now devided to two formats A and B.
A - free level, free bframes, MAQXXXXX.MP4 name mask, 48000 khz sound, AAC LC, THM.
B - level 2.1, bframes 1, any name, any sound rate, any AAC type, no THM.
Added MP4 PSP 3.30 format.
Added work with Custom Matrix for x264 (but files will be compatible for PC only!!!).
Removed 32000 khz audio rate (unsupported by AAC).
Removed DirectX dependency. Now DirectX used only for 3D GPU filter.
Video player and THM creator now work over DirectShow.
x264 updated to version 636.
Fixed audio track selection in OGM files.
OGM splitter replace to more fast and stable (Gabest).
Tomorrow probably will be release.
@morten795
Thanks, but now it doesn`t need anymore.
knowitman
1st April 2007, 05:50
Thanks. Sounds good. This is quickly becoming my favorite video conversion program.
winnydows
1st April 2007, 11:04
XviD4PSP 4.110 (http://winnydows.com/download/xvid4psp/XviD4PSP_4110.exe)
XviD4PSP 4.110 update from 4.109 (http://winnydows.com/download/xvid4psp/XviD4PSP_4110_update.exe)
4.110 changes:
Fixed audio track selection.
Fixed small bugs in DVD importing.
MP4 PSP 3.10 OE format now support any resolution and aspect without black correction.
Now video in MP4 PSP 3.10 OE format start play with correct aspect.
MP4 PSP 3.10 OE now devided to two formats A and B.
A - free level, free bframes, MAQXXXXX.MP4 name mask, 48000 khz sound, AAC LC, THM.
B - level 2.1, bframes 1, any name, any sound rate, any AAC type, no THM.
Added MP4 PSP 3.30 format.
Added work with Custom Matrix for x264 (but files will be compatible for PC only!!!).
Removed 32000 khz audio rate (unsupported by AAC).
Removed DirectX dependency. Now DirectX used only for 3D GPU filter.
Video player and THM creator now work over DirectShow.
x264 updated to version 636.
Fixed audio track selection in OGM files.
OGM splitter replaced to more fast and stable (Gabest).
limpby
2nd April 2007, 06:33
for files with 119.88 fps (120fps), encoding is extra slow. For example, I had a movie file that was 25minutes and to encode it to 480x272, it took about 50 minutes. I used quantizer turbo. This happens for other settings too. How do I speed things up? this doesn't happen for 23.976 or 29.97 fps.
winnydows
2nd April 2007, 15:22
XviD4PSP 4.111 RC1 update from 4.110 (http://winnydows.com/download/xvid4psp/XviD4PSP_4111_RC1_update.exe)
Fixed two old critical bugs.
XviD4PSP 4.111 RC3 update from 4.110 (http://winnydows.com/download/xvid4psp/XviD4PSP_4111_RC3_update.exe)
Fixed aspect bug in RC2.
Fixed ForceFilm bug.
Added aspect info (4:3, 16:9).
winnydows
4th April 2007, 19:58
XviD4PSP 4.111 full (http://winnydows.com/download/xvid4psp/XviD4PSP_4111.exe)
XviD4PSP 4.111 update from 4.110 (http://winnydows.com/download/xvid4psp/XviD4PSP_4111_update.exe)
4.111 changes:
Fixed many old and new bugs.
ForceFilm work again.
Now possible select subtitles from MKV and OGM.
Sound extraction from MKV and OGM now work correct.
Now possible fix aspect with changing window size.
deltaboy
8th April 2007, 01:56
any success with the iPod x640 profile yet? XviD4PSP has the best potential of all the progys ive tried.
:thanks:
morten795
9th April 2007, 15:36
@morten795
Thanks, but now it doesn`t need anymore.
Just tried the latest version and as far as I can tell it still doesn't crop correctly when resizing.
I have a movie of size "624 x 256" which I would like to convert for my PSP to "480 x 272". I set the "Aspect" to 1.765 and select "Crop" for the "AspectFix". It then chooses to crop the movie by video = video.Crop(38, 0, -38, -0) which will result in an input aspect ratio of ~2.141. This then clearly results in stretching of the movie, which is what my privious AVS script example avoids.
I'm not sure where XviD4PSP gets the cropping values from (38 and -38), but they are certainly wrong....
morten795
9th April 2007, 20:01
Whenever I try to encode a movie it crashes during audio encoding - Xvid4PSP doesn't actually crash, but the Nero Encoding engine does...
Anybody know what is going on?
limpby
13th April 2007, 18:18
so whenever I try 4:3 ratio file, program automatically sets for 369*272. I'm trying to encode with 3.30 firmware mp4. However, when I play the file in psp, it does not change the ratio to 4:3. It only can play 16:9. when I try to change the screen mode, all it gives you is 16:9 ratio. Is there any way to fix this?
Dirhael
14th April 2007, 03:39
so whenever I try 4:3 ratio file, program automatically sets for 369*272. I'm trying to encode with 3.30 firmware mp4. However, when I play the file in psp, it does not change the ratio to 4:3. It only can play 16:9. when I try to change the screen mode, all it gives you is 16:9 ratio. Is there any way to fix this?
You could try removing "--sar 1:1" from the parameters fed to x264. If nothing else works, you could always just edit your .avs script and add borders until you reach 480x272.
winnydows
14th April 2007, 08:44
@deltaboy
Fixed.
@morten795
Use visual crop.
@limpby
Strange what in 3.30 brocken sar. Temporary solution is set Aspect to 16:9 and set Aspect Fix to Black.
2,35 don`t work too or only 4:3 ?
XviD4PSP 4.112 RC5 update from 4.111 (http://winnydows.com/download/xvid4psp/XviD4PSP_4112_RC5_update.exe)
Fixed MKV libs miss.
Enhanced quality of x264 encoding (no changes for iPod).
Fixed update path to CLI apps after format change.
MP4 PSP 3.10 A now compatible with PS3.
Updated pmp muxer.
x264 updated to 650.
Removed mplayer.
Mencoder updated to 22870.
DVD delay now apply in aspect player too.
In case of useless CustomMatrix moved to Advanced tab.
morten795
14th April 2007, 16:24
@morten795
Use visual crop.
I'm not entirely sure what you mean by "visual crop" - but if you are saying that I should just do it manually in the window that pops up when I open a movie file, then that sounds like a bad solution, when it can so easily be done automatically.
I've even posted the code that does it - so it would be a simple matter of adding it as an option in the program - e.g. maintain aspect ratio when changing resolution.
winnydows
14th April 2007, 20:13
@morten795
I don`t know what you do wrong, but:
But in my case my formula work better then yours. Tested just now, no any distortion in preview.
morten795
14th April 2007, 22:58
@morten795
I don`t know what you do wrong, but:
But in my case my formula work better then yours. Tested just now, no any distortion in preview.
Well I''m not sure what formula you are refering to - it must be internally in the application and not in the script, since there isn't any formula in the script. And I certainly don't see how it can work "better", seeing as it either works or not (and the one I posted works).
Anyway here are the options that I have used for converting the video:
http://tanjaogmorten.mine.nu/crop.jpg
The original size of the video is "624x256" - The width should therefore be cropped by a total of 172 pixels to maintain the aspect ratio. However the script produced by Xvid4PSP does this:
#Change movie resolution
video = video.Crop(38, 0, -38, -0)
video = video.Lanczos4Resize(480, 272)
And the output movie is distorted since the aspect ratio is not maintained. So I don't know what I'm doing wrong but it would be excellent if you could clarify it for me, please :)
Thanks,
Morten
winnydows
16th April 2007, 02:27
XviD4PSP 4.112 RC6 update from 4.111 (http://winnydows.com/download/xvid4psp/XviD4PSP_4112_RC6_update.exe)
Many fixes for resolution list.
Fixes for 3.30.
Aspect don`t work for 720 X 480, 352 X 480. Need fix aspect inside PSP XMB Player, no other solutions for now. It`s Sony fault. Don`t know why Sony do this. May be some tricks for feauture device for PSP ? But anyway now this two resolutions useless, so it is not a problem.
@morten795
I don`t have time recalculate my formula, but you can correct me if you want:
Dim newRes As Size
newRes.Width = Calc.GetW(Me.cbxResolution.Text, "x")
newRes.Height = Calc.GetH(Me.cbxResolution.Text, "x")
'определяем кроп перепенные
Dim cleft As Integer = Calc.GetW(pv.CropOld, "x")
Dim cright As Integer = Calc.GetH(pv.CropOld, "x")
Dim ctop As Integer = Calc.GetBW(pv.CropOld, "x")
Dim cbottom As Integer = Calc.GetBH(pv.CropOld, "x")
Dim newAspect As Decimal = newRes.Width / newRes.Height
'Dim newAspect As Decimal = Calc.ConvertToDecimal(Me.cbxAspect.Text)
If Me.cbxFormat.Text = "MPEG-2 PAL" Or Me.cbxFormat.Text = "MPEG-2 NTSC" Then
If Me.cbxAspect.Text = "1.765" Then
newAspect = 1.765
newRes.Height = newRes.Width / newAspect
pv.InputAspectString = "16:9"
End If
End If
Dim oldAspect As Decimal = pv.InputAspect
If Me.cbxAspectFix.Text = "Disabled" Then
pv.Crop = pv.CropOld
Me.numBlackW.Value = 0
Me.numBlackH.Value = 0
End If
'коррекция по кропу
If Me.cbxAspectFix.Text = "Crop" Then
If oldAspect < newAspect Then
Dim missed As Integer = (newRes.Width / oldAspect) - newRes.Height
pv.Crop = cleft & "x" & cright & "x" & Calc.GetValid2((missed / 2) + ctop) & "x" & Calc.GetValid2((missed / 2) + cbottom)
Me.numBlackW.Value = 0
Me.numBlackH.Value = 0
End If
If oldAspect > newAspect Then
Dim missed As Integer = newRes.Height - (newRes.Width / oldAspect)
pv.Crop = Calc.GetValid2((missed / 2) + cleft) & "x" & Calc.GetValid2((missed / 2) + cright) & "x" & ctop & "x" & cbottom
Me.numBlackW.Value = 0
Me.numBlackH.Value = 0
End If
End If
'коррекция по блеку
If Me.cbxAspectFix.Text = "Black" Then
If oldAspect < newAspect Then
Dim missed As Integer = ((newRes.Width / oldAspect) - newRes.Height)
pv.Crop = pv.CropOld
Me.numBlackW.Value = Calc.GetValid2(missed / 2)
Me.numBlackH.Value = 0
End If
If oldAspect > newAspect Then
Dim missed As Integer = (newRes.Height - (newRes.Width / oldAspect))
pv.Crop = pv.CropOld
Me.numBlackW.Value = 0
Me.numBlackH.Value = Calc.GetValid2(missed / 2)
End If
End If
If Me.cbxAspectFix.Text = "Crop+Black" Then
If oldAspect < newAspect Then
Dim missed As Integer = (newRes.Width / oldAspect) - newRes.Height
pv.Crop = cleft & "x" & cright & "x" & Calc.GetValid2((missed / 4) + ctop) & "x" & Calc.GetValid2((missed / 4) + cbottom)
Me.numBlackW.Value = Calc.GetValid2((missed / 4) * newAspect)
Me.numBlackH.Value = 0
End If
If oldAspect > newAspect Then
Dim missed As Integer = newRes.Height - (newRes.Width / oldAspect)
pv.Crop = Calc.GetValid2((missed / 4) + cleft) & "x" & Calc.GetValid2((missed / 4) + cright) & "x" & ctop & "x" & cbottom
Me.numBlackW.Value = 0
Me.numBlackH.Value = Calc.GetValid2((missed / 4) * newAspect)
End If
End If
If oldAspect = newAspect Then
pv.Crop = pv.CropOld
Me.numBlackW.Value = 0
Me.numBlackH.Value = 0
End If
limpby
16th April 2007, 03:12
heh, I figured it was sony's fault. Thnx for such quick reply 0_0;; didnt expect that. For 4:3 aspect ratios, I just use 16:9 -> 480*272 -> aspect ratio disabled, so I can just watch it in 4:3 ratio when I play it in psp.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.