Dark Shikari
5th June 2007, 03:46
My script:
Part1=DirectShowSource("I:\VIDEO_TS\VTS_01_1.VOB")
Part2=DirectShowSource("I:\VIDEO_TS\VTS_01_2.VOB")
Part3=DirectShowSource("I:\VIDEO_TS\VTS_01_3.VOB")
Part4=DirectShowSource("I:\VIDEO_TS\VTS_01_4.VOB")
Part5=DirectShowSource("I:\VIDEO_TS\VTS_01_5.VOB")
Part1+Part2+Part3+Part4+Part5
degrainmedian(mode=3).fft3dfilter(bw=16, bh=16, ow=8, oh=8, bt=4, sigma=2.5, sigma2=3, sigma3=3.5, sigma4=3)
ConvertToRGB24()
Crop(3,79,-3,-81)
Lanczos4Resize(976,416)
ConvertToYV12()
It works extremely well, and x264 is encoding the video as I post this. However, the audio is messed up when it comes out of Avisynth. To be exact, the audio from the first VOB file is fine, the second is sped up by a factor of two and then the rest of the time until the next VOB is filled up with silence, and the same for all the rest of the VOBs.
The only other way I've found to do this is to extract the five ac3 files, convert+downsample to wav, and then put them one after another--but this seems to produce jumps in the sound, as if they don't exactly line up perfectly.
Is there any way I can fix this issue within AviSynth?
Part1=DirectShowSource("I:\VIDEO_TS\VTS_01_1.VOB")
Part2=DirectShowSource("I:\VIDEO_TS\VTS_01_2.VOB")
Part3=DirectShowSource("I:\VIDEO_TS\VTS_01_3.VOB")
Part4=DirectShowSource("I:\VIDEO_TS\VTS_01_4.VOB")
Part5=DirectShowSource("I:\VIDEO_TS\VTS_01_5.VOB")
Part1+Part2+Part3+Part4+Part5
degrainmedian(mode=3).fft3dfilter(bw=16, bh=16, ow=8, oh=8, bt=4, sigma=2.5, sigma2=3, sigma3=3.5, sigma4=3)
ConvertToRGB24()
Crop(3,79,-3,-81)
Lanczos4Resize(976,416)
ConvertToYV12()
It works extremely well, and x264 is encoding the video as I post this. However, the audio is messed up when it comes out of Avisynth. To be exact, the audio from the first VOB file is fine, the second is sped up by a factor of two and then the rest of the time until the next VOB is filled up with silence, and the same for all the rest of the VOBs.
The only other way I've found to do this is to extract the five ac3 files, convert+downsample to wav, and then put them one after another--but this seems to produce jumps in the sound, as if they don't exactly line up perfectly.
Is there any way I can fix this issue within AviSynth?