View Full Version : script to convert HDTV 60fps interlaced


lunnar
1st June 2004, 17:02
ok, I got a few HDTV mpeg2 file that will convert to avi.

I don't want to change the resolution, but I do want to convert the frame rate and deinterlaced it

I am quite new to avisynth so I am learning...

I found a interesting script on the HDTV section but I am not sure so here is my plan script for my 720p 60fps material:

********************8
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Decomb.dll")

[MPEG2Source("%f")]

SelectEven() # reduce frame rate to ~30fps
Crop(0,0,0,-8) # take 8 pixel a the bottom, I got a gray line
***********************

is this enough to keep good quality.

since I don't care about the size in MB of the movie what can be my best setting to keep the best quality?

also, what about 1080i 60fps material? What will be the best way to deinterlaced it? i've found this : Telecide().. is that anygood?

since it is 60fps interlaced, I suppose I should be pretty simple to combine 2 ajacent frame into 1 nice progressive frame to cut it down to 30fps... isn't it?

also, if search a lot about this, but found nothing that focus on keeping the HD resolution and perfect quality so if there is a guide about this please let me know

Wilbert
1st June 2004, 19:55
Your script is fine.

However, if your pc is fast enough and you are going for DivX/XviD, you also might leave it at 60 fps. That way, you don't need to throw away anything.

If the clip is anamorphic, you could also downsize it to 1280x720 (and keep the 60 fps).

Have a look at the following thread for more scripts:

http://forum.doom9.org/showthread.php?s=&threadid=68292

len0x
3rd June 2004, 16:03
I kinda got interested about the subject today :)

In case source is progresive SelectEven() will do just fine, but for interlaced source - isn't it better to deinterlace before SelectEven or it has no real effect? (assuming we're dealing with real interlaced and not film material)

Actually even more - may be its better to deinterlace after SelectEven()?

Wilbert
3rd June 2004, 16:28
I didn't read the carefully. Is your source 60 fps progressive or 60 fps interlaced?

lunnar
3rd June 2004, 16:33
well, it seem that I got lots of differents info when putting my files in the DVD2AVI-TS program(not alway the same result for the same file..). any better way to get exactly what is the framerate and progressive/interlaced info out of a .ts file?

Wilbert
3rd June 2004, 17:00
Just open the d2v file in AviSynth.If you scroll through the stream (frame by frame, where there's a lot of movement) do you see interlace effects? If not, then it's progressive.