Log in

View Full Version : Options for changing framerate and resizing?


Huge
18th April 2003, 17:03
I'd like to convert some 512x384 NTSC interlaced footage to PAL DVD.

I've found the following script which I'm using to convert from 29.9fps to 25.

AviSource("test.avi").ConvertToYUY2
Bob()
BicubicResize(720, 576)
ConvertFPS(50)
SeparateFields.SelectEvery(4, 0, 3)
Weave

Is this the best (or at least a good way) to acheive this?
Also, as I'm resizing the video is there some other filter I should use to smooth the image slightly?

I have a few of this avi's and would like to get it right.

I will be using TMPeg 2.5 to convert to DVD MPEG

sh0dan
18th April 2003, 21:19
I don't have a testclip right here, but this might be an alternative to avoiding blended fields:

AVISource("C:\Old.Men.avi")
Bob()
BicubicResize(720, 576)
decimate(6)
SeparateFields.SelectEvery(4, 0, 3)
Weave()

Or perhaps (using smoothdeinterlace):

AVISource("C:\Old.Men.avi")
SmoothDeinterlace(doublerate=true,tff=true)
BicubicResize(720, 576)
decimate(6)
SeparateFields.SelectEvery(4, 0, 3)
Weave()

Huge
19th April 2003, 08:21
Thanks,

I tried to use SmoothDeinterlace but kept getting an error saying it wasn't a AviSynth 1 plug-in. I guess I'm using 2.08 at the moment.

I noticed also that this avi seems to have an odd AR that you could not simply resize otherwise it would get squashed. I used GordianKnot to trim off the borders and resize it. I then added black borders back in to make it the right size for DVD. Is this OK?

AviSource("test.avi").ConvertToYUY2
crop(2,54,504,276)
LanczosResize(720,432)
AddBorders(0,72,0,72)
ConvertFPS(50)
SeparateFields.SelectEvery(4, 0, 3)
Weave

I'll try the two other methods you posted too.

[Edit]I don't see 'decimate' in the AVISynth help. Is that from a plug-in?

Many thanks.

Guest
19th April 2003, 13:25
Originally posted by Huge
I don't see 'decimate' in the AVISynth help. Is that from a plug-in? It's in the Decomb package of plugins.

sh0dan
19th April 2003, 15:38
There is a smoothdeinterlace available for 2.0, find it at avisynth.org - you can also find links for decomb there.

Decimate removes one of six frames in this case. It removes the one that is closest to the previous.