Avisynth_challenged
22nd July 2010, 09:06
Hi all,
I'm looking to run Avisynth on a MPEG2 file which contains 1080i hard telecined content. Here's my script:
# These lines call the scripts required for IVTC
Import("C:\program files\avisynth 2.5\plugins\jdl_util.avs")
Import("C:\program files\avisynth 2.5\plugins\jdl_telecine.avs")
############
# This line loads the MPEG source
MPEG2Source("source.d2v")
############
# IVTC Section:
# If source has perfect 3:2 pulldown pattern, choose JDL_IVTCPattern
# Otherwise, choose telecide().decimate()
# Use only one, comment out the other!
JDL_IVTCPattern(2, false) #3:2 pulldown removal for this clip
#telecide().decimate()
############
It's pretty basic, as you can see. All I'm doing is loading my MPEG2 1080i source and applying IVTC. I will save to an intermediate avi file (Huffyuv compression, no audio), which I intend to use as input into x264.
My main question:
I know that whenever an intermediate avi is created, you have to convert to the correct colorspace for your encoder of choice. For example, CCE requires YUY2 sources for input, and TMPGEnc requires RGB. So... what does x264 require?
My MPEG2 source is obviously YV12. Should I leave it YV12 before rendering my IVTC'd output to Huffyuv?
A couple other questions:
What do the experts here use to IVTC sources which have inconsistent 3:2 pulldown cadences? As you can see in the script, I've used telecide().decimate(). But are there any better solutions out there?
Finally, can anyone recommend a good deblocking method in Avisynth (i.e. plugin or script) which has a minimal impact on image detail?
Thanks to everyone for reading. I look forward to hearing your responses :)
I'm looking to run Avisynth on a MPEG2 file which contains 1080i hard telecined content. Here's my script:
# These lines call the scripts required for IVTC
Import("C:\program files\avisynth 2.5\plugins\jdl_util.avs")
Import("C:\program files\avisynth 2.5\plugins\jdl_telecine.avs")
############
# This line loads the MPEG source
MPEG2Source("source.d2v")
############
# IVTC Section:
# If source has perfect 3:2 pulldown pattern, choose JDL_IVTCPattern
# Otherwise, choose telecide().decimate()
# Use only one, comment out the other!
JDL_IVTCPattern(2, false) #3:2 pulldown removal for this clip
#telecide().decimate()
############
It's pretty basic, as you can see. All I'm doing is loading my MPEG2 1080i source and applying IVTC. I will save to an intermediate avi file (Huffyuv compression, no audio), which I intend to use as input into x264.
My main question:
I know that whenever an intermediate avi is created, you have to convert to the correct colorspace for your encoder of choice. For example, CCE requires YUY2 sources for input, and TMPGEnc requires RGB. So... what does x264 require?
My MPEG2 source is obviously YV12. Should I leave it YV12 before rendering my IVTC'd output to Huffyuv?
A couple other questions:
What do the experts here use to IVTC sources which have inconsistent 3:2 pulldown cadences? As you can see in the script, I've used telecide().decimate(). But are there any better solutions out there?
Finally, can anyone recommend a good deblocking method in Avisynth (i.e. plugin or script) which has a minimal impact on image detail?
Thanks to everyone for reading. I look forward to hearing your responses :)