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. |
31st December 2003, 02:15 | #1 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
DeScratch plugin for film line scratch removing
I develop DeScratch filter for restoration of my old 8 mm films, may be it will be useful to somebody else.
http://bag.hotmail.ru Last edited by Fizick; 2nd August 2004 at 22:34. |
31st December 2003, 05:41 | #2 | Link |
the dumbest
Join Date: Oct 2002
Location: Malvinas
Posts: 494
|
Fizick please pay a look to restoreinpaint source code.
It will let you remove bigger scratchs and pops with excellent quality. http:\\restoreinpaint.sourceforge.net It uses digital inpainting techniques to restore lost portions of images with great and amazing results. You can get big support from its developer. I hope, in some near future it could be used to remove hardcoded subtitles, not only for ripped DVD, but for old films where some portions of it has been recovered from positive copies with subtitles. |
31st December 2003, 20:28 | #4 | Link |
the dumbest
Join Date: Oct 2002
Location: Malvinas
Posts: 494
|
Sorry, but I can't.I don't know how to code anything.
I wasn't asking you to do something for me, just giving you this info in case you find it useful or anybody else find it useful. I thought you were interested in improving the filter. Last edited by morsa; 31st December 2003 at 20:31. |
1st January 2004, 00:29 | #5 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
1. You can to learn programming.
Standard C is quite simple. I see your similar posts during about year. I am not a real programmer too (only FORTRAN long ago). But if I really needed something, and it is absent, I try do it myself. Sorry for mentor notes. 2. Thanks for info and links. I saw it month ago (seemed from you). But that methods probably is not appropriate to video. 3. My filter works for my video quite well. 4. With what video did you try my filter? And with what parameters settings? Can you show one frame from with your scratches. |
8th January 2004, 00:26 | #8 | Link |
Registered User
Join Date: Aug 2003
Posts: 55
|
Certainly, two 2-frame sequences are here:
http://sch-yuri.narod.ru/DVD/images/...r-fizick-1.jpg http://sch-yuri.narod.ru/DVD/images/...r-fizick-2.jpg http://sch-yuri.narod.ru/DVD/images/...r-fizick-3.jpg http://sch-yuri.narod.ru/DVD/images/...r-fizick-4.jpg My best regards |
9th January 2004, 04:13 | #10 | Link |
Registered User
Join Date: Aug 2003
Posts: 55
|
It's a Russian animated cartoon "Tigryenok na podsolnukhye" (A Tiger Cub on a Sunflower). Dearest Fizick, any scratches are not here the problem but the white snowfalkes themselves, because they are triggered as spots or blobs, which is the sad portion of the story!
Last edited by Yuri; 9th January 2004 at 04:16. |
9th January 2004, 18:37 | #11 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
Dear Yuri!
The more I read your posts, the more I think, that you talk about my DeSpot filter (former CTMEDIAN), but not about DeSratch filter! If so, please answer in another thread (an with with more detailed description of your problem): http://forum.doom9.org/showthread.php?s=&threadid=59388 |
14th July 2004, 19:22 | #13 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
New optimized version of DeScratch is released.
Version 0.3, July 14, 2004 - ported to native Avisynth plugin, Speed increased due to fast blurring by Avisynth resizing functions. (From 2 to 15 fps !) http://bag.hotmail.ru/descratch/descratch.dhtml Recently we can see a great guide to analog capture at doom9. But one part of this guide is not very great It has name "Removal of clicks and scratches" http://www.doom9.org/capture/descratch.html Ivo try use DeSpot for VHS horizontal line-drops removing. I think, that DeScratch is more appropriate tool for descratch (however is not ideal - current version process only luma plane). Of course, you must rotate clip for processing with Descratch (and do not forget rotate it in reverse direction after cleaning ). Example (VHS source from Ivo) Code:
loadplugin("descratch.dll") Avisource("drop-outs_.avi") converttoYV12() 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=300,blurlen=50,keep=100,border=0,maxangle=0) turnright() weave() # restore fields # Compare source frame and frame after scratch removing StackVertical(input,last) |
15th July 2004, 07:40 | #14 | Link |
Registered User
Join Date: Feb 2004
Location: P.R.C
Posts: 95
|
Fizick comrade:
I dream to write myself filter, but there very little guide in this site. Can you give me some guide how to make avisynth or virtualdub's filter with vc++? Maybe you can introduce your great filters writing procedureH Thanks a lot! |
15th July 2004, 09:25 | #15 | Link |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
For AviSynth:
http://www.avisynth.org/FilterSDK -> SimpleSample For VirtualDub, trevlac made a nice intro page. But, I don't have the link here. |
15th July 2004, 12:12 | #16 | Link |
Registered User
Join Date: Feb 2004
Location: P.R.C
Posts: 95
|
@Wilbert:
thank you for your quickly answer. trevlac has gave me a helpness,his guide in this site: http://trevlac.us/vdubGuide/Overview.htm this is neuron2 gave me some guide : http://neuron2.net/ipw-web/bulletin/...opic.php?t=453 thanks these warmheart people : trevac,neuron2,wilbert... |
17th July 2004, 20:09 | #17 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
Toysoldier,
look to Simplesample source! Avisynth plugins is simpler than V.Dub. To all. Version 0.4, released July 17, 2004 Added chroma processing: modeY, modeU, modeV parameters, introduced in version 0.4 after Ivo's request (old versions can process luma only). |
2nd August 2004, 22:33 | #18 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
Version 0.5, July 31, 2004
fixed read-write pointer bug, add "mindifUV" parameter for separate control of chroma U,V planes cleaning, some code reorganization, documentation corrected. I4004 make update of article about VHS drop-outs removing with Descratch. http://neuron2.net/ipw-web/bulletin/...opic.php?t=524 Last edited by Fizick; 3rd August 2004 at 16:21. |
3rd August 2004, 17:04 | #19 | Link |
Unindicted Co-conspirator
Join Date: Jan 2004
Location: Lost Somewhere In Time
Posts: 62
|
I found this thread while I was looking for filters for my Star Trek DVDs, which have a lot of scratches, especially on the previews, which don't seem to have been cleaned up at all before encoding. Using DeScratch I was able to make small (but noticeable) improvements in the episodes and major improvements to the previews. Great filter!
|
19th February 2005, 07:03 | #20 | Link |
Registered User
Join Date: Jan 2005
Location: Spain
Posts: 17
|
Hi people
I have scratches in my video in the form of lines of different colours or distorted. I'm trying Fizick's DeScratch and I've looked for information on Fizick's web and tried the following configuration, it's the same as said on the web but I added asym=1 since the filter marked thicker lines that what I expected. However, I'm still worried about the quantity of "noise" marked by the filter since I don't see any horizontal lines where nearly all marks are present... Sincerely, I don't know where to start tweaking the parameters since I've read them all but have no idea. As a start I would like the filter not to detect as many horizontal scratches as it does now... What values should I change??? Here I leave you a copy of my script AviSource("C:\Ripeos\Cruz y raya\capture00.avi") Trim(0,38467) ++ Trim(47733,66002) #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(asym=1,mindif=4,maxgap=20,minlen=300,blurlen=50,keep=100,border=0,maxangle=0.0, mark=true, modeU=1, modeV=1) turnright() weave() # restore fields # Compare source frame and frame after scratch removing StackVertical(input,last) And here an image with an example of what I mean by the filter marking too much: |
Thread Tools | Search this Thread |
Display Modes | |
|
|