Nous sommes le Dim Mai 26, 2013 12:46 am



Poster un nouveau sujet Répondre au sujet  [ 5 messages ] 
Auteur Message
 Sujet du message: corriger la saturation du blanc
MessagePosté: Sam Juil 10, 2004 8:51 am 
Hors ligne

Inscription: Jeu Oct 02, 2003 10:46 pm
Messages: 30
Je fais de l'acquistion de canalsat. via une PVR250.
Lorsque j'encode en divx (avec RIAM2) et que je le passe sur le lecteur de salon, les reflets de lumiere sont trop eclatant alors que les les scenes sombres ou normales sont tres corrects.

J'ai bien essayer de jouer sur le contaste et/ou lumiere, mais c'est au détriment des scenes qui étaitent correct ;-((.

Existe t'il un filtre approprié pour diminuer la saturation des blancs ???

Merci.


Haut
 Profil  
 

corriger la saturation du blanc - Visitez les publicités pour soutenir Planète Numérique

 

 Sujet du message:
MessagePosté: Dim Juil 11, 2004 11:10 pm 
Hors ligne

Inscription: Mar Mar 12, 2002 1:00 am
Messages: 52
essaie de lire ceci :
http://www.avisynth.org/ConvertingAnalo ... _XviD/SVCD

tu trouveras la reponse !


Haut
 Profil  
 
 Sujet du message:
MessagePosté: Lun Juil 12, 2004 8:17 am 
Hors ligne

Inscription: Jeu Oct 02, 2003 10:46 pm
Messages: 30
ca a l'air très interessant tout ca MAIS SUIS NUL EN ANGLAIS,

Tu pourrait aller à l'essentiel,

Merci


Haut
 Profil  
 
 Sujet du message:
MessagePosté: Lun Juil 12, 2004 1:24 pm 
Hors ligne

Inscription: Mar Mar 12, 2002 1:00 am
Messages: 52
en anglais :


Color adjustment:

If you at your capture, you will see that the colors will be a bit distorted. Shiny colors will be more shiny, dark colors will be more dark. The reason is the following: Normally YUV values are not mapped from 0 to 255 (PC range), but a limited range (TV range). This limited range is 16-236 for the luma component and 16-240 for the chroma component of the YUV signal. This has to be adjusted when necessary. You can do this with AviSynth v2.5 (I don't know how to do this with v2.08). You have to find the settings only once. For the next capture you can use the same values, provided you don't change them in the capture settings.

We will use the histogram the adjust the brightness and contrast. Since the histogram requires YV12, we add the following lines to the script:

ColorYUV(off_y=0, gain_y=0)

ConvertToYV12()

Histogram()

Open this script in VirtualdubMod. Right-click on the clip and select normal to enlarge the clip. You will see the clip with next to it the histogram. On the vertical axis the pixel range (0-255) is plotted, and on the horizontal axis the luminance is plotted. If you look closely you will see that the range 0-15 is brown (meaning invalid), the range 16-236 black (valid) and 237-255 brown (invalid). The histogram itself can be white (if it lies in the valid range 16-236) or yellow (if it lies in the invalid range).

Look up a part of a frame that is black (black borders for example, and write down the frame). If the histogram is yellow on that part, it means that we have to increase the luminance (i.e. brightness) till the histogram becomes white. If it is white we have to decrease the luminance just before it becomes yellow. Open the script editor (under tools), adjust the off_y and press F5 for previewing. The script becomes for example:

ColorYUV(off_y=-20, gain_y=0)

ConvertToYV12()

Histogram()

Look up a part of a frame which is very bright. Increase (or decrease if necessary) the gain_y to stretch the luminance till you can't increase it any further. The script becomes for example:

ColorYUV(off_y=-20, gain_y=64)

ConvertToYV12()

Histogram()

You will see that also the left boundary has moved (because it was about 16 instead of 0, and changing gain_y means multiplying). Go back to your original frame, and adjust it again. The script becomes for example:

ColorYUV(off_y=-28, gain_y=64)

ConvertToYV12()

Histogram()

Continue till you are satisfied. If you are done, it is time to adjust the saturation (i.e. colorness/chrominance). The options "cont_u" and "cont_v" depend the saturation in the following way:

cont_u = cont_v = - (1 - saturation) * 256

Example: saturation = 0.8 implies cont_u = cont_v = - 0.2 * 256 = - 51.2. Look up a frame which contains something very red or blue (for example clothes), or just look at the skin of people, and increase/decrease the saturation. The script becomes for example:

saturation = 0.8

cu = - (1-saturation)*256

ColorYUV(off_y=-28, gain_y=64, cont_u=cu, cont_v = cu)

To be sure that the luminance and chrominance lie in a valid range, set opt="coring" as an option in ColorYUV. Remove the histogram since we don't need it anymore.

saturation = 0.8

cu = - (1-saturation)*256

ColorYUV(off_y=-28, gain_y=64, cont_u=cu, cont_v = cu, opt="coring")


tu peux passer par traducteur automatique (Lycos ou autre) , sinon j'ai pas encore essayé, faut le faire un jour. Si qq'un fait plus simple ça m'interesse aussi.


Haut
 Profil  
 
 Sujet du message:
MessagePosté: Dim Juil 18, 2004 2:50 pm 
Hors ligne

Inscription: Mar Mar 12, 2002 1:00 am
Messages: 52
essaye de mettre dans ton script ceci :

saturation = 0.8
cu = - (1-saturation)*256
ColorYUV(off_y=-38, gain_y=64, cont_u=cu, cont_v = cu, opt="coring")

teste a modifier les valeurs off_y et gain_y , j'ai essayé, ça marche! (je le meme probleme avec la capture tele via le camescope ou analogique via carte ATI.
Pour le filtre "levels", effectivement ils en parlent (sur avisynth.com) mais le filtre "lui-meme" est introuvable, et comme j'ai pas essayé le manip je sais pas comment ça fonctionne.


Haut
 Profil  
 
Afficher les messages postés depuis:  Trier par  
Poster un nouveau sujet Répondre au sujet  [ 5 messages ] 

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité


Vous ne pouvez pas poster de nouveaux sujets
Vous ne pouvez pas répondre aux sujets
Vous ne pouvez pas éditer vos messages
Vous ne pouvez pas supprimer vos messages
Vous ne pouvez pas joindre des fichiers

Aller à:  
Theme original stylerbb.net adapté par Planète Numérique
Boosté par phpBB © 2000, 2002, 2005, 2007 phpBB Group
Traduction par: phpBB-fr.com
Heures au format UTC + 1 heure