VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    I was able to finally transfer my D-Theater tapes digitally, but I've noticed in my transfers that the whites are baby blue-ish and not white. I ran my D-VHS deck through a Samsung SIR-T165 via Firewire, then capped it in 1080i YUY2 through the Elgato Cam Link via DVI.

    I'm using Avisynth+ and I've already got the contrast and the saturation down, I just need to fix the whites. I want it as close to the source as possible. I'd preferably want to be able to transfer the whole tape straight to my PC through Firewire so I wouldn't have to worry about all this but it's next to impossible because of copy protection

    Code:
    SetFilterMTMode("DEFAULT_MT_MODE", 2)
      SetFilterMTMode("avisource", 2)
      SetFilterMTMode("audiodub",2)
      SetFilterMTMode("ffaudiosource",2) 
    v = AVISource("F:\amarec\amarec(20210324-1922).avi", false, pixel_type="yuy2")
    a = ffaudiosource("D:\recordings\amarec(20210324-1922).wav")
    audiodub(v,a)
    delayaudio(-.100)
    assumetff()
    Trim(800, 59204)
    tweak(sat=1.15, cont=1.12)
    Prefetch(10)


    I found another upload that's an alternate version and I want it to be as close to this as possible without screwing anything else up.



    I don't want to do anything fancy like correct on a scene by scene basis, I just need to correct the whites. If anyone has any examples on how to fix it I'd appreciate it. I've tried some other plugins like CheapColorTemp, ColorYUV, and GamMac but I feel like I'm making it worse.
    Quote Quote  
  2. I am not aware of any autowhite function that consistently can correct tint. I use the Color Corrector in Vegas Pro and use the eyedropper on the left side to sample a section that should be neutral. I do this for the shadows, the midtones, and the highlights. I save this as a preset. I then scrub through the scenes, and if my correction fails, I repeat the process, create another preset, and continue. Pretty soon all I have to do is apply one of the existing presets.

    If you try to automate it, you will probably create as many problems as you solve.
    Quote Quote  
  3. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Agh, wish this wasn't this difficult. Thanks for the info!
    Quote Quote  
  4. There are many ways to make that off-white text white. The problem is what happens to other colors. I need a sample with other colors and intensities in it. But here's one example:

    Code:
    ConvertToRGB()
    RGBAdjust(r=254.0/229.0, g=254.0/245.0, b=254.0/234.0)
    ConvertToYUY2()
    And another:

    Code:
    ColorYUV(gain_y=17, off_y=-2) # adjust levels
    bmask=ColorYUV(gain_y=20, off_y=-2) # an alpha mask based on brightness
    adjusted= ColorYUV(off_u=2, off_v=6) # shift U and V to purify whites (but discolors blacks)
    Overlay(last, adjusted, mask=bmask) # overlay adjusted colors over original colors via alpha mask
    #blacks are unchanged, whites are full changed, in between partially changed
    Quote Quote  
  5. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    According to Photoshop, your upper image leans slightly towards green.
    Perhaps there's some more possibilities in Smoothadjust
    http://avisynth.nl/index.php/SmoothAdjust
    Quote Quote  
  6. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by jagabo View Post
    Code:
    ConvertToRGB()
    RGBAdjust(r=254.0/229.0, g=254.0/245.0, b=254.0/234.0)
    ConvertToYUY2()
    That actually helped a lot!! Here's some more screenshots if you need it. Same script from the original post so no tint correction.

    Click image for larger version

Name:	BgcMWPr.png
Views:	1619
Size:	3.86 MB
ID:	58026
    Click image for larger version

Name:	qhZnZMJ.png
Views:	1541
Size:	223.8 KB
ID:	58025
    Click image for larger version

Name:	GG0yqN2.png
Views:	1575
Size:	3.71 MB
ID:	58027
    Click image for larger version

Name:	mMt1rVN.png
Views:	1592
Size:	3.98 MB
ID:	58028

    -edit 8:35 pm cst-

    I've added that script to my other D-Theater transfers and it pretty much worked just as well!

    Here's some comparison shots. This time I've done no saturation/contrast boost on the uncorrected image. The corrected images have slight saturation/contrast boost (since contrast is still quite low on the STB), albeit slightly modified to compensate for the RGBAdjust line, which is the same as what jagabo provided.

    Click image for larger version

Name:	M5SIOPC.png
Views:	1532
Size:	1.20 MB
ID:	58032Click image for larger version

Name:	uGzJgAg.png
Views:	1569
Size:	1.32 MB
ID:	58033
    Click image for larger version

Name:	HUoIi3k.png
Views:	1576
Size:	3.89 MB
ID:	58034Click image for larger version

Name:	V3qaIGL.png
Views:	1559
Size:	3.97 MB
ID:	58035
    Click image for larger version

Name:	d3LwQiS.png
Views:	1539
Size:	1,017.6 KB
ID:	58036Click image for larger version

Name:	8l0rukl.png
Views:	1529
Size:	1,017.3 KB
ID:	58037
    Click image for larger version

Name:	O6YtwTw.png
Views:	1558
Size:	1.74 MB
ID:	58038Click image for larger version

Name:	qmc8oMe.png
Views:	1551
Size:	1.80 MB
ID:	58039
    Click image for larger version

Name:	qAIFsSN.png
Views:	1522
Size:	1.95 MB
ID:	58040Click image for larger version

Name:	Lhk0GGG.png
Views:	1513
Size:	2.01 MB
ID:	58041
    Click image for larger version

Name:	QbzY4gG.png
Views:	1538
Size:	3.58 MB
ID:	58042Click image for larger version

Name:	XVSHOqB.png
Views:	1519
Size:	3.63 MB
ID:	58043
    Click image for larger version

Name:	pnIujin.png
Views:	1579
Size:	2.89 MB
ID:	58044Click image for larger version

Name:	Yaxx2Af.png
Views:	1555
Size:	2.93 MB
ID:	58045
    Last edited by ENunn; 26th Mar 2021 at 22:20.
    Quote Quote  
  7. Yes, the RGB adjust script looks to work well for your videos. The DTheater logo with the greyscale text ( and cyan background) shows good white balance over the full range of greys.
    Quote Quote  
  8. @jagabo: How did you find the parameters (denominators) for the RGBAdjust()? By picking the colors of the tinted text from the monitor with a color picker?
    Quote Quote  
  9. Originally Posted by Sharc View Post
    @jagabo: How did you find the parameters (denominators) for the RGBAdjust()? By picking the colors of the tinted text from the monitor with a color picker?
    Yes, I used an old color picker called CSamp by Damjan Vavpotic. The numerators come from the RGB values of the desired output image (254,254,254) and the denominators come from the RGB values of the input image 229,245,234.
    Quote Quote  
  10. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    I'm finally able to let this rest as I found a setting that I'm happy with. I took a screenshot of a white text frame with no saturation or contrast boost and was able to pin point the lowest RGB value I was able to find. 201, 216, 206. Don't know why it was all over the place, I wonder if the tuner is introducing slight but not noticeable dithering?

    So my final lines for the tint correction are
    Code:
    ConvertToRGB(interlaced=true)
    RGBAdjust(r=235.0/201.0, g=235.0/216.0, b=235.0/206.0)
    ConvertToYUY2(interlaced=true)
    I went with 235 instead of 255 because the Cam Link is limited range only, and having it set to 255 clipped the whites (if I don't do contrast tweaking beforehand).

    It's almost identical to the tweaked contrast line and code jagabo posted, and luckily I'll have one less step to deal with. I'll post some more comparison screenshots because why not :P

    Click image for larger version

Name:	7EIadNd.png
Views:	1570
Size:	4.29 MB
ID:	58061Click image for larger version

Name:	5gK2gOY.png
Views:	1556
Size:	4.46 MB
ID:	58062
    Click image for larger version

Name:	JYkqJhJ.png
Views:	1534
Size:	3.87 MB
ID:	58063Click image for larger version

Name:	jfex20a.png
Views:	1532
Size:	4.01 MB
ID:	58064
    Click image for larger version

Name:	0PQuS17.png
Views:	1558
Size:	2.90 MB
ID:	58065Click image for larger version

Name:	wLAEJJX.png
Views:	1539
Size:	3.04 MB
ID:	58066
    Click image for larger version

Name:	TyA0RvK.png
Views:	1545
Size:	4.96 MB
ID:	58067Click image for larger version

Name:	oU6XdQY.jpg
Views:	1528
Size:	286.5 KB
ID:	58068
    Click image for larger version

Name:	OSIbLAz.png
Views:	1515
Size:	3.62 MB
ID:	58069Click image for larger version

Name:	of34H3m.png
Views:	1565
Size:	3.81 MB
ID:	58070
    Click image for larger version

Name:	1Jz2alO.png
Views:	1585
Size:	3.56 MB
ID:	58071Click image for larger version

Name:	owgIFXX.png
Views:	1562
Size:	3.71 MB
ID:	58072
    Click image for larger version

Name:	70oeEUu.png
Views:	1532
Size:	1.60 MB
ID:	58073Click image for larger version

Name:	u76QgM5.png
Views:	1560
Size:	1.60 MB
ID:	58074
    Click image for larger version

Name:	cTDSikk.png
Views:	1566
Size:	4.35 MB
ID:	58075Click image for larger version

Name:	Jw08UVF.png
Views:	1535
Size:	4.51 MB
ID:	58076
    Click image for larger version

Name:	O2BLHDZ.png
Views:	1524
Size:	3.77 MB
ID:	58077Click image for larger version

Name:	9BXUQSG.png
Views:	1534
Size:	3.94 MB
ID:	58078
    Click image for larger version

Name:	KkAvyLx.png
Views:	1555
Size:	3.61 MB
ID:	58079Click image for larger version

Name:	Tl3LlnR.png
Views:	1534
Size:	3.77 MB
ID:	58080
    Click image for larger version

Name:	ljRjsLO.png
Views:	1549
Size:	4.83 MB
ID:	58081Click image for larger version

Name:	6dNVItD.png
Views:	1523
Size:	5.00 MB
ID:	58082
    Click image for larger version

Name:	xqIsoKl.png
Views:	1500
Size:	3.00 MB
ID:	58083Click image for larger version

Name:	KICwNqg.png
Views:	1522
Size:	3.18 MB
ID:	58084
    Click image for larger version

Name:	hGfksL6.png
Views:	1552
Size:	3.88 MB
ID:	58085Click image for larger version

Name:	wnMCaOE.png
Views:	1534
Size:	3.98 MB
ID:	58086
    Click image for larger version

Name:	JU7MC0y.png
Views:	1545
Size:	4.04 MB
ID:	58087Click image for larger version

Name:	hEONIhA.png
Views:	1523
Size:	4.23 MB
ID:	58088
    Click image for larger version

Name:	6sfj9y6.png
Views:	1548
Size:	4.72 MB
ID:	58089Click image for larger version

Name:	KBJT8VC.png
Views:	1569
Size:	4.87 MB
ID:	58090
    Click image for larger version

Name:	dvzCwB8.png
Views:	1517
Size:	3.92 MB
ID:	58091Click image for larger version

Name:	tdq2YGy.png
Views:	1578
Size:	4.07 MB
ID:	58092
    Click image for larger version

Name:	VK5FuBp.png
Views:	1556
Size:	4.42 MB
ID:	58093Click image for larger version

Name:	dpxqj3S.png
Views:	1546
Size:	4.57 MB
ID:	58094
    Click image for larger version

Name:	fMByXu5.png
Views:	1531
Size:	2.65 MB
ID:	58095Click image for larger version

Name:	IhQaKWf.png
Views:	1530
Size:	2.79 MB
ID:	58096

    Thanks for the help everyone!
    Quote Quote  
  11. Originally Posted by ENunn View Post
    the lowest RGB value I was able to find. 201, 216, 206. Don't know why it was all over the place, I wonder if the tuner is introducing slight but not noticeable dithering?
    Real video usually has a bit of noise. What I usually do is smooth it out with several blurs:

    Code:
    Blur(1.0).Blur(1.0).Blur(1.0).Blur(1.0)
    That way it's easier to get an average. I make the adjustments until I think it looks about right, then take out the blurs for a final test and the final product.

    Also note that is usually not that easy. There are often non-linearities and the three primaries are different. And sometimes you need to make fixes in YUV rather than RGB.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!