digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Restore, Filter, Improve Quality (https://www.digitalfaq.com/forum/video-restore/)
-   -   AviSynth 2.6 to + (transparent and gray lines) (https://www.digitalfaq.com/forum/video-restore/12758-avisynth-transparent-gray.html)

NLP.bandler 05-05-2022 08:14 AM

AviSynth 2.6 to + (transparent and gray lines)
 
1 Attachment(s)
Hi folks,

I'm having some problems with AviSynth+.

I mean, I am using the script below that was created for AviSynth version 2.6 and I'm trying to adapt it to AviSynth +.

But I'm having a hard time trying to find: ContrastMask --- RemoveDirtMC --- RemoveSpotsMC2() that works on AviSynth +

I use MaskTools2.dll version of 09/04/2020.

I have attached the error image below.


Code:

SetMemoryMax(1024)
#SetFilterMTMode("MT_SERIALIZED", 3)

#LoadPlugin("D:\App\AVS\plugins64+\RemoveGrain.dll")
LoadPlugin("M:\Temp2\MaskTools2.dll")
#LoadPlugin("M:\Temp2\Depan.dll")
#LoadPlugin("M:\Temp2\DepanEstimate.dll")
#LoadPlugin("M:\Temp2\MVTools2.dll")
#LoadPlugin("M:\Temp2\LSMASHSource.dll")
#LoadPlugin("M:\Temp2\RgTools.dll")
#LoadPlugin("M:\Temp2\D2VSource.dll")
#LoadPlugin("M:\Temp2\MPEG2DecPlus64.dll")
#Import("M:\Temp2\Zs_RF_Shared.avsi")
#Import("M:\Temp2\LSFMod.avsi")
#Import("M:\Temp2\SetMTMode.avsi")
#Import("M:\Temp2\Stab.avsi")
Import("M:\Temp2\ContrastMask.avs")
Import("M:\Temp2\RemoveDirtMC.avsi")
###MPEG2Source("M:\Paulo Medeiros Junior  19-7-18\DVD\02-2.d2v")
AVISource("E:\Vinicius 7.10.21 - Fazer\02 Vinicius 3capt V17JVCES10 AVDPTL.avi") # DV AV

#v = LSMASHVideoSource("E:\Vinicius 7.10.21 - Fazer\02 Vinicius 3capt V17JVCES10.mp4", track=0, threads=0, seek_mode=0,
#\                seek_threshold=10, dr=False, fpsnum=30, fpsden=1,
#\                format="YUV420P8", decoder="", prefer_hw=0, ff_loglevel=0)
#a = LSmashAudioSource("E:\Vinicius 7.10.21 - Fazer\02 Vinicius 3capt V17JVCES10.mp4")
#AudioDub(v,a)



#SetFilterMTMode("DEFAULT_MT_MODE", 2)


#Trim(80,500)
AssumeTFF()
ConvertToYV12(interlaced=true,ChromaOutPlacement="MPEG2")
ContrastMask(enhance=6.5)
ColorYUV(off_v=4)
Levels(12,0.95,255,16,235,dither=true,coring=false)

ConvertToYV12(interlaced=true,ChromaOutPlacement="MPEG2")
SeparateFields()
e=SelectEven().RemoveDirtMC(80,false).TurnRight().RemoveSpotsMC2().TurnLeft()
o=SelectOdd().RemoveDirtMC(80,false).TurnRight().RemoveSpotsMC2().TurnLeft()
Interleave(e,o)
Weave()
#Prefetch(17)
return last  #<-- Save as "Test2_Part02_A.avi" with Lagarith YV12 ---#



With this script I want to solve some problems with transparent and gray lines. The DigitalFaq user sanlyn answered a thread almost 3 years ago helping another folk here (glazuna) with great success. But his script was created for AviSynth version 2.6 and I'm trying to adapt it to AviSynth + without success.

I'm trying to solve the exact same problem faced by glazuna my video have a lot of fine/thin transparent lines. Also gray lines. But, if I only solve the transparent lines it would be amazing.

I also already tried to clean the tape many types and tested it in 6 different VCRs. With this process the video improved a lot. But these fine lines still remains.

Thread link: http://www.digitalfaq.com/forum/vide...ent-lines.html



Thank you so much in advance!

lollo2 05-05-2022 11:58 AM

Never used AviSynth+, but are you loading the missing plugin, including FFTW 3.3.5? http://avisynth.nl/index.php/VariableBlur


All times are GMT -5. The time now is 02:25 AM

Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.