Zyklon B
6th December 2008, 04:24
Hi,
I've been using this MVTools script for "cleaning" some bad looking DVDs I'm compressing to x264 using megui:
SetMemoryMax(256)
AVISource("film.avi")
AssumeTFF()
#source=sEPARATEfIELDS()
backward_vec1=source.MVAnalyse(isb = true, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec1=source.MVAnalyse(isb = false, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec2=source.MVAnalyse(isb = true, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec2=source.MVAnalyse(isb = false, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec3=source.MVAnalyse(isb = true, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec3=source.MVAnalyse(isb = false, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
chroma=source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=1200,idx=1,plane=3)# try tune thSAD
source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=800,idx=1, plane=0)# try tune thSAD
MergeChroma(chroma)
#Weave()
gradfun2db(1.51)
I never really had any problems with it. But recently I've been receiving an error when trying to set up a DGDecode_mpeg2source d2v automatically created by megui. For example, megui creates this AVS script for me:
DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
#deinterlace
crop( 0, 14, 0, -14)
Spline64Resize(720,368) # Spline64 (Sharp)
mergechroma(blur(1.3)) # Little Noise
Ok. Now I go and add the script lines at the bottom of the script, removing of course the AVISource line:
DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
#deinterlace
crop( 0, 14, 0, -14)
Spline64Resize(720,368) # Spline64 (Sharp)
mergechroma(blur(1.3)) # Little Noise
SetMemoryMax(256)
AssumeTFF()
backward_vec1=source.MVAnalyse(isb = true, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec1=source.MVAnalyse(isb = false, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec2=source.MVAnalyse(isb = true, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec2=source.MVAnalyse(isb = false, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec3=source.MVAnalyse(isb = true, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec3=source.MVAnalyse(isb = false, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
chroma=source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=1200,idx=1,plane=3)# try tune thSAD
source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=800,idx=1, plane=0)# try tune thSAD
MergeChroma(chroma)
gradfun2db(1.51)
Then I go and push the "Preview AVS script" button just to see if everything's ok. But it's not. Avisynth tells me "I don't know what source means". So I go and read the MVTools Documentation about what "source" means, and I learn that I have to manually specify what the source is. Ok, I'd never had to do that before, but I will. But first, I try a change. Let's change source.MVDegrain, etc., to "mpeg2source.MVDegrain-etc", or even "DGDecode_mpeg2source.MVDegrain-etc". Then I've got a different error. Avisynth tells me it can't find the specified D2V file "".
I definitely don't know what that means, so finally I try to specify a source manually to MVTools:
source = DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
And the rest of the script. But when I do that, Avisynth tells me it can't do the ColorMatrix, the Crop or the Resize. Finally, I try the following:
source = DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
And the rest of the script, in the shown order or the other. Then the script previews BUT nor the crop neither the resize are being done. The only way I can get the script to work is by doing this:
DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
source = DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
SetMemoryMax(256)
AssumeTFF()
backward_vec1=source.MVAnalyse(isb = true, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec1=source.MVAnalyse(isb = false, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec2=source.MVAnalyse(isb = true, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec2=source.MVAnalyse(isb = false, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec3=source.MVAnalyse(isb = true, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec3=source.MVAnalyse(isb = false, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
chroma=source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=1200,idx=1,plane=3)# try tune thSAD
source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=800,idx=1, plane=0)# try tune thSAD
MergeChroma(chroma)
ColorMatrix(hints=true)
crop( 0, 14, 0, -14)
Spline64Resize(720,368) # Spline64 (Sharp)
mergechroma(blur(1.3)) # Little Noise
gradfun2db(1.51)
But I'm afraid this way the encoding will be much slower, as the MVTools processing is being done BEFORE the crop & resizing. I'm also adding the mergechroma line to improve compressibility, and I doubt it will have any effect if it's added at the bottom of the script. If I try to put the resize/crop lines before the SetMemoryMax() line, the resizing and cropping in the Preview Window are gone.
I don't know what the problem is, and I don't have the faintest idea about what might be happening. Could any of you please offer some insight on this?
Thank you very much in advance.
I've been using this MVTools script for "cleaning" some bad looking DVDs I'm compressing to x264 using megui:
SetMemoryMax(256)
AVISource("film.avi")
AssumeTFF()
#source=sEPARATEfIELDS()
backward_vec1=source.MVAnalyse(isb = true, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec1=source.MVAnalyse(isb = false, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec2=source.MVAnalyse(isb = true, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec2=source.MVAnalyse(isb = false, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec3=source.MVAnalyse(isb = true, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec3=source.MVAnalyse(isb = false, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
chroma=source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=1200,idx=1,plane=3)# try tune thSAD
source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=800,idx=1, plane=0)# try tune thSAD
MergeChroma(chroma)
#Weave()
gradfun2db(1.51)
I never really had any problems with it. But recently I've been receiving an error when trying to set up a DGDecode_mpeg2source d2v automatically created by megui. For example, megui creates this AVS script for me:
DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
#deinterlace
crop( 0, 14, 0, -14)
Spline64Resize(720,368) # Spline64 (Sharp)
mergechroma(blur(1.3)) # Little Noise
Ok. Now I go and add the script lines at the bottom of the script, removing of course the AVISource line:
DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
#deinterlace
crop( 0, 14, 0, -14)
Spline64Resize(720,368) # Spline64 (Sharp)
mergechroma(blur(1.3)) # Little Noise
SetMemoryMax(256)
AssumeTFF()
backward_vec1=source.MVAnalyse(isb = true, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec1=source.MVAnalyse(isb = false, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec2=source.MVAnalyse(isb = true, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec2=source.MVAnalyse(isb = false, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec3=source.MVAnalyse(isb = true, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec3=source.MVAnalyse(isb = false, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
chroma=source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=1200,idx=1,plane=3)# try tune thSAD
source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=800,idx=1, plane=0)# try tune thSAD
MergeChroma(chroma)
gradfun2db(1.51)
Then I go and push the "Preview AVS script" button just to see if everything's ok. But it's not. Avisynth tells me "I don't know what source means". So I go and read the MVTools Documentation about what "source" means, and I learn that I have to manually specify what the source is. Ok, I'd never had to do that before, but I will. But first, I try a change. Let's change source.MVDegrain, etc., to "mpeg2source.MVDegrain-etc", or even "DGDecode_mpeg2source.MVDegrain-etc". Then I've got a different error. Avisynth tells me it can't find the specified D2V file "".
I definitely don't know what that means, so finally I try to specify a source manually to MVTools:
source = DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
And the rest of the script. But when I do that, Avisynth tells me it can't do the ColorMatrix, the Crop or the Resize. Finally, I try the following:
source = DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
And the rest of the script, in the shown order or the other. Then the script previews BUT nor the crop neither the resize are being done. The only way I can get the script to work is by doing this:
DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
source = DGDecode_mpeg2source("D:\PROMESAS_DEL_ESTE_SCN\VIDEO_TS\VTS_01_1.d2v",info=3)
SetMemoryMax(256)
AssumeTFF()
backward_vec1=source.MVAnalyse(isb = true, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec1=source.MVAnalyse(isb = false, delta = 2, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec2=source.MVAnalyse(isb = true, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec2=source.MVAnalyse(isb = false, delta = 4, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
backward_vec3=source.MVAnalyse(isb = true, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
forward_vec3=source.MVAnalyse(isb = false, delta = 6, pel = 2, blksize=8, overlap=4, sharp=1, idx = 1, dct=0, chroma=false)
chroma=source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=1200,idx=1,plane=3)# try tune thSAD
source.MVDegrain3(backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=800,idx=1, plane=0)# try tune thSAD
MergeChroma(chroma)
ColorMatrix(hints=true)
crop( 0, 14, 0, -14)
Spline64Resize(720,368) # Spline64 (Sharp)
mergechroma(blur(1.3)) # Little Noise
gradfun2db(1.51)
But I'm afraid this way the encoding will be much slower, as the MVTools processing is being done BEFORE the crop & resizing. I'm also adding the mergechroma line to improve compressibility, and I doubt it will have any effect if it's added at the bottom of the script. If I try to put the resize/crop lines before the SetMemoryMax() line, the resizing and cropping in the Preview Window are gone.
I don't know what the problem is, and I don't have the faintest idea about what might be happening. Could any of you please offer some insight on this?
Thank you very much in advance.