Go Back    Forum > Digital Video > Video Project Help > Restore, Filter, Improve Quality

Reply
 
LinkBack Thread Tools Search this Thread
  #1  
08-24-2024, 04:19 PM
Wpsandy Wpsandy is offline
Free Member
 
Join Date: Jul 2023
Posts: 19
Thanked 2 Times in 2 Posts
Hi all,

I have a video from a friend of mine that has a significant red overcast for most of the video that I captured. It is so prevalent that I double checked that I had not accidentally mis-set the hue or contrast ranges.

In looking for approaches others have used to correct this problem. Searches I have done are for color correction and chroma bleed. The reason I searched for chroma bleed is when I look at the right edge of the video, there seemed to be a 10px or so wide band that looks like it might be correct so I thought I might have a shift.

I have made a couple of attempts, but the results seem very flat. The video IS in a church and many churches have really poor lighting so flat may be the best possible outcome.

First, attempt, I tried just using ColorYUV and bringing the red levels down, managing the yellow level some and adjusting the overall luma to lighten up some of the darker areas. I had read other examples where folks had looked at the overall RGB luminance values and could tell that one of the color channels ( the one I saw was the blue channel was wiped out) was very different from the other two.

Code:
AviSource("Original.avi")
Trim( 0, 55373 ) 
AssumeTFF()
converttoyv12(interlaced=true)

QTGMC ( preset="faster", ChromaNoise=true, ChromaMotion=true, border=true)
Tweak(sat=1.2,coring=false,dither=true)

ColorYUV(cont_y=-40,off_y=0,gamma_y=0)
ColorYUV(cont_u=-100,off_u=-2,gamma_u=0)
ColorYUV(cont_v=-150,off_v=-10,gamma_v=0)
SmoothTweak(saturation=1.0)

TemporalDegrain2(degrainTR=2)
Spotless()
Stab()
#Stab()
RemoveGrain(mode=2,modeU=2,modeV=2, planar=true)
LSFmod(strength=100, Smode=3, Smethod=2, kernel=11)

Crop(8,8,-8,-8)
AddBorders(8,8,8,8)
ConvertToRGB32(interlaced=false,matrix="Rec601")
#return last

Prefetch(14)
Second attempt is where I saw there a mask was used to preserve the luminance values and then adjust the bright and dark sections of the image independently. My understanding here may be off though. I would run the script and look at each of the layer prior to the Overlay() and to my eyes it did not seem like the dark layer was doing much anything.

I'll just include the inner section where I swapped out the vanilla ColorYUV() with the masking operation:

Code:
brights = ColorYUV(off_u=6, off_v=-6,cont_v=-170, cont_u=-20)
darks = ColorYUV(off_v=-6,gamma_v=20, cont_v=-275,gamma_u=0)
bmask = ColorYUV(gain_y=100, off_y=-40, gamma_y=50).GreyScale()

Overlay(darks, brights, mask=bmask)
First, am I thinking of the problem here in the right way? I'm very new to processing video so I feel that I'm near the bottom of a moderately steep hill.

Second, I feel like my first approach on using ColorYUV() was very imprecise. I was looking at the YUV histograms and adjusting values to keep the majority of the signal it between the two colors ( ala between the red and green or between yellow and blue ). If the best tool the vectorscope in these situations?

Last, and not directly related to the color issues is that I included a Trim() early in the script, but when I processed it through VirtualDub with the AVISynth script as the source, it didn't truncate the video file like I expected it to. Do I need to approach that differently?

Note: I do have video examples, but it seemed to be having challenges letting me attach files...all three clips are < 99MB so I'm not sure what's going on there. You can see where I'm starting from with the screen shot. Any suggestions on how I can get the clips attached would also be appreciated!

-- merged --

Here's the first script output


Attached Images
File Type: jpg Screenshot 2024-08-24 141121.jpg (29.1 KB, 16 downloads)
Attached Files
File Type: avs Simple Conversion.avs (651 Bytes, 1 downloads)
File Type: avs Masking.avs (726 Bytes, 1 downloads)
File Type: mp4 Simple conversion.mp4 (3.98 MB, 8 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  
08-24-2024, 07:55 PM
aramkolt aramkolt is offline
Free Member
 
Join Date: Jul 2023
Location: Michigan, USA
Posts: 1,126
Thanked 215 Times in 193 Posts
Kind of makes me wonder if that is a multigeneration tape and not the original recording where errors may have stacked up between generations? A hardware proc amp could be used during the capture, but I'm not totally sure that it would be any better than correcting color after the capture or not unless the red is so intense that it is clipping. I assume it plays that same way on multiple VCRs?
Reply With Quote
  #3  
08-24-2024, 08:41 PM
Wpsandy Wpsandy is offline
Free Member
 
Join Date: Jul 2023
Posts: 19
Thanked 2 Times in 2 Posts
Original Capture and the result of the Mask script.


Attached Files
File Type: avi Original - 2.avi (57.56 MB, 13 downloads)
File Type: mp4 Masking Script.mp4 (4.31 MB, 5 downloads)
Reply With Quote
  #4  
08-24-2024, 08:46 PM
traal traal is offline
Free Member
 
Join Date: Jan 2016
Posts: 439
Thanked 89 Times in 80 Posts
Is it the original tape or a copy?

What VCR, TBC, and capture card are you using?
Reply With Quote
  #5  
08-24-2024, 09:14 PM
Wpsandy Wpsandy is offline
Free Member
 
Join Date: Jul 2023
Posts: 19
Thanked 2 Times in 2 Posts
It's an original tape as far as I know. I don't have the background on who did the camera work.

JVC SR-MV45 -> TBC-1000 -> ATI AIW.

Vast majority of my captures look great.

Quote:
Originally Posted by aramkolt View Post
Kind of makes me wonder if that is a multigeneration tape and not the original recording where errors may have stacked up between generations? A hardware proc amp could be used during the capture, but I'm not totally sure that it would be any better than correcting color after the capture or not unless the red is so intense that it is clipping. I assume it plays that same way on multiple VCRs?
Yeah, that is one thing I checked is that it was playing the same way. Tried a Samsung and Toshiba VCR and both actually had the significant red overcast.

Like I said in the other reply, I don't know if this is original tape or not. I'll certainly have to ask
Reply With Quote
  #6  
08-25-2024, 10:13 AM
keaton keaton is offline
Premium Member
 
Join Date: Jan 2017
Location: USA
Posts: 225
Thanked 103 Times in 74 Posts
Here's a thread from a few years back where sanlyn and I each took a shot at a video with some very strong color problems. https://www.digitalfaq.com/forum/vid...lor-spots.html It assumes Virtualdub and Avisynth. I prefer sanlyn's method.

In that thread, I used a Virtualdub filter for hue/saturation adjustments. Nowadays, I use Tweak, as you'll see in sanlyn's post.

From what you describe, I'd guess that on a vectorscope you would see some very strong readings on the vectorscope, and some possibly clipped outside of legal gamut. Tweak's selective hue and satuation adjustments can really help reduce extreme problems. I've also used ColorYUV to try fixing gross color channel problems. RGB adjustments (in Virtualdub filters) may be more helpful for smaller adjustments once the major color problems are addressed.

Also, there's a reference to the Color Correction Handbook by Alexis Van Hurkman, if you really want to dive into the topic of color correction. Although, as I've learned with VHS (especially camcorders), there's only so much you can do to correct color because it's not so color accurate or consistent to begin with. You may have to break it down into a lot of smaller clips if you really want to make each shot color accurate. Which I have done before for video I thought was worth the effort. Also, have a fairly color accurate monitor if you get into this kind of stuff.

If you search this forum for ChromaShift (http://avisynth.nl/index.php/ChromaShift) you should see some examples of how it can address color bleed. Although, I've heard it's not in 64-bit versions of Avisynth, and it's been replaced by ChromaShiftSP

Last edited by keaton; 08-25-2024 at 10:31 AM.
Reply With Quote
  #7  
08-25-2024, 10:43 AM
Wpsandy Wpsandy is offline
Free Member
 
Join Date: Jul 2023
Posts: 19
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by keaton View Post
Here's a thread from a few years back where sanlyn and I each took a shot at a video with some very strong color problems. https://www.digitalfaq.com/forum/vid...lor-spots.html It assumes Virtualdub and Avisynth. I prefer sanlyn's method.

In that thread, I used a Virtualdub filter for hue/saturation adjustments. Nowadays, I use Tweak, as you'll see in sanlyn's post.

From what you describe, I'd guess that on a vectorscope you would see some very strong readings on the vectorscope, and some possibly clipped outside of legal gamut. Tweak's selective hue and satuation adjustments can really help reduce extreme problems. I've also used ColorYUV to try fixing gross color channel problems. RGB adjustments (in Virtualdub filters) may be more helpful for smaller adjustments once the major color problems are addressed.

Also, there's a reference to the Color Correction Handbook by Alexis Van Hurkman, if you really want to dive into the topic of color correction. Although, as I've learned with VHS (especially camcorders), there's only so much you can do to correct color because it's not so color accurate or consistent to begin with. You may have to break it down into a lot of smaller clips if you really want to make each shot color accurate. Which I have done before for video I thought was worth the effort. Also, have a fairly color accurate monitor if you get into this kind of stuff.

If you search this forum for ChromaShift (http://avisynth.nl/index.php/ChromaShift) you should see some examples of how it can address color bleed. Although, I've heard it's not in 64-bit versions of Avisynth, and it's been replaced by ChromaShiftSP
Thank you for the pointers to those links! I had found a few others that Sanlyn had contibuted to and benefited from his explanations. Somehow I had missed that particular thread. I have homework to do!
Reply With Quote
The following users thank Wpsandy for this useful post: keaton (08-25-2024)
  #8  
08-25-2024, 10:58 AM
keaton keaton is offline
Premium Member
 
Join Date: Jan 2017
Location: USA
Posts: 225
Thanked 103 Times in 74 Posts
Sorry I don't have the time to dig into this specific clip. I did preview it, and it does look like you've got your work cut out for you. With so much oversaturation to start with at so many different hues, this could be quite a challenge. The techniques of targeted saturation reduction at certain hues, or possibly hue adjustments by using Tweak's hue parameter to rotate some or all colors on the color wheel are what can typically be done to address large color problems. However, you may find it difficult to re-amplify the color after corrections because you cannot totally remove the color errors. I'd suppose it's better to live with more muted colors than amplified colors that are obviously not right.

Best of luck to you.
Reply With Quote
  #9  
08-25-2024, 11:39 AM
Wpsandy Wpsandy is offline
Free Member
 
Join Date: Jul 2023
Posts: 19
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by keaton View Post
Sorry I don't have the time to dig into this specific clip. I did preview it, and it does look like you've got your work cut out for you. With so much oversaturation to start with at so many different hues, this could be quite a challenge. The techniques of targeted saturation reduction at certain hues, or possibly hue adjustments by using Tweak's hue parameter to rotate some or all colors on the color wheel are what can typically be done to address large color problems. However, you may find it difficult to re-amplify the color after corrections because you cannot totally remove the color errors. I'd suppose it's better to live with more muted colors than amplified colors that are obviously not right.

Best of luck to you.
Ha! I appreciate the candor and the pointers. That's exactly what I was looking for is direction/correction in how I was thinking.
Reply With Quote
  #10  
08-25-2024, 12:02 PM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 173
Thanked 48 Times in 42 Posts
Maybe better throw away the coloring and use something like deoldify/ddcolor/DeepEx to invent the colors
(results could be improved if there are reference images; also applied ReduceFlicker)


Attached Files
File Type: mp4 deoldify.mp4 (3.73 MB, 11 downloads)
Reply With Quote
  #11  
08-25-2024, 12:37 PM
Wpsandy Wpsandy is offline
Free Member
 
Join Date: Jul 2023
Posts: 19
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by Selur View Post
Maybe better throw away the coloring and use something like deoldify/ddcolor/DeepEx to invent the colors
(results could be improved if there are reference images; also applied ReduceFlicker)
That looks significantly better than what I was reaching. I will certainly take a look at those.
Reply With Quote
  #12  
08-25-2024, 01:33 PM
lordsmurf's Avatar
lordsmurf lordsmurf is invisible
Site Staff | Video
 
Join Date: Dec 2002
Posts: 15,476
Thanked 2,835 Times in 2,404 Posts
Quote:
Originally Posted by Selur View Post
Maybe better throw away the coloring and use something like deoldify/ddcolor/DeepEx to invent the colors
(results could be improved if there are reference images; also applied ReduceFlicker)
Is that in Hybrid yet?

I need to try this, new to me.
In fact, is that a new project entirely? I didn't see it 4 months ago, when I was looking into non-manual "AI" video colorization.

- 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
  #13  
08-25-2024, 01:43 PM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 173
Thanked 48 Times in 42 Posts
Yes, has been in Hybrids torch-addon since March. (did improve a bit since then, but has been there for a while)
For general info what happened, read: https://forum.selur.net/thread-3595.html

Cu Selur
Reply With Quote
  #14  
08-25-2024, 01:52 PM
aramkolt aramkolt is offline
Free Member
 
Join Date: Jul 2023
Location: Michigan, USA
Posts: 1,126
Thanked 215 Times in 193 Posts
The other thing is the (what I can only describe as) extreme motion blur or "motion trails". I don't think I've seen any other tape having it to that to that degree. The only time I've seen even mild motion blur get introduced was when using a Blackmagic Teranex 2D to do deinterlacing/upscaling via hardware, but it was to a much lesser degree. Almost makes me wonder if that was some sort of a "visual effect" enabled on the camera that was recording it at the time.
Reply With Quote
  #15  
08-25-2024, 02:19 PM
Wpsandy Wpsandy is offline
Free Member
 
Join Date: Jul 2023
Posts: 19
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by aramkolt View Post
The other thing is the (what I can only describe as) extreme motion blur or "motion trails". I don't think I've seen any other tape having it to that to that degree. The only time I've seen even mild motion blur get introduced was when using a Blackmagic Teranex 2D to do deinterlacing/upscaling via hardware, but it was to a much lesser degree. Almost makes me wonder if that was some sort of a "visual effect" enabled on the camera that was recording it at the time.
In some instances in the whole video it's very noticeable and in others it's not. There is also a few spots where it looks like they swapped a filter on or off.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to source tapes with significant timebase errors? aramkolt Project Planning, Workflows 0 02-08-2024 09:42 PM
Color issue with TBC CDM-660? jr2021 Capture, Record, Transfer 19 07-14-2021 06:58 AM
Color streaks, washed out color on VHS? Roob2000 Capture, Record, Transfer 5 07-24-2020 06:37 AM
Color calibrating your monitor? (Seeing "true" color of your video captures) baywatch242000 Project Planning, Workflows 4 04-09-2014 01:30 PM
DV color space harmful to analog color quality? Verify? DeXeSs Capture, Record, Transfer 6 06-27-2010 01:48 AM




 
All times are GMT -5. The time now is 11:46 AM