#1  
06-15-2018, 07:01 AM
benni2 benni2 is offline
Free Member
 
Join Date: Jun 2018
Posts: 5
Thanked 1 Time in 1 Post
hi folks,

i captured old 90s camcorder clips but having trouble to clean up the material.

i've read lord smurf's article about chroma flaws and tested the mentioned filters. but i can't get rid of the red-blue "yuck" as he calls it

i'm attaching a screenshot without any filters (not even deinterlace).

can you help me clean up the material? it doesn't have to be perfect, but this red-blue effect is disturbing.

cheers
benni


Attached Images
File Type: jpg capture3.jpg (287.5 KB, 67 downloads)
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
06-15-2018, 07:08 AM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,508
Thanked 2,449 Times in 2,081 Posts
Lines of that nature may be more than just chroma errors, and can denote head damage (either or play or original record).

- If it's play, a better VCR helps resolve it.
- If its from record, then we're into restoration territory. More is needed than mere chroma noise removal.

Attach a clip, 99mb max, preferably smaller. Either high bitrate H.264 (7mbps VBR) of MPEG-2 (15mbps CBR) is adequate to see the error, lossless not required.

What was the capture VCR?

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #3  
06-15-2018, 07:37 AM
benni2 benni2 is offline
Free Member
 
Join Date: Jun 2018
Posts: 5
Thanked 1 Time in 1 Post
wow, thanks for the ultra-fast reply

i'm not sure what you mean by "play" vs "original record" - it's from a camcorder, so we taped it ourselves with an old device back in the 90s on VHS-C.

for the capture, i used an VHS-C to VHS adapter and my VCR is a sony SLV-SX720 (PAL).

i'm having this effect in all the camcorder tapes i captured. so i guess, i should try a different VCR?


Attached Files
File Type: avi sample1.3.avi (9.83 MB, 32 downloads)
Reply With Quote
  #4  
06-15-2018, 07:56 AM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,508
Thanked 2,449 Times in 2,081 Posts
- The camcorder from 90s recorded it. If recorder had error, it's on the tape forever.
- The VCR you have now is playing it. The player has error, not on tape, switching player can fix it.

Sony isn't the best VHS VCR, but not worst. S-VHS with TBC, of course, is far better.

Look at the tape. Do you see scratches?
I'd suggest not using that Sony at all before trying another deck. What you don't want is for that Sony to mess up the tapes.

Looking at the sample, there's a lot of timing wiggle and chroma that would be 99% fixed in a proper JVC S-VHS VCR with TBC.

Your IP shows Germany, is that right? There's a lot of really nice PAL VCRs on eBay Germany (and lots of sellers that refuse to post elsewhere, be it USA or UK). Going rate about 200-300 €, which is not bad at all. Buy it, use it, resell it -- and preferably to somebody outside Germany.

Those lines seem fleeting, only a frame or two, so unsure where the error is coming from right now. Troubleshoot, process of elimination, start with better VCR.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #5  
06-15-2018, 06:56 PM
sanlyn sanlyn is offline
Premium Member
 
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,307 Times in 982 Posts
Thanks for posting samples.

Quote:
Originally Posted by benni2 View Post
i'm not sure what you mean by "play" vs "original record" - it's from a camcorder, so we taped it ourselves with an old device back in the 90s on VHS-C.
sometimes the phrase "original record" might be open to interpretation, but it usually refers to the originally recorded source, in this case a VHS-C tape. Another phrase3 you'll often see is "original capyure;', which measn the original, unfiltered, and otherwise unaltered digital capture in its original colorspace and capture codec.

Your avi sample has been encoded to lossy AVC. Restoration work on border stains should be attempted using the original capture colorspace. If you're capturing to AVC in the first place, you've already set your restoration project a step backward.

It's encoded to a large GOP size (250 frames) which is disastrous for editing with lossy codecs.

The video is physically interlaced but has been incorrectly re-encoded as progressive.

The video is captured with unsafe video levels (blown-out hightlights) and elevated black levels that give it a flat, slightly overexposed look, with visibly clipped highlights and hot spots (look at the big rock). The image below is a frame from the avi sample, with side borders and head-switching noise removedm to avoid affecting the histogram measurements. A YUV histogram is attached ton the frame. Large pale blue arrows on the top band of the histogram point to elevated black levels just to left of center in the white band and to unsafe (clipped) highlights in the upper right-hand corner of the histogram.



As mentioned earlier, there is visible scanline timing errorm distortion, but there is also dot crawl and herringbone noise (look at the frog and the blue drainpipe).

Here is a 2x blowup showing dot crawl and herringbone, notably on the frog and the rock but visible everywhere:



Border stains are usually a sign of improperly stored tape as well as poor tracking because of tape deformation in storage. In this case it looks like UV channel inversion due to tracking problems. Another tape player could possibly look different, but not likely. You can give another VCR a try. Various Avisynth filters and overlay techniques have been used to minimize the stains, but they don't work 100% and they don't work at all after an original has been re-encoded.

Dot crawl can be repaired somewhat in Avisynth, but not without softening the video. Herringbone is extremely difficult to repair and anti-herringbone filters are very destructive of detail. It's best to avoid dot crawl altogether by using either an s-video output or a device with a good 3D comb filter, such as certain DVD-R's used for line-sync pass thru. Herringbone is usually a fault of the player, but is sometimes caused by a few cheap capture cards.


Attached Images
File Type: jpg unsafe video levels YUV.jpg (79.3 KB, 187 downloads)
File Type: jpg 2X Blowup.jpg (146.1 KB, 191 downloads)

Last edited by sanlyn; 06-15-2018 at 07:08 PM.
Reply With Quote
  #6  
06-16-2018, 03:30 AM
themaster1 themaster1 is offline
Free Member
 
Join Date: Feb 2011
Location: France
Posts: 497
Thanked 99 Times in 83 Posts
for herringbones nothing's better than f1quiver (tested before)

Code:
avisource() #assuming progressive source
F1Quiver(last,"custom", 25, 100, 50, 35, 70,0, 80,90, 120,30,test =true,row = 155, erow=300,degree = 8,gamma =0.2 )
for strong dot crawl:
Code:
avisource()
main=last
main
bicubicresize(480,320)#  NTSC source
spline64resize(720,480) # NTSC source
lsfmod
filtered=last
main
mt_edge(mode="prewitt",chroma="copy").mt_expand #prewitt mode is more agressive / use mode="min/max" otherwise
mymask=last
Reply With Quote
  #7  
06-16-2018, 12:45 PM
sanlyn sanlyn is offline
Premium Member
 
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,307 Times in 982 Posts
working with Benni2's sample, the attached mp4 is the best I could get without over smoothing. Filers used for dot crawl and herringbone are among then most destructive around and should only be used on rather sharp videos. Meanwhile I had no luck with FFTQuiver and have never had good results with it. Meanwhile themaster1's script is incomplete and gave unexpected results. The script I used is a little more common. Chubbyrain2 and MCTemporslDenoise in chroma mode worked on the left and right border stains. checkmate and a resizing mask worked fairly well on the dot crawl and herringbone. Stronger filters would soften even more. The right border also has a dark gray "echo" border and about 4 pixels of distorted image. You might want to crop off a few more right-hand pixels than I did, but on most TV's tye viewer would likely not notice:

Code:
Import("Drive:\path\to\Avisynth\plugins\ChubbyRain2.avs")
Import("Drive:\path\to\Avisynth\plugins\RemoveDirtMC.avs")
Import("Drive:\path\to\Avisynth\plugins\ReplaceFramesMC.avs")
Import("Drive:\path\to\Avisynth\plugins\LimitedSharpenFaster.avs")

AviSource("drive:\path\to\sample1.3.avi")
ConvertToYV12(interlaced=true)
ColorYuv(off_y=-20)
SmoothLevels(12,1.1,255,16,255)
AssumeTFF()

# --------------- chubbyrain2 - interlaced, 2 borders ----------
separatefields()
    a=last

#create "a1" filtered clip from "a"
    a
    chubbyrain2()
    smoothuv(radius=7)
    MergeChroma(MCTemporalDenoise(settings="High"))
    a1=last

#create "b" filtered overlay clip from "a1" (left border)
    a1
    SmoothTweak(brightness=5,hue2=-8)
    crop(0,0,-704,0)
    b=last

#create "c" filtered overlay clip from "a1" (right border)
    a1
    SmoothTweak(hue1=3,hue2=-10)
    crop(696,0,0,0,true)
    c=last

#overlay the "b" left border onto original "a", creating "d" version
    overlay(a,b)
    d=last
     
#overlay the "c" right border onto original "d", creating "e" version
    overlay(d,c,x=696)
    ### --- restore interlace ---
    weave()
    e=last

# ---------- deinterlace "e" version ----------------
e
QTGMC(preset="very fast", border=true)

# ---------- Bad Dot Crawl ----------------
main = last
main
checkmate()
bicubicresize(460,288)
spline36resize(720,576)
lsfmod()
filtered=last
main
mt_edge().mt_expand
mymask=last
mt_merge(main, filtered, mymask)

# ------ Replace dropout in deinterlaced frame 96 ------
ReplaceFramesMC(96,1)
RemoveDirtMC(30,false)
LimitedSharpenFaster(strength=200)
# ------ Re-interlace ------
SeparateFields().SelectEvery(4,0,3).Weave()
Crop(10,0,-10,-8).AddBorders(10,4,10,4)
# ------ to RGB for VirtualDub filter -------
ConvertToRGB32(interlaced=true,matrix="Rec609")
return last
.

It's best to have a better vcr with s-video to avoid dot crawl to begi8n with. Ihave a rebuilt SONY FLV-595HF that still has great playback with old tapes but needs a dot crawl filter and line tbc pass-thru with a Panasonic DMR-ES10.


Attached Files
File Type: mp4 sample1_3.mp4 (6.34 MB, 27 downloads)
Reply With Quote
  #8  
08-30-2018, 04:18 PM
benni2 benni2 is offline
Free Member
 
Join Date: Jun 2018
Posts: 5
Thanked 1 Time in 1 Post
wow, thank you all for your answers. you are amazing pros i kneel before thee....

and sorry for the late answer. i was so busy finding another VCR and then got software problems (see other thread) that are solved now.

the new caps from the other VCR (though 6-headed) haven't been better at all. maybe even worse. probably it's the cheap usb capture device. and my good old wintv go pci-card got no drivers for win7 anymore.

i'll play around with your filter settings in the next days and will report how it worked. or ask questions shortly before my head explodes

-- merged --

ok, i'm trying to load / import all the scripts and plugins that you used. but no matter how much i read all the readme files, i'm stumbling from one missing plugin to the next.
at the moment, it can't find mt_convolution that is used in ChubbyRain2.avs. and i can't find it in this board, either.

is there an easier way? do you maybe have the scripts in a neat package with all necessary plugins?
Reply With Quote
  #9  
09-03-2018, 08:29 PM
sanlyn sanlyn is offline
Premium Member
 
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,307 Times in 982 Posts
Quote:
Originally Posted by benni2 View Post
ok, i'm trying to load / import all the scripts and plugins that you used. but no matter how much i read all the readme files, i'm stumbling from one missing plugin to the next.
at the moment, it can't find mt_convolution that is used in ChubbyRain2.avs. and i can't find it in this board, either.

is there an easier way? do you maybe have the scripts in a neat package with all necessary plugins?
mt_convolution is not a filter. It's a function in the MaskTools2.dll plugin.

Note: don't download Avisynth or VirtualDub filter packages and zips directly into plugin folders. Filter downloads usually include additional files and documentation that you don't want in your plugin folders. Instead, create folders on your PC for Avisynth downloads and VirtualDub downloads. Then make subfolders with the same name as the filter you're downloading. Then copy only the filter itself into the relevant plugin folder.

Some of these plugins are available only as .7z files, which requires the 7Zip application. 7Zip is free and is a very handy tool. Get it here: https://www.7-zip.org/.

SmoothLevels() is a function in the SmoothAdjust plugin. The latest version is 3.20. The download link is in this post at doom9: https://forum.doom9.org/showpost.php...75&postcount=1 .

The documentation and download page for Chubbyrain2 is http://avisynth.nl/index.php/ChubbyRain2. the mt_convolution you mention isn't furnished with ChubbyRain2. It's a function of MaskTools2, which you'll find by browsing the ChubbyRain2 page is one of the required support plugins. The latest MaskTools version is 2.2.17, but you're better off with the v2.2.10 that comes with the QTGMC plugin package -- and you need QTGMC anyway
(http://www.digitalfaq.com/forum/atta...g-qtgmc_newzip). The QTGMC package contains several plugins plus instructions for everything inside. It even includes links to the Microsoft VisualC runtimes you'll need for these and many other plugins.

ChubbyRain2 also requires the cnr2 plugin, available at digitalfaq as cnr2_v261.zip
(http://www.digitalfaq.com/forum/atta...d-cnr2_v261zip).

Another support file named in the ChubbyRain2 documentation page is the Bifrost plugin. There are a few versions around, but v2.0 is the safest and is attached as Bifrost_v2.zip.

The next heavy hitter plugin is MCTemporalDenoise, or MCTD for short. It requires several support plugins. The main download and documentation page is http://avisynth.nl/index.php/MCTemporalDenoise. MCTD requires the following plugins:

- MVTools2. version 2.7.21.22 is Included with QTGMC..

- MaskTools2. Included with QTGMC.

- FFT3DFilter. Included with QTGMC.

- RGTools. Included with QTGMC.

- EEDI2. Included with QTGMC.

- AddGrainC. Included with QTGMC.

- LSFMod, main page and download link at http://avisynth.nl/index.php/LSFmod.

- --- LSFMod requires MaskTools2 and RGTools, both included with QTGMC.

- --- LSFmod requires VariableBlur (http://www.digitalfaq.com/forum/atta...bleblur_070zip)

- --- LSFmod requires awarpsharp (from aWarpSharp2_2015.zip at
http://www.digitalfaq.com/forum/atta...sharp2_2015zip)

- TTempSmooth. http://web.archive.org/web/201404201...Smoothv094.zip

- DeBlock_QED. Is in DeBlock_QED.zip
(http://www.digitalfaq.com/forum/atta...deblock_qedzip)
- --- requires DeBlock from DeBlock. DeBlock_13.zip (
http://www.digitalfaq.com/forum/atta...-deblock_13zip)
- --- requires DCTFilter from DCT_Filter_0150.zip (
http://www.digitalfaq.com/forum/atta...filter_0150zip)

- SangNom. http://avisynth.nl/index.php/SangNom

- GradFun2DBmod. main page and download link at http://avisynth.nl/index.php/GradFun2DBmod.
- --- requires GradFun2DB (http://avisynth.nl/index.php/GradFun2db)
- --- requires AddGrainC, MaskTools2, and RGTools, which are all included with QTGCM.

Checkmate (http://avisynth.nl/index.php/Checkmate)

ReplaceFramesMC (http://www.digitalfaq.com/forum/atta...ceframesmcavsi). Requires MVTools2, included with QTGMC.

RemoveDirtMC (http://www.digitalfaq.com/forum/atta...emovedirtmcavs)
- --- Requires RemoveDirt v0.9. See RemoveDirtv09.zip and instructions (http://www.digitalfaq.com/forum/atta...ovedirt_v09zip).

LimitedSharpenFaster is in LimitedSharpenFaster.zip (http://www.digitalfaq.com/forum/atta...arpenfasterzip).
- --- requires awarpsharp2, which is included with LSFmod (see above).
- --- requires MaskTools2 and RemoveGrainC, which are included with QTGMC.


Attached Files
File Type: zip Bifrost_v2.zip (76.8 KB, 38 downloads)
Reply With Quote
The following users thank sanlyn for this useful post: lordsmurf (09-15-2018)
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing horizontal/vertical film lines and scratches? yukukuhi Restore, Filter, Improve Quality 139 06-17-2018 08:15 AM
PAL Hi8 chroma when played on Digital8 camcorder: 4:2:2 or 4:2:0? polygraph Capture, Record, Transfer 5 07-22-2017 05:00 PM
Cannot read the forum on my monitor! Blue text on blue background! ccjjff2 General Discussion 5 07-24-2012 05:30 AM
Remove extra lines (empty lines) from copied/pasted text with Notepad++ kpmedia Computers 1 10-07-2011 05:32 PM
Need help with blue vertical lines max_cady Restore, Filter, Improve Quality 3 05-03-2011 04:24 AM

Thread Tools



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