Log in

View Full Version : I need help resizing 624x352 video


MickeyNBK
16th January 2006, 03:26
I have some videos that are 624x352 Xvid avis. I want to put these on DVD but when I encode them come out stretched to wide. I'm attempting to resize and add black borders. I used FitCD to create my Avisynth script. My goal is to have a 16:9 video that displays properly on my 4:3 tv.

Here is my script so far:

LoadPlugin("C:\Program Files\DIKO\avisynth plugins\blockbuster.dll")
LoadPlugin("C:\Program Files\DIKO\avisynth plugins\Convolution3DYV12.dll")
Import("C:\Program Files\DIKO\avisynth plugins\addaudio.avsi")
# -= AviSynth v2.5.6.0 script by FitCD v1.2.8 =-
AVISource("C:\officejokes.avi")
Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
BicubicResize(688,400,0,0.6,2,0,620,352)
AddBorders(16,40,16,40)
#Trim(0,32337).FadeOut(150)
AddAudio()
Converttoyuy2()

Revgen
16th January 2006, 08:03
Well first of all, your pixel width needs to be 720. Now you need to find the right height to proportionaly match the 720 width. The way you do this is by using some pre-algebra.

We want:

720
x
to be proportional to:

16
9

You do this by multiplying the top and bottom proportions of both fractions which are 720 and 9 then divide by 16 to get x. This results in x being 405.


Now try resizing your video to 720x405. After this you need to increase your vertical resolution to 480 to be DVD compatible. Now 480-405=75. This means that you need to add 38 black border pixels at the top and 37 black border pixels at the bottom (or the other way around) to get a 720x480 picture. Once you do that your video should be DVD compatible.

mg262
16th January 2006, 11:53
Revgen,

The only DVD player I have experimented with (a pretty cheap one) has the sense to add its own black borders if you try and play back 16:9 material on a 4:3 screen. Do some players not do this?

MickeyNBK
16th January 2006, 16:40
As long as your source material is 16:9 you do not need to add borders. The material I'm working with is a little off. If I encode it as 720x480 then it comes out looking to long and narrow. Hard coding small black borders to fill in the gap helps it display properly.

communist
16th January 2006, 17:40
AVISource("C:\Season1\the.office.101.hdtv-lol.[BT].avi")
See Rule 6.

Wilbert
16th January 2006, 21:48
@MickeyNBK,

You are very lucky you edited your post before i saw it. Next time you will get a ticket, but i do close this thread now.