Log in

View Full Version : Color correction in VHS


NASS
27th April 2024, 19:54
Hello everyone, I'd like to ask for your help in restoring the colors and solving the problem of color loss in this VHS video.

Is there a script?
The color shift
https://imgtr.ee/image/I2TxmX
Color loss
https://imgtr.ee/image/I2T43h
Many thanks

Best

Mounir
27th April 2024, 19:56
video sample please

NASS
27th April 2024, 20:46
video sample please

Hi Thanks a lot for your answer, Here are a few seconds, Many thanks.

https://drive.google.com/file/d/1sOiQuAsW0GWgMBpAxotfJsVDrwJClV5L/view?usp=sharing

Selur
27th April 2024, 21:07
(a sample of the unprocessed capture would have been better, assuming you didn't capture in AVC 1152x720)
Did you try ColorYUV(autowhite=true) (http://avisynth.nl/index.php/ColorYUV) ?
BalanceBorders (https://github.com/dsamahentai/AviSynth_Filters/blob/master/BalanceBorders.avsi) can help with the color issue at the edges.
You also might want to use QTGMC with InputType=2 or 3 to fix some of the combing artifacts that are left from bad deinterlacing.
https://imgsli.com/MjU5NjE2
(some dehalo etc. might also be a good idea)

NASS
27th April 2024, 21:46
(a sample of the unprocessed capture would have been better, assuming you didn't capture in AVC 1152x720)
Did you try ColorYUV(autowhite=true) (http://avisynth.nl/index.php/ColorYUV) ?
BalanceBorders (https://github.com/dsamahentai/AviSynth_Filters/blob/master/BalanceBorders.avsi) can help with the color issue at the edges.
You also might want to use QTGMC with InputType=2 or 3 to fix some of the combing artifacts that are left from bad deinterlacing.
https://imgsli.com/MjU5NjE2
(some dehalo etc. might also be a good idea)

Hi Selur, It's an honor to speak with you, I admire your work on your Hybrid software, Thanks for Your help, Unfortunately the color shift problem is still visible? There is also the problem of the color losses on the 2nd sequence.

jpsdr
28th April 2024, 12:26
Hello.

For VHS purpose, i don't have an avisynth version, but i have a VDub plugin (you can still use it in avisynth with the vdub plugin load function i think) for shifting chroma/luma if necessary, as, sometimes, you have to shift from few pixels the chroma vs luma to have a better chroma/luma position. You can get my VDub plugins on my github, the filter in the plugin is Chromashift v2.2.1.

Selur
29th April 2024, 14:28
The problem with the chroma shift is that someone messed up the deinterlacing and scaling.
Using ChromaShiftSP (http://avisynth.nl/index.php/ChromaShiftSP), you can compensate it a bit, additionally applying 1x_BleedOut-Compact (https://openmodeldb.info/models/1x-BleedOut-Compact) machine learning model (could be used through avs-mlrt (https://github.com/Asd-g/avs-mlrt)) also helps: https://imgsli.com/MjYwMDYx
Got no good idea for the missing color in frames 969+, one could use something like deoldify (+ddcolor) on that section (https://imgsli.com/MjYwMDYz), but you would probably have to use it on more than that de-colored section to get somewhat consistent colors. This is stuff you can do, but a. you can't do it in Avisynth, b. it's a lot of work.
Something like Spotless (https://forum.doom9.org/showthread.php?t=181777) with protection (there is something about it later in the Spotless thread) and DeScratch (http://avisynth.nl/index.php/DeScratch) could be used to remove the scratches & dirt.
(the protection would be needed so that you don't lose the ball, and it's shadow in the soccer scene)
=> there is a lot that could be done, but requires a lot of adjusting on a scene by scene basis.

So to sum it up: Yes, a lot could be done. No, there is no ready to use script for it.
It also might be worth looking at what Neatvideo and other tools can do.

Cu Selur