CDROM-Guide forums  

PDA

View Full Version : Avisynth, framerates and resolution.


   
donhay
Nov 09, 2002, 07:33 AM
Is it possible to use Avisynth to change the framerate of an avi file.

I have several avi films I would like to put on dvd. They have a frame rate of 23.976. Could I convert them to 25fps using Avisynth? What would be the command. I have looked on several Avisynth sites but can't find anything.
OR do I not worry about all that and use Pulldown when its finished encoding?

Secondly is it possible (or necessary) to change the resolution. One avi file I have is 640x304. If I add the line LanczosResize(720,576) to my script will it work. Or is BicubicResize, or BilinearResize better?
OR When using CCE, is ticking DVD compliant box enough.

I really seem to struggle using CCE to covert avi to mpeg2. I know that TMPGEnc will do it all for me but it is soooooooooo slow!!
There are some great tutorials on using CCE to copy DVD but nothing on converting avi to dvd. Its all a guess for me at the moment but I do want to get it right.

Thanks for all your help guys.

pnu
Nov 09, 2002, 10:15 AM
You could try something like this :

Examples NTSC->PAL conversion:

AVISource("NTSC_clip.avi") # Get clip
Bob() # Separate fields and interpolate them to full height.
BicubicResize(768,576) # Resize to PAL square-pixel frame size. (Use 720,576 for CCIR.)
ConvertFPS(50) # Convert field rate to PAL, using Blend Mode.
SeparateFields.SelectEvery(4,0,3) # Undo Bob, even field first. Use SelectEvery(4,1,2) for odd field first.
Weave # Finish undoing Bob.

This example will also work with frame-based NTSC material, even with telecined film (movies). For film material, however, you will get better results by using an inverse-telecine filter and speeding up the frame rate from 23.976 to 25fps. <-- Taken from avisynths docs

I dont know if anything like this will help you best person to speak to seems to be Celtic.

donhay
Nov 09, 2002, 10:30 AM
WOW

It just goes to show I have an awful lot to learn about Avisynth. I'll have to do a bit more reading 'cause I don't understand most of that!!!!

Thanks pnu.

celtic_druid
Nov 09, 2002, 03:00 PM
You can't just resize it, you would also need to add borders, otherwise it would be distorted. If the original had no borders then it would be 640x360 and not 304.

Just speed the framerate up from 23.976 to 25 and then the audio to match, this should avoid any motion problems.

Turkules
Nov 29, 2002, 05:27 PM
I too wanted to know how to change the resolution, I now know how from this post, but and I know this is a dumb question how do I run the script? Do i just type in that script and save it as an .avs file and then just drag it over to CCE?