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 > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th February 2005, 23:50   #21  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
Dear killer,

1. All scratches marked by Descratch on your example are weak scratches, which will NOT be cleaned.

2. Only strong (with dif > mindif) and long (length > minlen) scratch will be cleaned by Descratch.
It would be marked by deep black.

3. IMHO, I do not see any line on you example for Descratch.
Try DeGrainMedian instead.
or some other filter (fft3d ?).
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 20th February 2005, 20:59   #22  |  Link
killer_jaime11
Registered User
 
Join Date: Jan 2005
Location: Spain
Posts: 17
Hi Fizick
Thanks for answering that quickly, I've been trying to tune your filter starting off with the parameters on your page but I don't get the right settings, I've tried increasing mindif and minlen to get less detection, also I turned on the modeU and modeV and put mindifUV=0 so it gets mindif. But the problem is that the scratches that I want to be removed don't get removed, scratches like this:



This is the only kind of scratch I need to remove from my clip. What settings do you suggest me to use Fizick?? Also I'm getting detected other parts of the clip which aren't scratches. The Avisynth code used is:

#Fizick's DeSpot
loadplugin("C:\Archivos de programa\AviSynth 2.5\plugins\descratch.dll")
ConvertToYV12(interlaced=true)
crop(0,0,-0,288) # select top part of frame to save screen space
input=last
assumetff()

separatefields() # for analog interlaced source
turnleft()
descratch(mindif=4,maxgap=20,minlen=110,blurlen=50,keep=100,border=0,maxangle=0.0,modeU=1,modeV=1,mindifUV=0, mark=false)
turnright()
weave() # restore fields
# Compare source frame and frame after scratch removing
StackVertical(input,last)

Also, I've noticed a strange image, see what I've got:



No idea why the face of the man is distorted, I thought it could be because of the detection marking but it's turned off.
Thanks in advance
killer_jaime11 is offline   Reply With Quote
Old 13th March 2005, 11:26   #23  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
One user (UFFE) sent to me this e-mail.
Quote:
Some video sources like Laserdiscs sometime have spots and scratchs that are almost the same size all the time, but if you try to remove them with despot or descratch you often get many false corrections. I would like to know if it is possible to add these functions:
A "maxlen" parameter for descratch to determin the maximum length of a scratch, this could be very usefull if you only want to remove scratches that are almost the same length.
"minpwidth" and "minpheight" parameters for despot to determin the minimum size of a spot, this could be very usefull if you only want to remove spots that are almost the same size.
So, now I release Descratch Version 0.8, March 13, 2005 - added maxlen parameter
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 14th September 2006, 07:11   #24  |  Link
grannyGeek
Registered User
 
Join Date: Apr 2006
Posts: 81
Souce clip has many vertical scratches & lines, looks a lot like the screenshot in DeScratch guide.
I tried the small sample script in the guide,

Code:
AviSource("whatever.avi")
LoadPlugin("descratch.dll")
ConvertToYV12()
DeScratch(lumadif=2)


Using in VirtualDubMpeg2, and it won't load, gives error message
"DeScratch does not have named argument "lumadif"


Which current parameter replaced lumadif ?
Or is that an obsolete setting now?

what would be the simplest script for DeScratch?

Thanks for any help.
grannyGeek is offline   Reply With Quote
Old 15th September 2006, 04:39   #25  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
mindif
I fixed the doc (and released the source code)
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.

Last edited by Fizick; 15th September 2006 at 22:01.
Fizick is offline   Reply With Quote
Old 15th September 2006, 06:36   #26  |  Link
grannyGeek
Registered User
 
Join Date: Apr 2006
Posts: 81
Thank you sir!
appreciate your filters more than I can say
I'm still bragging about my good results with DeSpot
grannyGeek is offline   Reply With Quote
Old 24th August 2011, 03:54   #27  |  Link
marknyc5
Registered User
 
Join Date: Mar 2003
Posts: 19
No effect - how can I fix my script?

I've created an avs file, but see no effect at all. I've been trying different scripts and here is the latest. This is for a black and white film with black vertical scratches. What am I doing wrong in the script?

Thanks for any help!

Mark

DirectShowSource("lemonade.avi")
LoadPlugin("descratch.dll")
ConvertToYV12()
DeScratch(mindif=5)
DeScratch(maxgap=55)
DeScratch(keep=0)
DeScratch(mark=true)
marknyc5 is offline   Reply With Quote
Old 24th August 2011, 09:29   #28  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,545
You will not want to call Descratch 4 times in row with only one parameter.
I guess you will want to call Descratch only once with your 4 parameters separated by commas.

The Descratch.html gives examples. Like

Code:
DeScratch(mindif=4, maxgap=20, minlen=300, blurlen=50, keep=100, border=0, maxangle=0)
Besides there are many occasions where Descratch will find nothing. The scratch width is still limited to 1 pixels or 3 pixels.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."

Last edited by Emulgator; 24th August 2011 at 09:31.
Emulgator is offline   Reply With Quote
Old 31st May 2016, 13:52   #29  |  Link
Bernardd
Registered User
 
Join Date: Jan 2012
Location: Toulon France
Posts: 249
Hello Fizick,

Thanks you for the last release of Descratch. The strach corrections are now very good, it is difficult with a picture tool like Gimp to get faster and better correction.
The new args left and right are genius. With them, it is more easy to find a common tune of values for long frames serial.

I believe it would be more perfect, if the no process area would be between rigth and left, when arg left is superior than arg right.

Thanks
Bernardd is offline   Reply With Quote
Old 11th July 2017, 18:05   #30  |  Link
Transatlantic
Registered User
 
Join Date: Jul 2017
Posts: 1
Excellent Descratch version 1.1

I have been using Descratch for some time on Super 8 mm and 8 mm restoration projects.

I was quite pleased, although there were cases where it was inapplicable, especially if the scene contained a number of vertical objects, such as a fence or vertical posts.

I had noticed that vertical scratches very often appear in the same area of the image. In my case on the right hand side of the image. This is probably due to mechanical friction in movie projectors.
It is only recently that I realized that Descratch was updated to version 1.1 to include “right” and “left” parameters (amongst other improvements).

This is just what I dreamed of! I can now apply more aggressive parameters to the scratched area without risking false detections in other areas.

This is a vast improvement. And setting the right parameters is much easier, because you can concentrate on the area containing scratches, and disregard the area that does not contain scratches…

Other improvements are also welcome, such as more “maxwidth” values… and “more smooth scratch borders removing”.

Thank you very much for this excellent updated version!

By the way, there is one parameter that is still some sort of mystery to me: that is “asym”. I have not been able to make out what it actually does and how to tweak it. Maybe it is difficult to explain in words, but easy with a picture… Can anyone explain, or show this on a picture?

Patrick

from Brittany, France
Transatlantic is offline   Reply With Quote
Old 29th November 2023, 12:59   #31  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Latest ver Adds YV16 and YV24 support.
https://github.com/vapoursynth/descratch/releases
kedautinh12 is offline   Reply With Quote
Old 29th November 2023, 17:17   #32  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,580
Quote:
Originally Posted by kedautinh12 View Post
Latest ver Adds YV16 and YV24 support.
Dues it work for AVS+ too?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 29th November 2023, 17:39   #33  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
"Note that in VapurSynth all arguments are fully lowercased. Also comes with Avisynth support."
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is online now   Reply With Quote
Old 30th November 2023, 00:52   #34  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Note: "A combined VapourSynth+Avisynth verion of the the DeScratch filter written by Fizick"
kedautinh12 is offline   Reply With Quote
Reply

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 01:28.


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