Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st May 2004, 23:30   #1  |  Link
resonator
Registered User
 
Join Date: Oct 2001
Location: Vienna
Posts: 75
Color correction?

Hi!

I have a HK dvd which is non-anamorphic (and combed as hell) but has pretty nice colors, and I have an anamorphic dvd as well, but it's lacking the original Cantonese audio track, so I'm trying to merge both for a decent copy. The anamorphic dvd is PAL, I resized the picture and speeded it down (and cut a few frames here and there in order to sync it to the unaltered 5.1 track) to 23.976 fps.

However, the anamorphic source has an ugly green tint, which I'd like to get rid of.

Here are 2 pics:

http://www.estatemusic.net/SCREENS/genx_ger_01.jpg

http://www.estatemusic.net/SCREENS/genx_hk_01.jpg

Any ideas on how to "color correct" the top picture?
resonator is offline   Reply With Quote
Old 1st June 2004, 19:37   #2  |  Link
trevlac
budala
 
Join Date: Oct 2003
Location: U.S.
Posts: 545
I'm a bit of a novice, but here is how I'd approach it.

step #1: Get white white

The white dress is a nice guide. The green source seems to have white offset towards yellow.

Just a quick YUV primer here ... If you map U&V on a graph, U is the horizontal, and V is the vertical. At the origin (0,0) is where white and black should be, because U&V should both be 0 for white/black. Next thing to know is take your graph, make it a circle with 0,0 at the center, and map colors around it. Red starts a little left of the top (11:30), and around goes magenta, blue, cyan, green, yellow. Each about 60 degrees appart.

So, yellow is in the upper left quadrant, down close to the horizontal (U) axis. For this pic, the U needs to be shifted to the right.

The following will move white to the right and down just a bit.
colorYUV(off_u=15, off_v=-2)

These values are a compromise. It looks like you white stays a bit yellow, but blacks start to move past the center into blue. If you increase the u offset to make the dress more white, the blacks will turn blue. I moved the v down a hair because the white dress looked a bit too red after U was moved.

The result of the above will be too dark. Next, drop the black down a bit (with bright) to cover the fact it contains blue, and increase the contrast to brighten the entire picture.

Tweak(bright=-10,cont=1.7)

step #2: Fix the colors

It seems to me that red is too low and blue maybe a bit.
To fix red alone, i made a version of Tweak that allows you to target a given color.

TweakColor(sat=1.7,startHue=80,endHue=140)

This increases the saturation of red alone. Look on the forum for TweakColor for more info.

warnings/more info
  • You can put the bright and cont parms in tweakcolor.
  • This is not easy to do. The more you try to get it perfect, the more you can mess up another frame.
  • I would not touch blue unless you have alot of blue. Increasing blue will make black blue.
  • You can also kill green/yellow a bit, but this might mess up a scene with green
  • You can change the hue a bit with: TweakColor(hue=5,startHue=120,endHue=260) but you could get contors if you are not careful. This would make the skin tone a little better.
  • !! Please check on a TV if you are going to view on a TV
trevlac is offline   Reply With Quote
Old 2nd June 2004, 04:13   #3  |  Link
dbzgundam
Hates all his encodes
 
dbzgundam's Avatar
 
Join Date: Sep 2003
Posts: 166
To be honest, I prefer the top pic...
__________________
http://thevideophile.blogspot.com/ Watch and be amazed by my frustration over the video world!
dbzgundam is offline   Reply With Quote
Old 2nd June 2004, 11:46   #4  |  Link
resonator
Registered User
 
Join Date: Oct 2001
Location: Vienna
Posts: 75
trevlac: Interesting take, gonna try that tonight. Thanks!

dbzgundam: Don't you mind the completly unnatural skin tone?
resonator is offline   Reply With Quote
Old 3rd June 2004, 21:13   #5  |  Link
dbzgundam
Hates all his encodes
 
dbzgundam's Avatar
 
Join Date: Sep 2003
Posts: 166
Quote:
Originally posted by resonator
trevlac: Interesting take, gonna try that tonight. Thanks!

dbzgundam: Don't you mind the completly unnatural skin tone?
It looks like the scene had lighting to make it look that way, rather than it being off.

Also, even if the color is off, the above image seems like an overall better transfer/encode.
__________________
http://thevideophile.blogspot.com/ Watch and be amazed by my frustration over the video world!
dbzgundam is offline   Reply With Quote
Old 19th June 2005, 14:38   #6  |  Link
HighInBC
Registered User
 
HighInBC's Avatar
 
Join Date: Jan 2003
Location: Victoria, BC, Canada
Posts: 144
a MUCH easier way to wake your whites white:

http://forum.doom9.org/showthread.php?t=96042
HighInBC is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:28.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.