PDA

View Full Version : 720x480 mp4 video on custom firmware?



creamcheese
09-30-2007, 02:37 PM
Is there any way to get 720x480 mp4 videos running on 3.52 M33? I tried a 492*276 file and that gave me "data not supported" error but the same file resized to 480*272 worked.

I know higher resolutions work on the latest official firmware and 3.52 official.

Thank you!

tinman
09-30-2007, 03:31 PM
Is there any way to get 720x480 mp4 videos running on 3.52 M33? I tried a 492*276 file and that gave me "data not supported" error but the same file resized to 480*272 worked.

I know higher resolutions work on the latest official firmware and 3.52 official.

Thank you!

Only 480X272, 720X480 or the old 2.XX lower sizes work. You can't do sizes like 720X400 or 480X352, etc..

creamcheese
09-30-2007, 03:47 PM
Only 480X272, 720X480 or the old 2.XX lower sizes work. You can't do sizes like 720X400 or 480X352, etc..


Is it really so hard to do resolutions in between?

tinman
09-30-2007, 04:20 PM
Is it really so hard to do resolutions in between?

Yes, because the firmware doesn't allow it. So, it needs to be hacked to do this, and no one has. 720X480 and 480X272 is all you need really. One is 3:4 (almost) and one is 16:9. If you real want to do different sizes, crop and fill with black bars to get the size you want.

492x276 is PAL, most likely at 25FP. I world make it 480X272 and IVTC it to 23.97FPS.

brun0
09-30-2007, 04:33 PM
it does matter what is the format. If u convert the video in mp4, the max size. is 320x240. But if u convert it in mp4 avc (h.264) u can make it 720x480.

Tydude4Christ
09-30-2007, 05:38 PM
480x208 works for me and it's not listed so I believe some in between resolutions are supported.

If you want a 720x480 video and the source is 16/9 (eg; anamorphic widescreen NTSC DVD) or 4/3 (fullscreen DVD) you will not have to fix the aspect ratio when converting however if the video has an aspect ratio greater than 16/9 (such as movie trailers with no black bars on top or bottom) you will have to add black bars.

I do this and the conversion with XviD4PSP 4.115 like so. Download Link http://www.winnydows.com/xvid4psp.html

Here's a quick little equation for finding the correct black bar heights. Don't let the math scare you. It's not difficult.

(2560 / 3) / X (Aspect Ratio of Video; Width/Height) = Y (Newly Scaled Vertical Resolution) [note] Round Y to nearest even number.
(480 - Y ) / 2 = Z (Height of Black Horizontal Lines for Top and Bottom)

So edit the AVS of the video to this:

#Change movie resolution
video = video.Lanczos4Resize(720, Y)
video = video.AddBorders(0, Z, 0, Z)

Then save the AVS file and then select OK in the settings menu and then hit Start and it will convert for you. Warning - Do not do anymore editing to the settings after saving the AVS or the settings will revert back so you will have to re-edit the AVS.

Hope this helps.

creamcheese
09-30-2007, 05:54 PM
Tinman;

I am totally with you when you say that 720x480 and 480x272 are all we need but the thing is most pirate releases are not those resolutions so I would have liked to be able to replace these XviD avis with psp compatible AVC mp4s keeping the same video quality and thus reducing redundancy.

Oh well :-(

tinman
09-30-2007, 07:05 PM
Tinman;

I am totally with you when you say that 720x480 and 480x272 are all we need but the thing is most pirate releases are not those resolutions so I would have liked to be able to replace these XviD avis with psp compatible AVC mp4s keeping the same video quality and thus reducing redundancy.

Oh well :-(

Up sizing videos can be done and have the some quality as the input video if you use the right filters and know how to wright Avisynth scripts correctly.

I have converted 352X*** to 720X480 and it looks great. The key is in your scripting skills and filter use. Getting IVTC correct (so slow side panning looks smooth), using sharpresizers (sure its slow, but does a damn good job), and your video rates all working together.

I feel your pain, working with PAL isn't very easy when you need 23.97 or 29.97 FPS, I alway goto 23.97 as its closer to 25FPS. Getting the audio to sync can also be a pain, but once you have a good setup for video A converting video B will just need a tweak or 2. I alway take a 2 minute chunk from the main video and play with it until I get it right so I'm not wasting time on converting the hole video over and over.

Chilly Willy
09-30-2007, 11:01 PM
You can use any size UP TO 480x272 as long as it's divisible by 16. 480x208 is divisible and happens to be the 2.35:1 aspect ratio resolution for movies.

It's only once you try going beyond 480x272 that the resolutions are restricted again. You get two resolutions: 352x480, and 720x480. Both are standard NTSC video resolutions (video tape and DVD, respectively) and were added by Sony to make video converting easier. Don't bother resizing the DVD, just throw a bit more bitrate at the video when encoding.

hartleyshc
09-30-2007, 11:34 PM
Don't bother resizing the DVD, just throw a bit more bitrate at the video when encoding.

imo bitrate > resolution.

Chilly Willy
10-01-2007, 01:19 AM
imo bitrate > resolution.

Each method has it's pros and cons.

720x480 - Pros: Easier to encode. No loss of resolution on the color. Red images in particular will look better. Will look better on the TV out with the Slim due to the higher resolution. Cons: Uses a LOT more bitrate for the same quality. You have no control over the method used to shrink the video to the PSP LCD resolution.

480x272 (or similar resolution) - Pros: Better control over scaling and cropping of the video. Much lower bitrate for the same quality. Cons: Since both xvid and avc encoding use yv12 pixel format, the color is half the resolution of the luminance. This means that scenes that are mostly a saturated color will have a noticeable stair-step in diagonals. Reds are particularly bad for this. Will also not look as good when displayed on TV with slim due to the lower resolution.

creamcheese
10-01-2007, 07:54 PM
You can use any size UP TO 480x272 as long as it's divisible by 16.

Sorry, this is incorrect. I tried converting a video that was 496*352 (both divisible by 16-try it!) while not resizing and I got "unsupported format". Resizing to 480*272 allowed it to work.

If there are any coders here, there is sample code on ps2dev that allows native XviD decoding.

Tydude4Christ
10-01-2007, 08:03 PM
Sorry, this is incorrect. I tried converting a video that was 496*352 (both divisible by 16-try it!) while not resizing and I got "unsupported format". Resizing to 480*272 allowed it to work.

If there are any coders here, there is sample code on ps2dev that allows native XviD decoding.

Read carefully, he said all resolutions UP TO 480x272 are supported if they are divisible by 16. 496x352 is both larger vertically and horizontally.

creamcheese
10-02-2007, 12:24 PM
Yeah sorry I misread it as all resolutions up to 720*480.

He should have read the thread properly and realised I was after resolutions above 272p

Chilly Willy
10-03-2007, 12:08 AM
Yeah sorry I misread it as all resolutions up to 720*480.

He should have read the thread properly and realised I was after resolutions above 272p

No, you should have read my post properly. I DID give you the TWO resolutions the PSP allows that are bigger than 480x272. Even after being reminded that you read the post wrong, you STILL didn't go back and reread it. :rolleyes:

z3phyrantes
10-03-2007, 03:15 AM
Can you tell me, what is the best conversion setting for psp slim to put it out on tv set??

Chilly Willy
10-03-2007, 04:14 AM
Can you tell me, what is the best conversion setting for psp slim to put it out on tv set??

Depends on the TV. If it's a small TV hooked to composite, 368x272 may be enough. If it's a larger TV, maybe 352x480 is fine. If it's a modern TV, you probably want 720x480.

Tydude4Christ
10-08-2007, 12:25 AM
Attached is a small program I coded that will determine for you the correct resizing of videos and border height of 720x480 videos for viewing on the PSP. I suggest you use XviD4PSP 4.115 http://www.winnydows.com/xvid4psp.html to do the resizing and converting. Run my program and edit the AVS of the video to what my program says.

[Note] This is only useful for videos that have an aspect ratio greater than 16:9 such as movie trailers with no black borders. Do not use this for DVD's as most DVD's you can just convert them with no aspect fix and they will have the correct aspect ratio.

This was mostly just a learning experience for me seeing how I'm beginning to learn how to program. I had to solve how to use branch statements and even how to round to an even number. Before, I never thought the modulus function would be very useful, but now I know otherwise. Well, there it is. Hope it might be useful to someone.

creamcheese
10-14-2007, 07:34 PM
Attached is a small program I coded that will determine for you the correct resizing of videos and border height of 720x480 videos for viewing on the PSP. I suggest you use XviD4PSP 4.115 http://www.winnydows.com/xvid4psp.html to do the resizing and converting. Run my program and edit the AVS of the video to what my program says.

[Note] This is only useful for videos that have an aspect ratio greater than 16:9 such as movie trailers with no black borders. Do not use this for DVD's as most DVD's you can just convert them with no aspect fix and they will have the correct aspect ratio.

This was mostly just a learning experience for me seeing how I'm beginning to learn how to program. I had to solve how to use branch statements and even how to round to an even number. Before, I never thought the modulus function would be very useful, but now I know otherwise. Well, there it is. Hope it might be useful to someone.

I just use calc.exe, but thanks anyway!