View Full Version : Picture Too Dark


Red Raven
20th July 2003, 21:11
Hi all

Is there a script i can use to alter the dark parts of my movie without altering the parts that are ok?...i'm still rather new to using avs scripts and to be honest after seeing some of the scripts here i feel quite :confused:

PowerMacG4
21st July 2003, 03:11
But it is supposed to be dark.

JohnMK
21st July 2003, 03:38
Try using ffdshow, turn up the brightness or something. There's a setting somewhere.

r6d2
21st July 2003, 04:42
Originally posted by Red Raven
Is there a script i can use to alter the dark parts of my movie without altering the parts that are ok?...i'm still rather new to using avs scripts and to be honest after seeing some of the scripts here i feel quite :confused:
I have not tried this myself, but seems to be what you're looking for:

http://www.avisynth.org/index.php?page=ColorYUV

Look at the Autogain parameter:


Autogain can be true or false. This setting will use the information from the analyzer, and attempt to create as good contrast as possible. That means, it will scale up the luma (y) values to match the minimum and maximum values. This will make it act much as an "autogain" setting on cameras, amplifying dark scenes very much, while leaving scenes with good contrast alone. Some places this is also refered to as "autolevels".


If it works for you, please let us know.

Regards,

Red Raven
21st July 2003, 14:26
That looks to be what i'm looking for.

As i stated,i am quite new to all this scripting so i'm not 100% sure of what i'm doing :) i'll try this:

avisource("movie.avi")
BicubicResize("...,...")
AddBorders("0,...,0,...")
colorYUV(autogain=true, autowhite=true)
ResampleAudio(41000)

...will let you know what happens

Does this require certain filters?

r6d2
21st July 2003, 14:54
Originally posted by Red Raven

Does this require certain filters?
Not AFAIK (besides ColorYUV, bundled in AviSynth 2.5x). I used ColorYUV to convert B&W to Sepia with no other filters.
Just a word of advice: in general, put your filters before resize.

Holomatrix
22nd July 2003, 20:35
This sound like somthing I'm going to test out :)
colorYUV(autogain=true)
So this line should only brighten up the dark area's a bit? can I set values? or does it just do it slightly?
Thanks

r6d2
23rd July 2003, 01:44
Originally posted by Holomatrix
This sound like somthing I'm going to test out :)
colorYUV(autogain=true)
So this line should only brighten up the dark area's a bit? can I set values? or does it just do it slightly?
Thanks
I still have not tried it myself, but according to the docs, it analyzes and then scales (read the link above). It seems to be one of those magic touches you've always wanted, almost too good to be true. :)