Log in

View Full Version : How to set Aspect Radio in PSP AVC files?


Wishbringer
19th November 2005, 11:15
I'm encoding my PSP files with following batch:
PSP.bat
besweet.exe -core( -input "c:\psp\psp T01 3_2ch 448Kbps DELAY -224ms.ac3" -output "c:\psp\audio.mp4" ) -azid( -s stereo -c normal -L -3db ) -bsn( -2ch -vbr_internet -codecquality_high -aacprofile_lc ) -ota( -d -224 -g max )
rem "-ota( -d <delay> -g max )"
x264.exe --progress --bitrate 384 --ref 2 --mixed-refs --bframes 16 --subme 7 --b-rdo --weightb --trellis 2 --analyse p8x8,b8x8,i4x4,p4x4 --me umh --merange 32 --no-psnr --sar 64:45 --output c:\psp\video.264 c:\psp\psp.avs
MP4Box.exe -fps 29.97 -add c:\psp\video.264 -add c:\psp\audio.mp4 c:\psp\output.mp4
ATOMChanger.exe c:\psp\output.mp4 c:\psp\MAQ1000X.MP4 AtomAVC.ini
del c:\psp\video.264
del c:\psp\audio.mp4
del c:\psp\output.mp4

PSP.avs
mpeg2source("C:\PSP\psp.d2v")
crop(2,12,-4,-14)
TDeint()
LanczosResize(320,240)
Dup()
RemoveGrain()
ChangeFPS(29.97)

Thought that "--sar 64:45" would lead to an anamorph PAL 16:9 output.
But i have allways to zoom out to fullscreen on my PSP.

Any suggestions?
Thanks

edit:
bond's suggestion implemented

puffpio
19th November 2005, 11:35
that is not how SAR is used...
search this forum for usage..it's pixel aspect ratio..

bond
19th November 2005, 14:40
also there is no need to set a framerate for audio and you can merge audio and video in one run via

MP4Box.exe -fps 29.97 -add c:\psp\video.264 -add c:\psp\audio.mp4 c:\psp\output.mp4

Wishbringer
19th November 2005, 15:38
@puffpio:
about SAR i found:
http://forum.doom9.org/showthread.php?p=685331#post685331

and thats how i tried to use SAR on PSP.
Using another resolution than 320x240 is no option for me.
So I'm looking further for signaling anamorphic content to PSP.
I know its possible, PSPvideo9 doing so too...

bond
19th November 2005, 16:15
SAR is NOT the resolution and its NOT 16:9/4:3

for the correct SAR values for 16:9/4:3 use search

Sharktooth
19th November 2005, 16:19
HFS!!!
Q17 on http://forum.doom9.org/showthread.php?p=696689#post696689

READ THE DAMN FAQs!

Wishbringer
19th November 2005, 16:30
@bond and @Sharktooth:
Thats why I edited my post 10 minutes before you wrote to --sar 64:45
based on your FAQ and that including link to:
http://forum.doom9.org/showthread.php?p=716299#post716299

or do I miss something important?
--sar 64:45 should be the correct ratio for 16:9 PAL
If I use --sar 16:9 then output should be "wider" and not the correct ratio.
But when playing on PSP NONE of these both settings change my display output.
Thats why I asked, because i thought I missed something, maybe in AtomChange or somewhere.

bond
19th November 2005, 16:37
But when playing on PSP NONE of these both settings change my display output.
Thats why I asked, because i thought I missed something, maybe in AtomChange or somewhere.thats maybe because the psp might not handle sar?

qyqgpower
19th November 2005, 17:48
pso surpports anamorphic 16:9 MP4 playback(for example, 320x240 is displayed as 426*240 in original mode). psp recognizable sar flag is in the special header but not in the video stream. you can edit the MP4 binary as following:
address: 00AC-00AF
00 04 00 03 -> 16:9
00 01 00 01 -> 4:3

Wishbringer
19th November 2005, 17:57
@qyqgpower:
thanks, that's what I searched for.
Will try it when i am at home.