VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Hi guys

    I have uploaded a sample clip of a wedding video I have captured. The quality isn't bad, but the colour is rather grim looking. Can anyone recommend a script to brighten it up and get more natural colours? Sample is outdoors with skin visible.

    I have tried messing with the script below I found by Google, but obviously that was catered for another video. I can't seem to get the levels right for my video (if that's even what I should be doing?)

    Any added stuff such as Chromashift adjustment or denoising would be helpful, I have quite a few filters but I am newish to Avisynth.

    Code:
    ConvertToRGB(matrix="rec601")
    ConvertToRGB(matrix="rec601")
    RGBAdjust(rb=-1, gb=-38, bb=-17) # blacks to ~0
    RGBAdjust(r=0.87, b=1.25) # white balance
    RGBAdjust(rg=1.3, gg=1.3, bg=1.3) # gamma to lighten the shadows a bit
    ConvertToYUY2(matrix="rec601")  # back to YUY2
    Image Attached Files
    Quote Quote  
  2. AutoWhite + Softlight(mode=6, formula=2), both are available for Avisynth and might help.
    Maybe some LUT for color adjustment seems like a good start to me, but I'm nowhere good at color grading.
    Going to bed now, but the chroma plane is a mess.

    (just playing around: https://pastebin.com/syK94Gpr, video attached; not using Avisynth, but Vapoursynth)

    Cu Selur
    Image Attached Files
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  3. Tinkering with color grading of an NLE?
    Image Attached Files
    Quote Quote  
  4. Thanks guys. I'm not familiar with Vapoursynth. Will the script word with avisynth, too?
    Quote Quote  
  5. You may play with ColorYUV() in Avisynth, something along the line
    Code:
    colorYUV(gain_u=-0.0,gain_v=65.0,off_u=0,off_v=-50,cont_v=200, cont_u=100,autowhite=false,autogain=false)
    (You can do similar with your RGB filters though, or ColorMill in Vdub .....)

    or sometimes grayscale is an option
    Image Attached Files
    Last edited by Sharc; 17th May 2024 at 06:04. Reason: Attachment added
    Quote Quote  
  6. Will the script word with avisynth, too?
    No, the script will not work with Avisynth, but the color adjustment can be done with Avisynth too:
    Code:
    LWLibavVideoSource("C:\Users\Selur\Desktop\Sample2.avi",cache=false,dr=true,format="YUV422P8", prefer_hw=0)
    # color sampling YV16@8, matrix: bt601, scantyp: progressive, luminance scale: limited
    # AutoWhite with ColorYUV http://avisynth.nl/index.php/ColorYUV
    ColorYUV(autowhite=true)
    # Color adjustements Softlight https://github.com/ArturAlekseev/AVS_SoftLight/releases
    ConvertToPlanarRGB()
    Softlight(mode=6, formula=2)
    # Applying a Lut from https://github.com/FranceBB/LinearTransformation with AvsCube http://avisynth.nl/index.php/AVSCube
    Cube(cube="F:/Hybrid/64bit/vsfilters/ColorFilter/TimeCube/BT2020_HLG_BT601_PAL.cube", fullrange=0)
    This is what it looks like without chroma denoising:


    Cu Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  



Similar Threads

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