digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Filter for reducing brightness? (http://www.digitalfaq.com/archives/avisynth/2572-avisynth-filter-reducing.html)

Kane 02-11-2003 07:12 AM

Avisynth: Filter for reducing brightness?
 
hi

can someone tell me which filter reduces the brightness while encoding?
my files all become to bright
or is there an option in tmpgenc, like the "luminance gain"-option in DVD2SVCD to achive this effect?

Fiz 02-11-2003 08:22 AM

There is a function called Tweak which is now built into Avisynth. Here are the details from the help html file.

Tweak
Tweak(clip, float "hue", float "sat", float "bright", float "cont")

This function provides the means to adjust the hue, saturation, brightness, and contrast of a video clip.

Tweak requires YUY2 input. Use ConvertToYUY2() if necessary.

Hue: (-180.0 to +180.0, default 0.0) is used to adjust the color hue of the image. Positive values shift the image towards red. Negative values shift it towards green.

Sat: (0.0 to 10.0, default 1.0) is used to adjust the color saturation of the image. Values above 1.0 increase the saturation. Values below 1.0 reduce the saturation. Use sat=0 to convert to grayscale.

Bright: (-255.0 to 255.0, default 0.0) is used to change the brightness of the image. Positive values increase the brightness. Negative values decrease it.

Cont: (0.0 to 10.0, default 1.0) is used to change the contrast of the image. Values above 1.0 increase the contrast. Values below 1.0 decrease the contrast

Kane 02-13-2003 08:46 AM

thanks, i will try it that way

Fiz 02-13-2003 08:59 AM

If your source movie was not bright to start with and you are using dvd2avi, then another thing to check is the option for YUV-> RGB under video. If this is set to TV Scale then the it seems to make movies brighter when you create the D2V file and use it for encoding. Set it to PC Scale if that is the case.

Kane 02-13-2003 12:18 PM

i´m not using dvd2avi, so this cannot be the problem i think

Kane 02-13-2003 01:03 PM

i´m a little confused
what would i have to add in my avs script to lower the brightness to -70?

edit: i got it

jorel 02-14-2003 09:57 PM

Quote:

Originally Posted by Fiz
If your source movie was not bright to start with and you are using dvd2avi, then another thing to check is the option for YUV-> RGB under video. If this is set to TV Scale then the it seems to make movies brighter when you create the D2V file and use it for encoding. Set it to PC Scale if that is the case.

hy Fiz,how are you? :wink:

today i was thinking about this:
"If this is set to TV Scale then the it seems to make movies brighter when you create the D2V file and use it for encoding."
really works,but

"...check is the option for YUV-> RGB under video..."
please,the color is better in RGB? :?

thanks in advance! :)

kwag 02-14-2003 10:10 PM

Quote:

Originally Posted by Fiz
If your source movie was not bright to start with and you are using dvd2avi, then another thing to check is the option for YUV-> RGB under video. If this is set to TV Scale then the it seems to make movies brighter when you create the D2V file and use it for encoding. Set it to PC Scale if that is the case.

Or just ignore DVD2AVI's TV/PC setting and add LegalClip() to your AviSynth script. That will make the mpeg file "TV" by clipping the luma levels :wink:

-kwag

Kane 02-15-2003 12:30 PM

Quote:

Originally Posted by kwag
Or just ignore DVD2AVI's TV/PC setting and add LegalClip() to your AviSynth script. That will make the mpeg file "TV" by clipping the luma levels :wink:

-kwag

i used legalclip in my avs script, but the file became as bright as before. the only way i could make it darker was to use
Tweak(Bright=-25)


All times are GMT -5. The time now is 03:37 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.