Pete_In_Oxford
4th October 2005, 17:28
People -
Some time ago I asked about converting NTSC telecine material to PAL. I got pointed in the direction of the Decomb package, which works wonderfully. But I'm still puzzled by the sound resampling business, and the problem of when to apply de-noising filters. Here's the script I'm using:
# NTSC telecine input
OpenDMLSource("V:\telecine3.2 source.avi").ConvertToYUY2(interlaced=true)
# Tidy up the video quality before we muck about with the picture
# to make it PAL instead of NTSC.
# Deal with somewhat "shifted" Chroma...
Chromashift(c=-6,L=-3)
# Try FFT denoise/sharpening, all 3 planes...
FFT3DFilter(sigma=2, sharpen=0.4, plane=0, interlaced=true)
FFT3DFilter(sigma=5, sharpen=0.1, plane=1, interlaced=true)
FFT3DFilter(sigma=5, sharpen=0.1, plane=2, interlaced=true)
# Blacken out "flag-waving" at top and bottom of frame
Letterbox(0,11,6,10)
# Deal with 3:2 telecine and drop dups leaving 24fps(?)
Telecide(order=0,guide=1,post=2,vthresh=30,show=false)
Decimate()
# 4% speed up for PAL
AssumeFPS(25)
Weave()
# Sort out the sound. But how ???
-- Essentially I'm not sure when best to apply the FFT denoiser (before/after IVTC - after should be better as fewer frames to process, shouldn't it?) Also there's a function somewhere which averages the duplicated frames for better S/N ratio - is this easy to get/use?
And what on earth does one do with the audio? I tried the following segment from the ResampleAudio page and got an "Invalid Argument" error message:
# Exact 4% speed up for Pal telecine
Global Nfr_num=25
Global Nfr_den=1
Ar=Audiorate()
ResampleAudio(Ar*FramerateNumerator()*Nfr_den, FramerateDenominator()*Nfr_num)
AssumeSampleRate(Ar)
AssumeFPS(Nfr_num, Nfr_den, False)
As Avisynth tells me nothing about what the invalid argument actually was, I'm no better off! In fact that's part of a general moan/suggestion: could the error messages not be more consistently helpful, if you see what I mean? If resampleAudio kicked out with:
* Here's what I don't like about the rate you provided
* Here is the rate you provided
* Here's what I think the current Audio sample rate is
... I'd be much better off.
Any help would be very gratefully received!
Cheers,
Pete.
Some time ago I asked about converting NTSC telecine material to PAL. I got pointed in the direction of the Decomb package, which works wonderfully. But I'm still puzzled by the sound resampling business, and the problem of when to apply de-noising filters. Here's the script I'm using:
# NTSC telecine input
OpenDMLSource("V:\telecine3.2 source.avi").ConvertToYUY2(interlaced=true)
# Tidy up the video quality before we muck about with the picture
# to make it PAL instead of NTSC.
# Deal with somewhat "shifted" Chroma...
Chromashift(c=-6,L=-3)
# Try FFT denoise/sharpening, all 3 planes...
FFT3DFilter(sigma=2, sharpen=0.4, plane=0, interlaced=true)
FFT3DFilter(sigma=5, sharpen=0.1, plane=1, interlaced=true)
FFT3DFilter(sigma=5, sharpen=0.1, plane=2, interlaced=true)
# Blacken out "flag-waving" at top and bottom of frame
Letterbox(0,11,6,10)
# Deal with 3:2 telecine and drop dups leaving 24fps(?)
Telecide(order=0,guide=1,post=2,vthresh=30,show=false)
Decimate()
# 4% speed up for PAL
AssumeFPS(25)
Weave()
# Sort out the sound. But how ???
-- Essentially I'm not sure when best to apply the FFT denoiser (before/after IVTC - after should be better as fewer frames to process, shouldn't it?) Also there's a function somewhere which averages the duplicated frames for better S/N ratio - is this easy to get/use?
And what on earth does one do with the audio? I tried the following segment from the ResampleAudio page and got an "Invalid Argument" error message:
# Exact 4% speed up for Pal telecine
Global Nfr_num=25
Global Nfr_den=1
Ar=Audiorate()
ResampleAudio(Ar*FramerateNumerator()*Nfr_den, FramerateDenominator()*Nfr_num)
AssumeSampleRate(Ar)
AssumeFPS(Nfr_num, Nfr_den, False)
As Avisynth tells me nothing about what the invalid argument actually was, I'm no better off! In fact that's part of a general moan/suggestion: could the error messages not be more consistently helpful, if you see what I mean? If resampleAudio kicked out with:
* Here's what I don't like about the rate you provided
* Here is the rate you provided
* Here's what I think the current Audio sample rate is
... I'd be much better off.
Any help would be very gratefully received!
Cheers,
Pete.