Voici un script Avisynth qui permet de retirer des barres blanches de distorsion.
Ces barres blanches apparaissent lorsque vous numériser des cassettes vidéo VHS si la bande et un peu détendue ou abimée.
Il fut que vous mettiez tous le plugins nécessaire dans votre dossier plugin. ici pour Avisynth+ : C:\Program Files (x86)\AviSynth+\plugins+\
Vous aurez besoin de :
FixRips2.avs , RgTools.dll, DePanEstimate.dll, LoadDLL32.dll, fftw3.dll, DePn.dll, masktool2.dll, mvtools2.dll,
#Source : https://forum.videohelp.com/threads/403553-Restoring-VHS-Tapes-with-Damage-(White-Horizontal-Lines-Colour-Distortion)#post2635329
#Script by lollo
#Modified by : Mes-Passions-Sur-Le-Net
# interlaced fields TFF
# problem: horizontal stripe
# solution: repair with FixRipsp2
# Open AVI file
video_org=AviSource("file.avi").convertToYV16(interlaced=true)
# plugins directory where all the plugins are stored
plugins_dir="C:\Program Files (x86)\AviSynth+\plugins+\"
# FixRipsp2
Import(plugins_dir + "FixRipsp2.avs")
# RgTools
loadPlugin(plugins_dir + "RgTools.dll")
# DePanEstimate
loadPlugin(plugins_dir + "DePanEstimate.dll")
# FFTW
loadPlugin(plugins_dir + "LoadDll32.dll")
loadDll(plugins_dir + "fftw3.dll")
# DePan
loadPlugin(plugins_dir + "DePan.dll")
# MaskTools2
loadPlugin(plugins_dir + "masktools2.dll")
# MVTools
loadPlugin(plugins_dir + "mvtools2.dll")
### separate fields
video_org_sep=video_org.AssumeTFF().separateFields()
### select even fields
video_org_sep_even=SelectEven(video_org_sep)
### select odd fields
video_org_sep_odd=SelectOdd(video_org_sep)
### repair
video_org_sep_even_rep=video_org_sep_even.FixRipsp2().FixRipsp2()
video_org_sep_odd_rep=video_org_sep_odd.FixRipsp2().FixRipsp2()
### interleave
video_interleaved=interleave(video_org_sep_even_rep,video_org_sep_odd_rep)
### weave
video_restored=video_interleaved.Weave()
# Result :
return(video_restored)
# Original VS Result : (need to remove all the # below this line)
#stackhorizontal(\
#subtitle(video_org,"video_org",size=20,align=2),\
#subtitle(video_restored,"video_restored",size=20,align=2)\
#)