PDA

View Full Version : Converting 60p to 60i??


shoopdabloop
3rd June 2009, 03:10
I thought it would be simple, but I cannot for the life of me figure out how to convert progressive 60p video to 60i.

If this topic gets deleted before anyone gets a chance to reply, it'll be because I found out how to do it myself.

bsmith1593
3rd June 2009, 03:18
I'm not sure how to interlace in AviSynth, but if you user VirtualDub 1.9.1, there is a video filter called "interlace," which interlaces the video.

shoopdabloop
3rd June 2009, 03:22
thanks, but i really want to do it in avisynth because then i get to fast recompress.

LocalH
3rd June 2009, 03:23
Use the following script to do this (this also works for PAL material): This script was taken from this thread (http://forum.doom9.org/showthread.php?t=113072) except I modified the comments to refer to NTSC instead of PAL.

AssumeFrameBased()
ConvertToYUY2() # scharfis_brain suggests this due to possible chroma error
AssumeTFF() # change this to AssumeBFF() if you need bottom field first
SeparateFields() # 60 frames becomes 120 fields
SelectEvery(4, 0, 3) # 120 fields to 60 fields (selects 2 from 4)
Weave() # 60 fields to 30 interlaced frames

Edit: Forgot to add the Assume?FF() line as it does affect how the frames are separated into field, choose the one you need for your media type (TFF, BFF, or choose one if it doesn't matter to you).

shoopdabloop
3rd June 2009, 03:31
sweet! thanks.
i needed to interlace something so i could test out TDeint+EEDI2.

Alex_ander
3rd June 2009, 05:19
Another way:
ConvertToYUY2()
AssumeBFF()# opposite to the desired output field order
DoubleWeave()
SelectEvery(4,1)# TFF here

2Bdecided
3rd June 2009, 09:49
ConvertToYUY2() # scharfis_brain suggests this due to possible chroma errorI've found working in YV12 throughout is faultless - there's no error to avoid.

(ready to be proved wrong, but I used critical test images and looked for the error, and it just isn't there).


What you do need to do is vertically soften the image a little to prevent inter-line twitter.

Cheers,
David.

Alex_ander
3rd June 2009, 15:00
ConvertToYUY2() is mainly recommended for encoding with CCE or Canopus since they both start encoding from YUY2, unlike old TMPG, which wants RGB24.