digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Restore, Filter, Improve Quality (https://www.digitalfaq.com/forum/video-restore/)
-   -   Restore VHS: bad frames, bad colors noise? (https://www.digitalfaq.com/forum/video-restore/12157-restore-vhs-bad.html)

NASS 09-05-2021 04:48 PM

Restore VHS: bad frames, bad colors noise?
 
3 Attachment(s)
hello thanks for reading this post

I did not find a way to solve it is three problem, bad frames, bad colors noise, horizontal line color,

here are some examples of these problems

help me with avs scripts or something else thank you very much,

themaster1 09-06-2021 06:12 AM

3 Attachment(s)
for bad colors (chroma noise use this:)

Quote:

AVISource("BAD COLOR.avi")
SpotLessUV()
Attachment 14101

Attachment 14102
Attachment 14103

NASS 09-06-2021 06:54 AM

thank you very much sir :congrats:, it reduces the problem, do you have a solution for the other problem?
,

lollo2 09-06-2021 06:54 AM

Excellent results for bad colors, congratulations!

To OP, for horizontal disturbance try:
https://forum.doom9.org/showthread.php?t=159914

or
https://forum.doom9.org/showthread.php?t=121197&page=6

or
https://forum.videohelp.com/threads/395600-fixing-damaged-frames-%28as-if-the-video-was-captured-from-a-bad-tape%29

or
Code:

FixRipsp2.RemoveDirtMC
or
many others.

Hushpower 09-06-2021 09:47 AM

Quote:

Originally Posted by THE Master
for bad colors (chroma noise use this

Wow! That's outstanding!

NASS 09-06-2021 11:00 AM

hi, thanks for your answer, unfortunately I did not find any script, I am new in the restoration try to help me with script please! ! thank you very much:congrats:

lollo2 09-12-2021 12:32 PM

6 Attachment(s)
Code:

hi, thanks for your answer, unfortunately I did not find any script, I am new in the restoration try to help me with script please!
Concerning horizontal line color.mpg the grey lines defect stays/moves across a large number of frames, is difficult to repair it.

Using FixRipsp2() 4 times I was able to obtain this, not satisfying for all frames:

some small result:
Attachment 14140

bad result:
Attachment 14141

Here the script, it's very "heavy, you may want to split the operations using only 2 FixRipsp2() calls at the time:
Code:

# interlaced  fields TFF
# problem: horizontal stripe
# solution: repair with FixRipsp2

# FFmpegSource
loadPlugin("C:\Users\giuse\Documents\VideoSoft\MPEG\AviSynth\extFilters\ffms2_87bae19\x86\ffms2.dll")

#video_org=FFmpegSource2("horizontal line color.mpg")
#video_org_trim=video_org.trim(10,100)

video_org_trim=AviSource("1_rep_sequence.avi").convertToYV16()

# plugins directory
plugins_dir="C:\Users\giuse\Documents\VideoSoft\MPEG\AviSynth\extFilters\"

        # FixRipsp2
Import(plugins_dir + "FixRipsp2.avs")
        # RgTools
loadPlugin(plugins_dir + "RgTools-v1.0\x86\RgTools.dll")
        # DePanEstimate
loadPlugin(plugins_dir + "depanestimate110\DePanEstimate.dll")
        # FFTW
loadPlugin(plugins_dir + "LoadDll\LoadDll.dll")
loadDll(plugins_dir + "fftw3_20040130\fftw3win32mingw\fftw3.dll")
        # DePan
loadPlugin(plugins_dir + "depan1131\DePan.dll")
        # MaskTools2
loadPlugin(plugins_dir + "masktools2-v2.2.23\x86\masktools2.dll")
        # MVTools
loadPlugin(plugins_dir + "mvtools-2.7.41-with-depans20200430\x86\mvtools2.dll")

### separate fields
video_org_trim_sep=video_org_trim.AssumeTFF().separateFields()

### select even fields
video_org_trim_sep_even=SelectEven(video_org_trim_sep)

### select odd fields
video_org_trim_sep_odd=SelectOdd(video_org_trim_sep)

### repair
video_org_trim_sep_even_rep=video_org_trim_sep_even.FixRipsp2().FixRipsp2().FixRipsp2().FixRipsp2()
video_org_trim_sep_odd_rep=video_org_trim_sep_odd.FixRipsp2().FixRipsp2().FixRipsp2().FixRipsp2()

### interleave
video_interleaved=interleave(video_org_trim_sep_even_rep,video_org_trim_sep_odd_rep)

### weave
video_restored=video_interleaved.Weave()

return(video_restored)

For a similar problem on a file captured by a friend in the past, we also experimented a frame by frame restoration with Photoshop, where you can rebuild the corrupted lines from adjacent lines or lines from previous frames. Result was better but still not excellent. The first frames were good, but in the latest the proportions in the body of the girl and the table were altered. If you switch fast between the 2 images you will see. More work would have been required!

good result:
Attachment 14136

bad result:
Attachment 14137

NASS 09-13-2021 05:58 AM

thank you very much sir, you are the best ^^

lollo2 09-13-2021 09:45 AM

1 Attachment(s)
Not really, I did not solve the problem.

About the bad frames in the third video a quick fix is replacing them with previous or following frames (very basic AviSynth script). Some frames have bad color, must be fixed with restoration.

Code:

loadPlugin("C:\Users\giuse\Documents\VideoSoft\MPEG\AviSynth\extFilters\ffms2_87bae19\x86\ffms2.dll")

video_org=FFmpegSource2("bad frames.mp4")

video_frames_replaced=video_org.trim(0,34)++video_org.trim(34,34)++video_org.trim(36,37)++video_org.trim(37,37)\
                    ++video_org.trim(39,116)++video_org.trim(116,116)++video_org.trim(118,129)\
                    ++video_org.trim(129,129)++video_org.trim(131,209)++video_org.trim(209,209)\
                    ++video_org.trim(211,303)++video_org.trim(303,303)++video_org.trim(305,316)\
                    ++video_org.trim(316,316)++video_org.trim(319,319)++video_org.trim(319,409)\
                    ++video_org.trim(409,409)++video_org.trim(412,412)++video_org.trim(412,492)\
                    ++video_org.trim(492,492)++video_org.trim(494,585)++video_org.trim(585,585)\
                    ++video_org.trim(587,597)\
                    ++video_org.trim(597,597)++video_org.trim(599,599)++video_org.trim(599,599)\
                    ++video_org.trim(601,610)

return(video_frames_replaced)

Result here: Attachment 14150

NASS 09-13-2021 11:02 AM

thank you very much sir


All times are GMT -5. The time now is 07:59 AM

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