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 3rd March 2005, 14:21   #1  |  Link
Leo 69
Registered User
 
Join Date: Nov 2004
Posts: 227
Too high contrast. How to fix ?

How to fix this kind of video



How do I brighten the dark parts of the movie ? The picture is itself pretty bright but there's a little bit too much contrast there.
Tried YlevelsS(0,1.6,255,0,255) but the effect is not suitable for me ( the picture is with this filter already).
Are there any special switches?


Thanks in advance

Last edited by Leo 69; 3rd March 2005 at 14:42.
Leo 69 is offline   Reply With Quote
Old 3rd March 2005, 15:32   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
You can't fix that because there is not enough video data in the dark areas. If you equalize it, you get this:

Guest is offline   Reply With Quote
Old 3rd March 2005, 20:26   #3  |  Link
Leo 69
Registered User
 
Join Date: Nov 2004
Posts: 227
How did you do such color transformation, neuron2 ?

Yeah, the result doesn't look very good, but don't forget you've worked with compressed jpeg... The source video is of highest quality, really, it shouldn't look so bad Please post your script.

Cheers
Leo 69 is offline   Reply With Quote
Old 3rd March 2005, 21:57   #4  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
That's from my Histogram Equalize filter for VirtualDub:

http://neuron2.net/histogram.html

You can import it into Avisynth if you know how. There's a windowed version as well:

http://neuron2.net/winhistogram.html
Guest is offline   Reply With Quote
Old 4th March 2005, 05:21   #5  |  Link
CraigBjorn
Registered User
 
Join Date: Feb 2004
Posts: 61
A little bit can be saved, but neuron was right... there's not alot of info in the dark areas.



I created this in Gimp. I've tried to get help hear on how to make an equivalent Avisynth script, but with no luck. (maybe you'll have more)

Basically in the Gimp, I duplicate the main layer, convert this new layer to black and white, then invert the color and set the mode to overlay. From there you can adjust the opacity to control contrast you want.

Hope that helps.
CraigBjorn is offline   Reply With Quote
Old 4th March 2005, 19:13   #6  |  Link
Leo 69
Registered User
 
Join Date: Nov 2004
Posts: 227
Thanks for giving me a hand, guys I'll mess around with
the histogram equalizer a bit tonight.

Cheers
Leo 69 is offline   Reply With Quote
Old 6th March 2005, 10:58   #7  |  Link
yidaki
Registered User
 
yidaki's Avatar
 
Join Date: May 2003
Posts: 41
This is a little off topic, but whenever I want to do something similar, I use gamma correction.
Does anyone know if there's any downside to doing that?
I've noticed that the high levels are left alone, so it's atleast way superior to just increasing brightness
yidaki is offline   Reply With Quote
Old 7th March 2005, 17:44   #8  |  Link
paviko
Registered User
 
Join Date: Mar 2005
Location: Poland
Posts: 85
Hi.
If you want to brighten the dark parts you can also try modified by me Ylevels script:

Code:
function ShadowGain(clip clip, float "gain")
{
  gain = default(gain, 1.5)
  return clip.RGBLUT("x 255 x - 255 / 2.66 ^ " + string(gain) + " x * x - * +",
\"x 255 x - 255 / 2.66 ^ " + string(gain) + " x * x - * +",
\"x 255 x - 255 / 2.66 ^ " + string(gain) + " x * x - * +")
}
The functions need RGB input, because when operating in luminance channel colours appear more washed out.
Parameter "gain" - values greater than 1.0 brighten up dark areas.

Here is the result using 1.5 value for gain:


Regards
paviko is offline   Reply With Quote
Old 7th March 2005, 22:45   #9  |  Link
Leo 69
Registered User
 
Join Date: Nov 2004
Posts: 227
Well done, paviko! This thingy is VERY handy. Thanks a lot!

Cheers
Leo 69 is offline   Reply With Quote
Old 31st October 2007, 21:21   #10  |  Link
LaTiDa
Registered User
 
Join Date: Feb 2006
Posts: 9
Please help an Avisynth Scrip nOOb in need.

I have a dark looking DVD movie and I've been scouring this forum for some sort of a solution to brighten it up. This sounds interesting and I would like to try it but was wondering what plugin is required to go along with this script?

I hope my nOOb question doesn't seem too dumb. I'm just learning about avisynth scripts and how to use them. Very interesting stuff.

Any help would be greatly appreciated.




I seem to have found the answer I was looking for at http://avisynth.org/mediawiki/Tweak. This internal Avisynth script has brightened up the overal picture but has unveiled a slight grainyness to the video. I'll check some more on how to fix the grainyness. Thanks for your reply Merlin7777 but this is DVD video not Mpeg4. I don't really see the relelevence of your links to Mpeg4 video, although I didn't really look at your links in very great depth. Thanks anyway though. Your response is appreciated.

Last edited by LaTiDa; 31st October 2007 at 22:48. Reason: Found answer to my own question.
LaTiDa is offline   Reply With Quote
Old 31st October 2007, 22:11   #11  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,698
Did you try the techniques in the first few posts?
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 1st November 2007, 00:27   #12  |  Link
Mtz
Registered User
 
Mtz's Avatar
 
Join Date: Sep 2003
Location: On The Beach
Posts: 714
Make some search in the forum about HDRAGC

enjoy,
Mtz
Mtz 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 08:41.


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