Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st December 2011, 13:01   #1  |  Link
Fah10
Registered User
 
Join Date: Aug 2011
Posts: 5
Problem - Interlaced

Hello, first of all I'm Portuguese and excuse me for the bad English.
When I try to deinterlace the following video, looks like this:
It seems like ghosts when the characters move.

Original:
http://www.mediafire.com/?jseydgmb6t4qcom

With encode:
http://www.mediafire.com/?k2b6qjm4w126yla

Script im using:

video = MPEG2Source("DORAEMON RIP 1.d2v", cpu=0, info=3)
audio = BassAudioSource("DORAEMON RIP 1 Tc0 L2 2ch 48 224 DELAY -232ms.mp2")
AudioDub(video,audio)
ColorMatrix(interlaced=true, d2v="DORAEMON RIP 1.d2v")
Spline36Resize(720,540,9,0,-23,0)

#Deinterlace
QTGMC( Preset="Slower", NoiseProcess=1, NoiseRestore=0.0, Denoiser="dfttest", DenoiseMC=true, NoiseTR=2, Sigma=2 )
SRestore(25)
AssumeFPS(25000,1000)

SpressoX()
NirMalam()
HQDering().DeHalo_Alpha_MT(darkstr=0.3, ss=1.0)
rainbow_smooth(2)
eDeen(7,7,14,1,2)
#VagueDenoiser(threshold=6, method=3, nsteps=6, chromaT=2.0)
naa3mod()
MSharpen(threshold=8, strength=10,mask=false, highq=true)
unsharpmask(strength=8,radius=3,threshold=2)
ColorYUV(gain_y=0,cont_y=0,gain_v=0,gain_u=-0,off_u=-0,off_v=-0).levels(16,1.0,240,0,255)

Last edited by Fah10; 1st December 2011 at 13:17.
Fah10 is offline   Reply With Quote
Old 1st December 2011, 13:10   #2  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
I'm far from an expert on de-interlacing, but it did occur to me you might be better off supplying a sample of the original video rather than the encode.
hello_hello is offline   Reply With Quote
Old 1st December 2011, 13:18   #3  |  Link
Fah10
Registered User
 
Join Date: Aug 2011
Posts: 5
Quote:
Originally Posted by hello_hello View Post
I'm far from an expert on de-interlacing, but it did occur to me you might be better off supplying a sample of the original video rather than the encode.
I already add the original
Thanks
Fah10 is offline   Reply With Quote
Old 1st December 2011, 17:41   #4  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by Fah10 View Post
Spline36Resize(720,540,9,0,-23,0)
What is the height of your source?
Any vertical resizing must be done after deinterlacing.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 1st December 2011, 18:14   #5  |  Link
Fah10
Registered User
 
Join Date: Aug 2011
Posts: 5
Quote:
Originally Posted by Gavino View Post
What is the height of your source?
Any vertical resizing must be done after deinterlacing.
The source is 720x576 (original video).
Fah10 is offline   Reply With Quote
Old 1st December 2011, 18:57   #6  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
As Gavino said, a resize before deinterlacing is amazing in how much damage it can do.

Code:
video = MPEG2Source("DORAEMON RIP 1.d2v", cpu=0, info=3)
audio = BassAudioSource("DORAEMON RIP 1 Tc0 L2 2ch 48 224 DELAY -232ms.mp2")
AudioDub(video,audio)
ColorMatrix(interlaced=true, d2v="DORAEMON RIP 1.d2v") 
Crop(9,0,-23,0)

#Deinterlace
QTGMC( Preset="Slower", NoiseProcess=1, NoiseRestore=0.0, Denoiser="dfttest", DenoiseMC=true, NoiseTR=2, Sigma=2 )
SRestore(25)
AssumeFPS(25000,1000)

SpressoX()
NirMalam()
HQDering().DeHalo_Alpha_MT(darkstr=0.3, ss=1.0)
rainbow_smooth(2)
eDeen(7,7,14,1,2)
#VagueDenoiser(threshold=6, method=3, nsteps=6, chromaT=2.0)
naa3mod()
MSharpen(threshold=8, strength=10,mask=false, highq=true)
unsharpmask(strength=8,radius=3,threshold=2)
ColorYUV(gain_y=0,cont_y=0,gain_v=0,gain_u=-0,off_u=-0,off_v=-0).levels(16,1.0,240,0,255)
Spline36Resize(720,540)
Asmodian is offline   Reply With Quote
Old 1st December 2011, 19:41   #7  |  Link
Fah10
Registered User
 
Join Date: Aug 2011
Posts: 5
Quote:
Originally Posted by Asmodian View Post
As Gavino said, a resize before deinterlacing is amazing in how much damage it can do.

Code:
video = MPEG2Source("DORAEMON RIP 1.d2v", cpu=0, info=3)
audio = BassAudioSource("DORAEMON RIP 1 Tc0 L2 2ch 48 224 DELAY -232ms.mp2")
AudioDub(video,audio)
ColorMatrix(interlaced=true, d2v="DORAEMON RIP 1.d2v") 
Crop(9,0,-23,0)

#Deinterlace
QTGMC( Preset="Slower", NoiseProcess=1, NoiseRestore=0.0, Denoiser="dfttest", DenoiseMC=true, NoiseTR=2, Sigma=2 )
SRestore(25)
AssumeFPS(25000,1000)

SpressoX()
NirMalam()
HQDering().DeHalo_Alpha_MT(darkstr=0.3, ss=1.0)
rainbow_smooth(2)
eDeen(7,7,14,1,2)
#VagueDenoiser(threshold=6, method=3, nsteps=6, chromaT=2.0)
naa3mod()
MSharpen(threshold=8, strength=10,mask=false, highq=true)
unsharpmask(strength=8,radius=3,threshold=2)
ColorYUV(gain_y=0,cont_y=0,gain_v=0,gain_u=-0,off_u=-0,off_v=-0).levels(16,1.0,240,0,255)
Spline36Resize(720,540)
Thank you very very much it worked.
here it is:
http://www.mediafire.com/?4nj7u6xlse9k9vx
Another thing is to remove small macro blocks, you can explain who to remove them?
Thx

Last edited by Fah10; 1st December 2011 at 19:43.
Fah10 is offline   Reply With Quote
Old 2nd December 2011, 00:52   #8  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by Fah10 View Post
Thank you very very much it worked.
I'm surprised this worked:
Quote:
Originally Posted by Asmodian View Post
Code:
Crop(9,0,-23,0)
I would have expected an error: "Crop: YUV images can only be cropped by even numbers".
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 2nd December 2011, 10:29   #9  |  Link
Fah10
Registered User
 
Join Date: Aug 2011
Posts: 5
I have another "solution" with this you have no bad deinterlaçe and you can crop without errors. Put the Spline36Resize(720,540,9,0,-23,0) in the last part of the script... thanks
video = MPEG2Source("DORAEMON RIP 1.d2v", cpu=0, info=3)
audio = BassAudioSource("DORAEMON RIP 1 Tc0 L2 2ch 48 224 DELAY -232ms.mp2")
AudioDub(video,audio)
ColorMatrix(interlaced=true, d2v="DORAEMON RIP 1.d2v")

#Deinterlace
QTGMC( Preset="Slower", NoiseProcess=1, NoiseRestore=0.0, Denoiser="dfttest", DenoiseMC=true, NoiseTR=2, Sigma=2 )
SRestore(25)
AssumeFPS(25000,1000)

SpressoX()
NirMalam()
HQDering().DeHalo_Alpha_MT(darkstr=0.3, ss=1.0)
rainbow_smooth(2)
eDeen(7,7,14,1,2)
#VagueDenoiser(threshold=6, method=3, nsteps=6, chromaT=2.0)
naa3mod()
MSharpen(threshold=8, strength=10,mask=false, highq=true)
unsharpmask(strength=8,radius=3,threshold=2)
ColorYUV(gain_y=0,cont_y=0,gain_v=0,gain_u=-0,off_u=-0,off_v=-0).levels(16,1.0,240,0,255)
Spline36Resize(720,540,9,0,-23,0)
Fah10 is offline   Reply With Quote
Old 2nd December 2011, 20:55   #10  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
I should probably have looked at it more, I just moved the resize but left the crop as it can be done before deinterlacing.

I didn't do any other sanity checks.
Asmodian is offline   Reply With Quote
Reply

Tags
avspmod, deinterlace, interlace, script, video

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:18.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.