Zyklon B
19th November 2008, 18:29
Hi,
During the past few weeks I've been trying to rip some DVDs I had at home using x264 & megui just for fun. Most of them are/were really old movies with crappy quality, so I had to "clean" them a lot using Avisynth.
But now I'm trying to rip a Chinatown DVD, which is grainy but not so terrible. The problem is my Avisynth Script takes way too long to encode (~48h encoding time for a 2pass). The script I am using to clean, which I found here at doom9, uses MVTools and is the following:
SetMemoryMax(1024)
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()
Here is how the original source looks like:
http://xs233.xs.to/xs233/08473/vlcsnap-4685999715.png
And here is how it would look like after the encoding process using said script:
http://xs233.xs.to/xs233/08473/no_noise730.png
Full script I'm using this time is:
DGDecode_mpeg2source("D:\CHINATOWN\VIDEO_TS\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
#deinterlace
crop( 2, 70, -2, -68)
Lanczos4Resize(720,304) # Lanczos4 (Sharp)
Undot() # Minimal Noise (for compressibility)
SetMemoryMax(1024)
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()
I tried to use Undot to remove the noise but it fails completely. Also tried using mc_spuds, but didn't work (anyway I'd read that it's also quite slow). If you need it, I can upload a sample of the source, of course.
Any thoughts on this? Thanks in advance. And sorry for my crappy english :( .
During the past few weeks I've been trying to rip some DVDs I had at home using x264 & megui just for fun. Most of them are/were really old movies with crappy quality, so I had to "clean" them a lot using Avisynth.
But now I'm trying to rip a Chinatown DVD, which is grainy but not so terrible. The problem is my Avisynth Script takes way too long to encode (~48h encoding time for a 2pass). The script I am using to clean, which I found here at doom9, uses MVTools and is the following:
SetMemoryMax(1024)
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()
Here is how the original source looks like:
http://xs233.xs.to/xs233/08473/vlcsnap-4685999715.png
And here is how it would look like after the encoding process using said script:
http://xs233.xs.to/xs233/08473/no_noise730.png
Full script I'm using this time is:
DGDecode_mpeg2source("D:\CHINATOWN\VIDEO_TS\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
#deinterlace
crop( 2, 70, -2, -68)
Lanczos4Resize(720,304) # Lanczos4 (Sharp)
Undot() # Minimal Noise (for compressibility)
SetMemoryMax(1024)
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()
I tried to use Undot to remove the noise but it fails completely. Also tried using mc_spuds, but didn't work (anyway I'd read that it's also quite slow). If you need it, I can upload a sample of the source, of course.
Any thoughts on this? Thanks in advance. And sorry for my crappy english :( .