digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Restore, Filter, Improve Quality (https://www.digitalfaq.com/forum/video-restore/)
-   -   Simple colour correction in Avisynth? (https://www.digitalfaq.com/forum/video-restore/13630-simple-colour-correction.html)

Master Tape 07-19-2023 01:52 AM

Simple colour correction in Avisynth?
 
I've been wanting to improve the colours on my captured videos for a while now as feel like they are a bit muted and dull, but then Panasonic VCR's have pale colours but i like the image quality best out of other VCRs. I don't have a clue how to work the proc-amp on my TBC, and colour correcting in Avisynth seems overly complex, i don't know where to begin.

I know there's probably many different ways of doing it, i just want something similar to SmoothTweak where i can work with a histogram and adjust the colours without clipping them.

themaster1 07-19-2023 08:28 AM

Try virtualdub and gradation filter you can work in. Rgb, yuv, lab etc...

More info HERE

mbassiouny 07-20-2023 07:41 AM

Quote:

how to work the proc-amp on my TBC
What tbc do you have?

Quote:

and colour correcting in Avisynth seems overly complex, i don't know where to begin.
Not really, not easy, but not complex, it is the best route. What have you tried so far?
You grab the installer, run, next, next, done you have installer avisynth.
You grab avspmod "download", unzip, launch, done.
Drag and drop you video source to avspmod
Now you have your video in the preview.

the rest is easy, just try different correction plugins with different settings.

If you can't figure out the right settings just post samples and ask for help. Best place to get avs help is doom9.

Good luck!

Master Tape 07-20-2023 10:45 AM

Quote:

Originally Posted by mbassiouny (Post 91571)
What tbc do you have?

TBC-3000.

Quote:

Originally Posted by mbassiouny (Post 91571)

Not really, not easy, but not complex, it is the best route. What have you tried so far?
You grab the installer, run, next, next, done you have installer avisynth.
You grab avspmod "download", unzip, launch, done.
Drag and drop you video source to avspmod
Now you have your video in the preview.

the rest is easy, just try different correction plugins with different settings.

If you can't figure out the right settings just post samples and ask for help. Best place to get avs help is doom9.

Good luck!

Yeah it's avspmod i use. By complex i mean i don't quite understand how the histogram works in terms of colour wheels and dots, ect or which one is best to use for my needs. I can get my head around SmoothTweak to adjust the brightness and contrast levels as you have to keep within the lines on the top and bottom. I also use the Saturation setting within that script to help boost the colours, but that has the side effect of making the reds too saturated and people's faces too red, so i can only go so far.

I just need something for more general use which i can safely apply across an entire clip to make the colours look a bit better, without having to adjust it for each shot (i'll only really do that with footage i deem more important) as got hundreds of tapes to go through and it's time consuming. I don't mean something automatic, but something i can adjust to keep it within the safe range, and i would skim through the clip/histogram to monitor any clipping, like i do with SmoothTweak.

I got most of the basics down besides colour correction at this stage :laugh:

Quote:

Originally Posted by themaster1 (Post 91547)
Try virtualdub and gradation filter you can work in. Rgb, yuv, lab etc...

More info HERE

I might look into using virtualdub for certain tasks, such as NeatVideo which will be needed for my more grainy footage. Can you apply a filter in vdub, save the file then load this file into avspmod and apply further filters/deinterlace before rendering? I would load the AVS file into vdub but it only saves to AVI which isn't ideal.

themaster1 07-20-2023 03:59 PM

Quote:

Originally Posted by Master Tape (Post 91573)
I might look into using virtualdub for certain tasks, such as NeatVideo which will be needed for my more grainy footage. Can you apply a filter in vdub, save the file then load this file into avspmod and apply further filters/deinterlace before rendering? I would load the AVS file into vdub but it only saves to AVI which isn't ideal.

You can do that, i still do that from time to time (even work with neat)
You just have to 1: load the filter 2: save in a vdscipt your Vdub filters settings 3: open that vdscript with notepad and copy /paste it (for the filter you want )

the script would look like this:

Code:

avisource("MyVideo")
assumetff()
ConverttoRGB32(matrix="rec601",interlaced=true)
separatefields()
#### CCD COLOR DENOISING :
LoadVirtualDubPlugin("C:\Program Files (x86)\Virtualdub\plugins32\ccd_sse2.vdf", "CCD", 0)
CCD(6,1) #
# For Gradation curves (very long and it's normal):
LoadVirtualDubPlugin("C:\Program Files (x86)\Virtualdub\plugins32\gradation v1.46-beta.vdf", "Gcurves", 0)
Gcurves(5,"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff0002030507090a0c0e0f1113141618191b1d1e2022232527282a2b2d2f303233353638393b3c3e3f414244454748494b4c4d4f50515354555657595a5b5c5d5e5f606163646566676768696a6b6c6d6e6f707071727374747576777778797a7a7b7c7c7d7e7e7f80808182828383848585868687878889898a8a8b8b8c8c8d8d8e8e8f90909191929293939494959596969797989899999a9b9b9c9c9d9d9e9f9fa0a0a1a1a2a3a3a4a5a5a6a7a7a8a9a9aaababacadaeaeafb0b1b1b2b3b4b5b6b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacccdcecfd0d1d2d4d5d6d7d8dadbdcdddfe0e1e2e4e5e6e7e9eaebedeeeff1f2f3f4f6f7f8fafbfcfeff000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff","152222202040202020000ffff00003755c6bbffff0000ffff0000ffff0000ffff")



weave()
ConverttoYv12(matrix="rec601",interlaced=true)
## Other avisynth filters....


Hushpower 07-20-2023 10:17 PM

Quote:

Originally Posted by Master tape
I would load the AVS file into vdub but it only saves to AVI which isn't ideal.

Not true. VDub2 has native x264 export support. I use it all the time.

I do exactly that: QTGMC etc in an AVS then bring the AVS into VDub, apply Neat (and crop&resize :D), then export H264+AAC.

Master Tape 08-02-2023 03:21 PM

Quote:

Originally Posted by Hushpower (Post 91581)
Not true. VDub2 has native x264 export support. I use it all the time.

I do exactly that: QTGMC etc in an AVS then bring the AVS into VDub, apply Neat (and crop&resize :D), then export H264+AAC.

That's excellent! I've just been tinkering around with the colour correction in Premiere Pro and i find it so much easier to use. Is there a way to import your AVS file to Vdub, apply Neat, save the VD script and import this into Premiere for colour correcting?

I'd just import the AVS file into Premiere but i'm not sure how to do this, and i only have Neat in Vdub. Otherwise i'll have to export it as a lossless AVI and correct it in Premiere.

mbassiouny 08-02-2023 04:32 PM

@Master Tape

you can't* import avs scripts in premiere. But what you can do is, encode the .avs file first with a lossless codec to a normal temporary video file, then import that video file to premiere pro.

Quote:

TBC-3000.
It is not so complicated if you check the small part in the manual that introduces the front panel. You pick the channel you plugged your input to, then + or - the parameter you want to modify. As a start, Do not go to far from 0, I find -2 to 2 to be a reasonable range based on my limited experience, but I am not an expert. This is just my personal observation.

*: well, you can, but it is a bit hacky, use the workaround

themaster1 08-03-2023 05:06 PM

It'll be lagging (waiting) like crazy, i've been there before. Better to encore in avi lossless first. But to answer the question you can use a frame server (Pismo File Mount.... is it?), it works for sony vegas (using a convertorgb24() line at the end of your script indeed), pretty sure you can with premiere aswell

keaton 08-04-2023 02:53 PM

A small add-on to what themaster1 showed earlier in Avisynth scripting, there is an Avisynth native RGBAdjust command. As of this posting, the avisynth.nl site seems to be down, which would have more documentation and show more of the available arguments to that function. If the site isn't available, perhaps the install has some included documentation.

But just a tiny example would be

ConvertToRGB32(matrix="Rec601",interlaced=true)
RGBAdjust(r=1.04,b=0.93,dither=true)

This would increase the red a little bit, and would reduce the blue a little bit. There are other arguments not in this example that do different kinds of red, green, or blue adjustments.

Of course, something like gradation curves is more advanced than RGBAdjust. It maybe somewhat akin to Levels (RGBAdjust) vs Curves (Gradation Curves) adjustments in Photoshop. It depends on how much control you want.

Or, if you want to do hue adjustments instead of RGB type adjustments, there is the Avisynth Tweak function.

An example would be

ConvertToYV16(interlaced=true)
Tweak(hue=-5,sat=1.30,coring=false,dither=true)

This would rotate the colors (as viewed on a Vectorscope available in either Avisynth Histogram or in Vdub Color Tools plugin) a bit in the counter-clockwise direction to perhaps reduce the red cast in the skin, and would increase the color saturation. A positive hue value rotates clockwise. A value of less than 1, say 0.8, would reduce the saturation. If you want to selectively make an adjustment with Tweak, there is the startHue and endHue arguments to say what range on the color wheel you want to apply your adjustment to. The Avisynth help for Tweak has a table for hue values, I think.

Whether to use RGB type adjustments or Hue based adjustments depends on what a Vectorscope shows you. If you have corrected neutral colors with RGB, but still think the skin tones are too red or blue, try adding a hue adjustment to rotate the colors closer to the area of the scope where skin tones should be (of course also use your eyes on a color accurate monitor). Hue doesn't really fix neutral colors, they are in the center of the scope and don't change much with rotation on the color wheel. But other colors could benefit from a hue adjust if you think they are still off after getting white, black, or gray colors corrected.


All times are GMT -5. The time now is 01:32 AM

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