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. |
8th January 2019, 22:01 | #261 | Link | |
Registered User
Join Date: Apr 2013
Posts: 346
|
Quote:
I'm not used to working in RGB. Everything I've done is in YUV. For YUV, I find that the filter "WhiteBalance" is exceptional. However, the image results with your analytical tool may be superior. So, what filter(s) do you use to apply the results of your output? |
|
9th January 2019, 04:46 | #262 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Some filters only make sense in RGB.
Quote:
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
|
9th January 2019, 06:05 | #263 | Link | |
Registered User
Join Date: Apr 2013
Posts: 346
|
Quote:
Ultimately, I do convert to YV12 for x264 purposes, but my understanding is that it is the least useful in dealing with colors.. |
|
10th January 2019, 11:12 | #264 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
ConvertToYV12 is used at end of script so as to use YV12 and better lossy compression for encode.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
|
10th January 2019, 21:31 | #265 | Link | |
Registered User
Join Date: Apr 2013
Posts: 346
|
Quote:
I thought your script was designed to provide the values that would then be applied to a filter that would be used to process the video. Your note, above, seems to indicate that this script alone should be processing it but, as I indicated, there is no processing going on when applied. |
|
10th January 2019, 23:02 | #266 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Ok, I understand, you have no idea about scripting,
after this line, Code:
C=GamMac(LockChan=LockChan,SCALE=SCALE,RedMul=RedMul,GrnMul=GrnMul,BluMul=BluMul, \ Th=Th,LockVal=LockVal,RngLim=RngLim,GamMax=GamMax, \ dc=DC, \ x=x,y=y,w=w,h=h, \ omin=omin,omax=omax, \ Show=Show,Verbosity=Verb,dither=DITHER) (Also set Show=false in config near begining of script.) Mobile:
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
10th January 2019, 23:36 | #267 | Link | |||
Registered User
Join Date: Apr 2013
Posts: 346
|
Quote:
Anyway, I tried your recommendations and still have only a single image that results from the script with no video processing ability.. I switched out True for False as you suggested and created the following at the end: Quote:
Quote:
|
|||
11th January 2019, 00:18 | #268 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
C is the result of GamMac filter, whatever you want to do, do it to C, eg Code:
C=Gammac(... etc) C=C.FlipHorizontal # or whatever return C.ConvertToYV12 EDIT: In the MediaFire link in my sig below this post, in the DATA folder, there is a compressed help (*.chm file for v2.60) which you can put on a hotkey (create a shortcut, Properties, and add a Shortcut key). You can access each and every file via the HTML table of files (so you dont have to wander around in circles, never knowing if you have read everything).
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 11th January 2019 at 00:28. |
|
11th January 2019, 00:56 | #269 | Link | |
Registered User
Join Date: Apr 2013
Posts: 346
|
I fed exactly what I posted into VirtualDub and the only output is a single frame, not the source video.
Quote:
Quote:
|
|
11th January 2019, 12:02 | #270 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
modified a bit Code:
Imagesource(".\GreenChurch.png",end=0) # SINGLE FRAME (end=0) #Imagesource(".\Puppy.png",end=0) #Imagesource(".\lennaRed.png",end=0) #Avisource(".\SomeVideo.avi") # Video Clip ConvertToRGB24.KillAudio DC=Last DC=DC.Blur(0.2) # Detection Clip (uses source clip if dc not supplied, Denoised or whatever) LockChan = 1 # Chan for lock to Ave, 0=R, 1=G, 2=B # -1 = Use LockVal below. # -2 = LockVal=(RedAve+GrnAve+BluAve)/3.0 for LockVal. # -3 = LockVal=Median(RedAve,GrnAve,BluAve) Th = 0.0 LockVal = 128.0 # Only valid if LockChan == -1 Show = True # Metrics Verb = 5 # Verbocity FULL DITHER=FALSE x =0 # Coords (for dc Detection Clip) y =0 w=-0 h=-0 omin=0 # Output channels minimum (footroom for manual editing). omax=255 # Output channels maximum (headroom for manual editing). #Return GamMac(DC,x=x,y=y,w=w,h=h,Coords=True) # Show Coords only Scale=2 RedMul=1.0 GrnMul=1.0 BluMul=0.95 C=GamMac(LockChan=LockChan,SCALE=SCALE,RedMul=RedMul,GrnMul=GrnMul,BluMul=BluMul, \ Th=Th,LockVal=LockVal, \ dc=DC, \ x=x,y=y,w=w,h=h, \ omin=omin,omax=omax, \ Show=Show,Verbosity=Verb,dither=DITHER) #C=C.FlipHorizontal # or whatever return C.ConvertToYV12
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 11th January 2019 at 12:06. |
|
12th January 2019, 00:33 | #271 | Link | |
Registered User
Join Date: Apr 2013
Posts: 346
|
Quote:
Unfortunately, GamMac doesn't do nearly as good a job as the WhiteBalance filter ...in my case. I will keep it in mind, though, as it does provide much better balance than the original source and may be better than the WhiteBalance filter in other video that I will be restoring. |
|
12th January 2019, 10:29 | #272 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
EDIT:
This lot are all intended to be user configured, Code:
LockChan = 1 # Chan for lock to Ave, 0=R, 1=G, 2=B # -1 = Use LockVal below. # -2 = LockVal=(RedAve+GrnAve+BluAve)/3.0 for LockVal. # -3 = LockVal=Median(RedAve,GrnAve,BluAve) Th = 0.0 LockVal = 128.0 # Only valid if LockChan == -1 Show = True # Metrics Verb = 5 # Verbocity FULL DITHER=FALSE x =0 # Coords (for dc Detection Clip) y =0 w=-0 h=-0 omin=0 # Output channels minimum (footroom for manual editing). omax=255 # Output channels maximum (headroom for manual editing). #Return GamMac(DC,x=x,y=y,w=w,h=h,Coords=True) # Show Coords only Scale=2 RedMul=1.0 GrnMul=1.0 BluMul=0.95 you could also try eg Scale=1 (or Scale=0), and recommend change BluMul=1.0 (0.95 was specific to the Church image result which is too blue). EDIT: You could also try Bernardd's automatic White Balance script:- https://forum.doom9.org/showthread.p...82#post1861382
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 12th January 2019 at 15:17. |
13th January 2019, 00:21 | #273 | Link | |
Registered User
Join Date: Apr 2013
Posts: 346
|
Quote:
I think I’m settled on WhiteBalance. I find that setting the black RGB values initially to 0 and adjusting only the white RGB settings, I can get into the right ballpark. Then, using Histogram(levels) and adjusting the black R&B values to center the graphs, I can easily get what I find to be excellent color balance that I just can’t beat with any number of tweakings in many different color adjusters, such as GamMac, ColorYUV, AWB, Tweak, HDRAGC as well as several Vdub filters. |
|
13th January 2019, 16:25 | #274 | Link | |
Registered User
Join Date: Mar 2002
Location: Krautland
Posts: 903
|
Quote:
and/or BluMul you must be blind or your gammac script simply does not work... Please post you entire script. Because for me even subtile changes from the defaults are altering the output sometimes in dramatical ways. |
|
14th January 2019, 00:21 | #275 | Link | ||
Registered User
Join Date: Apr 2013
Posts: 346
|
Quote:
Quote:
Last edited by Danette; 14th January 2019 at 00:32. |
||
14th January 2019, 13:42 | #276 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Couple of comment suggestions,
Code:
DC=DC.Blur(0.2) # Denoise Detection Clip [ avoid 'sparkles', prevent a few high/low extreme pixels from affecting histogram extremes too much ] Code:
x =0 # Coords (for dc Detection Clip) [ if you have no need to avoid crud/noise around edges of DC clip ] y =0 w=-0 h=-0 Code:
omin=0 # Output channels minimum (footroom for manual editing). [ If no need for extra user modification 'footroom/headroom', ie no further manual tweaking required ] omax=255 # Output channels maximum (headroom for manual editing).
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 14th January 2019 at 13:46. |
19th July 2019, 07:11 | #277 | Link |
Registered User
Join Date: Jun 2009
Posts: 49
|
Please could someone help me to recover the natural colors of this cartoon? what settings should i use in GamMac ?
https://rej.lib.rochester.edu/files/...6353a2772e.mp4 Last edited by henryperu77; 19th July 2019 at 07:15. |
19th July 2019, 09:13 | #278 | Link |
Registered User
Join Date: Jan 2012
Location: Toulon France
Posts: 249
|
Have you try RGBAdapt with this automatic help ? See post https://forum.doom9.org/showpost.php...4&postcount=52
|
19th July 2019, 09:34 | #279 | Link | |
Registered User
Join Date: Jun 2009
Posts: 49
|
Quote:
|
|
Tags |
color cast, correction, fade, gamma |
|
|