PDA

View Full Version : x264 stream AR problem since 291?


H4dd3R
12th September 2005, 19:57
Hello.

My source is 704*560.

I want to resize it by playback to 1001*560.

When I enter this AR (1001/560) in x264 configuration, the playback goes to ~1152 width (my screen width).
When I enter 1152/560 as AR, it does exactly the same!

When I enter 560/560, it seems quadratic.
When I enter 100/560, it seems.. Like you could think. ;)

So it seems that for some AR values, it works ok, and that for other ones not..

Any experience with this?

stephanV
12th September 2005, 20:06
You should set a PAR value, not a DAR.

PAR = DAR*height/width

DAR = 1001/560
height = 560
width = 704

PAR = (1001/560)*560/704 = 1001/704, so use this

note that probably no renderer will resize to 1001 pixels, but more likely to the closest multiple of 2 or 4.

H4dd3R
12th September 2005, 20:57
Ohhhh thank you! :)

I thought the AR setting in x264 was a display aspect ratio.

Sharktooth
14th September 2005, 14:48
It's Sample Aspect Ratio (that's the same thing as PAR).

squid_80
14th September 2005, 23:53
And by PAR you mean pixel aspect ratio, not picture aspect ratio (I hope).

Sharktooth
15th September 2005, 14:09
Yes... that's why i preferred avoiding confusion keeping the "Sample AR" label in vfw...

stephanV
15th September 2005, 14:35
coz obviously SAR can also be read as screen aspect ratio... :p

bond
1st October 2005, 13:25
PAR can also mean "picture aspect ratio" which could indicate the full frame aspect ratio

i think SAR is used by the specs and should be used as name everywhere too