Log in

View Full Version : x264 resize SAR calculation : how ?


lutinor
26th May 2011, 20:24
Hi all,

I don't get how people can put the right numbers. In need to resize a 576x432 (4:3) video to a 720x576 (16:9) full screen (without vertical black band.-> []square picture[] -> rectangle picture // lol.)

--vfresize:width=720,height=576,sar=X:X,method=spline
--sar 16:11 -o out1.264 a.avi

The second part is what i can see on reference line for 16/9 (it's 16:11 dunno why) and i guess i need to mod my x:x to reach my goal.

Thx in adv for your help,

Max.

b66pak
26th May 2011, 20:34
--vfresize:width=720,height=576,sar=64:45,method=spline
_

lutinor
26th May 2011, 20:40
--vfresize:width=720,height=576,sar=64:45,method=spline
_
First of all,

thank you, it works but plz tell me how do you managed to find 64:45 ? :confused: Is there a tool or something , plz explain to me :(

b66pak
26th May 2011, 21:55
(720:576)*sar=(16:9)
sar=(16:9) : (720:576)=(16:9) : (5:4)=64:45
_

roozhou
27th May 2011, 02:32
DAR: Display Aspect Ratio
SAR: Sample Aspect Ratio

DAR = Resolution * SAR

Keep in mind that
1) Resizing does not change DAR
2) Cropping does not change SAR