Quantcast Avisynth: Filter for Reducing Brightness? - digitalFAQ.com Forums [Archives]
  #1  
02-11-2003, 07:12 AM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-11-2003, 08:22 AM
Fiz Fiz is offline
Free Member
 
Join Date: Jan 2003
Location: London, UK
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
Fizzy Wizzy Lets get Bizzy!
Reply With Quote
  #3  
02-13-2003, 08:46 AM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
thanks, i will try it that way
Reply With Quote
  #4  
02-13-2003, 08:59 AM
Fiz Fiz is offline
Free Member
 
Join Date: Jan 2003
Location: London, UK
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
Fizzy Wizzy Lets get Bizzy!
Reply With Quote
  #5  
02-13-2003, 12:18 PM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
i´m not using dvd2avi, so this cannot be the problem i think
Reply With Quote
  #6  
02-13-2003, 01:03 PM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #7  
02-14-2003, 09:57 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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?

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!
Reply With Quote
  #8  
02-14-2003, 10:10 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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

-kwag
Reply With Quote
  #9  
02-15-2003, 12:30 PM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
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

-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)
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Reducing green tinge? Mental Avisynth Scripting 2 10-23-2004 12:42 PM
Increasing brightness using avisynth? khusru Avisynth Scripting 7 02-23-2004 07:44 AM
Reducing number of Keyframes in Avi? beany101uk Video Encoding and Conversion 1 10-11-2003 02:28 PM
video filter for brightness? Anonymous Avisynth Scripting 4 12-29-2002 01:30 AM
Avisynth: Reducing video noise / best template setting? 2COOL Avisynth Scripting 2 10-15-2002 09:34 PM

Thread Tools



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