PDA

View Full Version : Using the Turn.dll


benf2
22nd June 2003, 15:58
Got a question! I need to use the "turn.dll" on some video footage i shot of a waterfall. I had to shoot it 90deg. so it would all fit. If i use the turn.dll won't i need to do a resize as well? What type of resize from my 720x480 footage be to keep the correct proportions?

thanks
Ben
:confused:

scmccarthy
22nd June 2003, 16:45
Ben,

The answer is:

You have to shrink it so the 720 width fits into the 480 height and then shrink the other dimension to 2/3s of 480. Then put borders on each side to pad it out to 720. This way the 720x480 dimension becomes 480x720. I think when you do the 90 degree turn it will be back to 720x480.

2/3rds of 480 is 320. You'd have to add a border of 200 on each side to bring it to 720:

Resize(480,320)#Choose the Resize you want.
AddBorders(0,200,0,200)
Turn....

This assumes you want to keep it in the same format though. Maybe encode it back to MPEG2?

Stephen

[edit] I forgot to compensate for the change in pixel aspect ratio for NTSC, sorry. This is still for TV viewing:

Resize(480,384)#Choose the Resize you want.
AddBorders(0,168,0,168)
Turn....

Kurosu
22nd June 2003, 16:58
Besides, turn was incorporated into core (AVS2.51 at least), so you don't need the dll anymore

benf2
22nd June 2003, 17:47
i will give a try ... thanks guys!!