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. |
22nd October 2012, 03:32 | #23 | Link | |||
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
1st line of doc: Quote:
Written previously in thread: Quote:
No idea what CCW and CW are, best guess is Celebrity Championship Wrestling, or Carrying Concealed Weapon, although I did initially think Clockwise, Counter Clockwise. What I'm I wanting to do, well a number of things keep getting pushed back, including mods to both DGIndex and MeGUI Batchers, investigation field order, interlace/ivtc detection, and other infos useful in autonomous conversion script. RoboCrop auto crop and auto levels setting plug. Perhaps MediaInfo implemented as plug. Investigate implement Avisynth Script Editor from VDMod into latest version VD (perhaps beyond me, or too time consuming). + lots more. I'm always happier doing what I want, and is usually where my better ideas surface.
__________________
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 ??? |
|||
22nd October 2012, 10:56 | #24 | Link |
Registered User
Join Date: Jan 2006
Posts: 1,867
|
Hmm, the luma gamma of 2.2 already approxmiates the power curve of the eye response, so it's generally ok as is. I think what you're trying to get at is a perceptually uniform percentage measurement. This would be accomplished by measuring the L of L a* b*. It certainly can be converted internally, but it's gonna be a bit slow as it needs several floating point ops.
As for, do you really want to do this - yes, I think most filters want to operate on a perceptually uniform domain, but not all. Some exception include, gamma-aware resizing (and interpolation etc.), and perceptual masking. As for the luma distribution of natural objects, I believe they follow the Phong illumination model. Highlights are a raised cosine, diffuse is a cosine, and ambient is a constant, so I don't think the histogram follows a Gaussian Normal Distribution (aka "Bell Curve") as you propose. Interestingly, if you take the inverse Phong, you can deduce the angle a surface is based on how it's shaded, which leads to a way to create a 3d model from a single photo. There's far better ways to do this though, like projecting a pattern onto the object, using lidar, or using multiple views. Oh, a Bell jar is a shape to contain high pressure, like a vacuum jar, I think. It's a different shape; the Bell curve could refer to a Mr. Bell, but I think it's the shape of a bell that you ring, and that shape is designed to resonate and amplify sound. As I recall, sound is best amplified by a log shape.. the classic horn design. It's the most efficient speaker shape. Blah blah balh Last edited by jmac698; 22nd October 2012 at 11:08. |
25th October 2012, 21:48 | #25 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Thanks for that jmac, and yep, I meant "Bell" rather than "BellJar".
I've done some tests on 320MB chunks of test vobs cut from somewhere in middle of a DVD vob, clip lengths vary from about 8 mins to 15 mins depending on eg bitrate and number of audio channels etc. Results are Accumulated values for the entire clips, just to show typical results that might be expected. EDIT: The clips were all auto cropped and auto leveled prior to ShowChannels(), hence 16 -> 235 Y range. Code:
NTSC_Top_FORCEFILM-ReturnOfTheKing.d2v AVE_Y=71.12 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=127.22 MIN_U= 62 MAX_U=168 LMIN_U= 78 LMAX_U=158 AVE_V=126.63 MIN_V= 74 MAX_V=188 LMIN_V= 78 LMAX_V=174 PAL_I_Top_169_P-FellowshipOfTheRings_Extended.d2v AVE_Y=70.31 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=119.82 MIN_U= 54 MAX_U=178 LMIN_U= 77 LMAX_U=166 AVE_V=132.89 MIN_V= 82 MAX_V=190 LMIN_V=103 LMAX_V=183 PAL_I_Top_169_P-TwoTowers_Extended.d2v AVE_Y=72.33 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=129.66 MIN_U= 63 MAX_U=159 LMIN_U= 70 LMAX_U=153 AVE_V=124.38 MIN_V= 87 MAX_V=226 LMIN_V= 93 LMAX_V=201 PAL-P_169_P-ReturnOfTheKing_Extended.d2v AVE_Y=98.68 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=122.03 MIN_U= 73 MAX_U=144 LMIN_U= 88 LMAX_U=137 AVE_V=131.77 MIN_V=102 MAX_V=183 LMIN_V=117 LMAX_V=164 PAL_I_Top_169_P-LordOfTheRings_Symphony.d2v AVE_Y=56.30 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=130.30 MIN_U= 33 MAX_U=249 LMIN_U= 73 LMAX_U=220 AVE_V=129.64 MIN_V= 6 MAX_V=248 LMIN_V= 29 LMAX_V=204 PAL_I_Top_169_P-DieHard.d2v AVE_Y=51.19 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=122.70 MIN_U= 55 MAX_U=220 LMIN_U= 77 LMAX_U=172 AVE_V=134.51 MIN_V= 32 MAX_V=248 LMIN_V= 60 LMAX_V=191 PAL_I_Top_169_P-DieHard_2.d2v AVE_Y=55.67 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=126.27 MIN_U= 56 MAX_U=196 LMIN_U= 69 LMAX_U=172 AVE_V=129.37 MIN_V= 53 MAX_V=216 LMIN_V= 65 LMAX_V=183 PAL-I-Top_169_P-DieHard_3.d2v AVE_Y=95.52 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=123.56 MIN_U= 62 MAX_U=173 LMIN_U= 81 LMAX_U=154 AVE_V=136.44 MIN_V= 75 MAX_V=237 LMIN_V= 93 LMAX_V=209 PAL_I_Top_43_Hybrid-StarTrekNG_1_TooShortASeason.d2v AVE_Y=60.59 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=127.39 MIN_U= 1 MAX_U=209 LMIN_U=107 LMAX_U=180 AVE_V=136.72 MIN_V= 1 MAX_V=203 LMIN_V= 96 LMAX_V=191 PAL_I_Top_43_Hybrid-StarTrekNG_2_WhenTheBoughBreaks.d2v AVE_Y=52.47 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=126.70 MIN_U= 52 MAX_U=210 LMIN_U= 59 LMAX_U=173 AVE_V=135.38 MIN_V= 45 MAX_V=195 LMIN_V=105 LMAX_V=189 PAL_I_Top_43_Hybrid-StarTrekNG_3_HomeSoil.d2v AVE_Y=51.29 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=128.48 MIN_U= 61 MAX_U=207 LMIN_U= 88 LMAX_U=188 AVE_V=131.68 MIN_V= 0 MAX_V=255 LMIN_V=106 LMAX_V=178 PAL_I_Top_169_P-Godfather.d2v AVE_Y=50.64 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=121.47 MIN_U= 46 MAX_U=188 LMIN_U= 68 LMAX_U=144 AVE_V=134.98 MIN_V= 71 MAX_V=214 LMIN_V=101 LMAX_V=190 PAL_I_Top_169_P-Godfather_2.d2v AVE_Y=62.44 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=119.61 MIN_U= 72 MAX_U=180 LMIN_U= 80 LMAX_U=151 AVE_V=136.48 MIN_V= 78 MAX_V=179 LMIN_V=115 LMAX_V=169 PAL_I_Top_169_P-Godfather_3.d2v AVE_Y=57.43 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=118.46 MIN_U= 47 MAX_U=188 LMIN_U= 82 LMAX_U=186 AVE_V=137.32 MIN_V= 76 MAX_V=206 LMIN_V= 91 LMAX_V=200 PAL_I_Bot_43-BustyCops.d2v AVE_Y=122.60 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=118.15 MIN_U= 32 MAX_U=255 LMIN_U= 62 LMAX_U=167 AVE_V=139.79 MIN_V= 48 MAX_V=246 LMIN_V= 92 LMAX_V=221 PAL_I_Bot_169_P-FalseBadFieldOrder-FlightPlan.d2v AVE_Y=58.96 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=128.46 MIN_U= 0 MAX_U=255 LMIN_U= 90 LMAX_U=167 AVE_V=125.02 MIN_V= 0 MAX_V=255 LMIN_V= 61 LMAX_V=182 PAL_I_Top_43_I-GirlIn3D.d2v AVE_Y=60.73 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=124.27 MIN_U= 50 MAX_U=222 LMIN_U= 63 LMAX_U=213 AVE_V=129.07 MIN_V= 47 MAX_V=232 LMIN_V= 60 LMAX_V=205 PAL_I_Top_43_I-SocialClimber.d2v AVE_Y=85.46 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=120.87 MIN_U= 30 MAX_U=212 LMIN_U= 56 LMAX_U=192 AVE_V=136.94 MIN_V= 89 MAX_V=212 LMIN_V= 97 LMAX_V=194 PAL_I_Top_43_I-UltimateLimit.d2v AVE_Y=52.55 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=128.92 MIN_U= 31 MAX_U=189 LMIN_U= 51 LMAX_U=183 AVE_V=129.58 MIN_V= 82 MAX_V=212 LMIN_V= 92 LMAX_V=193 PAL_I_Top_43_P-ArtificialTelepathy.d2v AVE_Y=89.88 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=128.38 MIN_U= 0 MAX_U=218 LMIN_U= 68 LMAX_U=207 AVE_V=126.38 MIN_V= 0 MAX_V=217 LMIN_V= 44 LMAX_V=200 PAL_I_Top_43_P-AssaultOnPrecinct13.d2v AVE_Y=60.04 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=129.02 MIN_U= 0 MAX_U=173 LMIN_U= 85 LMAX_U=157 AVE_V=123.97 MIN_V= 0 MAX_V=215 LMIN_V= 74 LMAX_V=188 PAL_I_Top_43_P-Cabaret.d2v AVE_Y=44.20 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=126.85 MIN_U= 1 MAX_U=254 LMIN_U= 73 LMAX_U=232 AVE_V=130.97 MIN_V= 30 MAX_V=253 LMIN_V= 81 LMAX_V=210 PAL_I_Top_43_P-FourPlay.d2v AVE_Y=72.80 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=124.06 MIN_U= 69 MAX_U=190 LMIN_U= 90 LMAX_U=170 AVE_V=130.90 MIN_V= 65 MAX_V=205 LMIN_V= 75 LMAX_V=191 PAL_I_Top_43_P-GoingOverboard.d2v AVE_Y=104.08 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=127.27 MIN_U= 53 MAX_U=188 LMIN_U= 76 LMAX_U=161 AVE_V=129.42 MIN_V= 42 MAX_V=221 LMIN_V= 82 LMAX_V=203 PAL_I_Top_43_P-GroundControl.d2v AVE_Y=57.19 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=126.20 MIN_U= 0 MAX_U=255 LMIN_U= 84 LMAX_U=187 AVE_V=132.69 MIN_V= 19 MAX_V=211 LMIN_V= 36 LMAX_V=201 PAL_I_Top_43_P-Panic.d2v AVE_Y=64.10 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=124.26 MIN_U= 37 MAX_U=179 LMIN_U= 87 LMAX_U=159 AVE_V=130.67 MIN_V= 67 MAX_V=203 LMIN_V=107 LMAX_V=189 PAL_I_Top_169_P-AllTheQueensMen.d2v AVE_Y=75.95 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=126.43 MIN_U= 25 MAX_U=190 LMIN_U= 42 LMAX_U=183 AVE_V=126.32 MIN_V= 81 MAX_V=238 LMIN_V= 95 LMAX_V=227 PAL_I_Top_169_P-DuskTillDawn.d2v AVE_Y=54.26 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=121.26 MIN_U= 56 MAX_U=191 LMIN_U= 61 LMAX_U=183 AVE_V=137.11 MIN_V= 82 MAX_V=219 LMIN_V= 95 LMAX_V=203 PAL_I_Top_169_P-EducatingRita.d2v AVE_Y=74.65 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=125.96 MIN_U= 71 MAX_U=167 LMIN_U= 99 LMAX_U=156 AVE_V=127.71 MIN_V= 99 MAX_V=177 LMIN_V=108 LMAX_V=161 PAL_I_Top_169_P-HarryPotter-DeathlyHallows2.d2v AVE_Y=56.44 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=123.50 MIN_U= 0 MAX_U=255 LMIN_U=102 LMAX_U=140 AVE_V=128.86 MIN_V= 82 MAX_V=165 LMIN_V=105 LMAX_V=151 PAL_I_Top_169_P-JurassicPark.d2v AVE_Y= 91.04 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=125.36 MIN_U= 3 MAX_U=206 LMIN_U= 89 LMAX_U=169 AVE_V=134.81 MIN_V= 3 MAX_V=238 LMIN_V=101 LMAX_V=196 PAL_I_Top_169_P-LastSign.d2v AVE_Y=60.97 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=125.24 MIN_U= 44 MAX_U=244 LMIN_U= 55 LMAX_U=219 AVE_V=128.43 MIN_V= 76 MAX_V=249 LMIN_V= 97 LMAX_V=174 PAL_I_Top_169_P-LegallyBlond.d2v AVE_Y=69.96 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=123.08 MIN_U= 42 MAX_U=214 LMIN_U= 63 LMAX_U=197 AVE_V=136.82 MIN_V= 43 MAX_V=241 LMIN_V= 59 LMAX_V=222 PAL_I_Top_169_P-MillionDollarBaby.d2v AVE_Y=74.50 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=124.28 MIN_U= 0 MAX_U=255 LMIN_U= 85 LMAX_U=152 AVE_V=124.73 MIN_V= 0 MAX_V=255 LMIN_V= 95 LMAX_V=157 PAL_I_Top_169_P-ResidentEvil_Apocalypse.d2v AVE_Y=58.35 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=136.48 MIN_U= 20 MAX_U=191 LMIN_U= 63 LMAX_U=181 AVE_V=118.23 MIN_V= 23 MAX_V=215 LMIN_V= 40 LMAX_V=195 PAL_I_Top_169_P-ShawshankRedemption.d2v AVE_Y=65.69 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=126.15 MIN_U= 35 MAX_U=251 LMIN_U=100 LMAX_U=159 AVE_V=129.75 MIN_V= 45 MAX_V=251 LMIN_V=100 LMAX_V=164 PAL_I_Top_169_P-Spiderman.d2v AVE_Y=74.89 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=123.81 MIN_U= 1 MAX_U=216 LMIN_U= 83 LMAX_U=189 AVE_V=135.67 MIN_V= 1 MAX_V=231 LMIN_V= 48 LMAX_V=202 PAL_I_Top_169_P-SweetestThing.d2v AVE_Y=64.76 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=120.72 MIN_U= 1 MAX_U=254 LMIN_U= 48 LMAX_U=201 AVE_V=136.83 MIN_V= 1 MAX_V=254 LMIN_V= 71 LMAX_V=221 PAL_I_Top_169_P-XXX-TheNextLevel.d2v AVE_Y=77.01 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=128.31 MIN_U= 37 MAX_U=192 LMIN_U= 55 LMAX_U=181 AVE_V=125.04 MIN_V= 36 MAX_V=219 LMIN_V= 63 LMAX_V=205 PAL_I_Top_169_I-LoveOnTheSide(Weird mix I and P).d2v AVE_Y=73.29 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=122.95 MIN_U= 68 MAX_U=203 LMIN_U= 78 LMAX_U=193 AVE_V=136.01 MIN_V= 60 MAX_V=225 LMIN_V= 76 LMAX_V=220 PAL-I-Top_169_P-MissionImpossible_2.d2v AVE_Y=76.59 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=125.45 MIN_U= 3 MAX_U=199 LMIN_U= 56 LMAX_U=187 AVE_V=132.29 MIN_V= 34 MAX_V=232 LMIN_V= 47 LMAX_V=198 PAL-I-Top_169_P-ResevoirDogs.d2v AVE_Y=70.37 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=124.45 MIN_U= 42 MAX_U=191 LMIN_U= 69 LMAX_U=181 AVE_V=131.47 MIN_V= 32 MAX_V=234 LMIN_V= 88 LMAX_V=206 PAL-I-Top_169_P-Unbreakable.d2v AVE_Y=47.84 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=128.94 MIN_U= 59 MAX_U=207 LMIN_U= 88 LMAX_U=182 AVE_V=126.05 MIN_V= 41 MAX_V=207 LMIN_V= 82 LMAX_V=165 PAL-P_169_P-AeonFlux.d2v AVE_Y=64.54 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=123.49 MIN_U= 36 MAX_U=164 LMIN_U= 59 LMAX_U=158 AVE_V=131.04 MIN_V= 67 MAX_V=199 LMIN_V= 80 LMAX_V=187 PAL-P_169_P-Alexander.d2v AVE_Y=93.62 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=121.21 MIN_U= 35 MAX_U=186 LMIN_U= 60 LMAX_U=168 AVE_V=134.59 MIN_V= 63 MAX_V=218 LMIN_V= 95 LMAX_V=186 PAL-P_169_P-BodyGuard.d2v AVE_Y=59.37 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=130.49 MIN_U= 58 MAX_U=226 LMIN_U= 68 LMAX_U=207 AVE_V=129.52 MIN_V= 60 MAX_V=212 LMIN_V= 84 LMAX_V=207 PAL-P_169_P-DownWithLove.d2v AVE_Y=72.96 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=122.13 MIN_U= 6 MAX_U=200 LMIN_U= 14 LMAX_U=188 AVE_V=132.64 MIN_V= 70 MAX_V=209 LMIN_V= 80 LMAX_V=183 PAL-P_169_P-Gladiator.d2v AVE_Y=69.03 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=123.12 MIN_U= 50 MAX_U=168 LMIN_U= 64 LMAX_U=162 AVE_V=134.22 MIN_V= 90 MAX_V=225 LMIN_V= 99 LMAX_V=211 PAL-P_169_P-Hannibal.d2v AVE_Y=61.85 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=132.80 MIN_U= 90 MAX_U=202 LMIN_U=106 LMAX_U=179 AVE_V=124.39 MIN_V= 84 MAX_V=220 LMIN_V= 92 LMAX_V=189 PAL-P_169_P-HitchhikersGuideToTheGalaxy_Movie.d2v AVE_Y=113.73 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=121.45 MIN_U= 40 MAX_U=198 LMIN_U= 55 LMAX_U=181 AVE_V=134.68 MIN_V= 27 MAX_V=228 LMIN_V= 47 LMAX_V=213 PAL-P_169_P-HuntForRedOctober.d2v AVE_Y=49.98 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=127.82 MIN_U= 71 MAX_U=224 LMIN_U= 86 LMAX_U=210 AVE_V=131.32 MIN_V= 70 MAX_V=234 LMIN_V= 81 LMAX_V=223 PAL-P_169_P-ItalianJob_2.d2v AVE_Y=71.63 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=128.50 MIN_U= 5 MAX_U=251 LMIN_U= 71 LMAX_U=169 AVE_V=127.32 MIN_V= 5 MAX_V=251 LMIN_V= 65 LMAX_V=225 PAL-P_169_P-SinCity.d2v AVE_Y=55.55 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=127.57 MIN_U=102 MAX_U=176 LMIN_U=113 LMAX_U=161 AVE_V=128.48 MIN_V= 48 MAX_V=176 LMIN_V= 58 LMAX_V=145 PAL-P_169_P-TombRaider.d2v AVE_Y=55.56 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=126.50 MIN_U= 70 MAX_U=219 LMIN_U= 91 LMAX_U=194 AVE_V=130.88 MIN_V= 73 MAX_V=234 LMIN_V= 84 LMAX_V=207 PAL-P_169_P-TombRaider_CradleOfLife.d2v AVE_Y=49.62 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=124.05 MIN_U= 32 MAX_U=191 LMIN_U= 82 LMAX_U=186 AVE_V=134.29 MIN_V= 68 MAX_V=239 LMIN_V=104 LMAX_V=224 PAL-P_169_P-UnderworldEvolution.d2v AVE_Y=39.20 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=129.71 MIN_U= 37 MAX_U=164 LMIN_U= 69 LMAX_U=158 AVE_V=125.12 MIN_V= 58 MAX_V=190 LMIN_V= 70 LMAX_V=172 PAL-P_169_P-VanHelsing.d2v AVE_Y=75.26 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=137.14 MIN_U= 58 MAX_U=170 LMIN_U=103 LMAX_U=161 AVE_V=123.96 MIN_V= 97 MAX_V=201 LMIN_V=107 LMAX_V=173 PAL-P_169_P-WarOfTheWorlds.d2v AVE_Y=80.80 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=122.47 MIN_U= 58 MAX_U=191 LMIN_U= 75 LMAX_U=186 AVE_V=130.60 MIN_V= 64 MAX_V=205 LMIN_V= 71 LMAX_V=185 PAL-P_169_P-XMen_2.d2v AVE_Y=50.75 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=129.09 MIN_U= 0 MAX_U=255 LMIN_U= 73 LMAX_U=189 AVE_V=121.72 MIN_V= 0 MAX_V=255 LMIN_V= 44 LMAX_V=192 PAL-P_169_P-TimeMachine.d2v AVE_Y=59.64 MIN_Y= 16 MAX_Y=235 LMIN_Y= 16 LMAX_Y=235 AVE_U=117.64 MIN_U= 56 MAX_U=193 LMIN_U= 83 LMAX_U=145 AVE_V=141.43 MIN_V= 97 MAX_V=214 LMIN_V=125 LMAX_V=182
__________________
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; 25th October 2012 at 21:52. |
29th October 2012, 05:22 | #26 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
DGIndex Template Script to produce ShowChannels data as in previous post (Is slow, as plays entire clip to end).
Writes "Accumulated.txt" file on last frame (appended to any already existing file). Code:
# Requires GScript, Grunt, RT_Stats, ShowChannels, DGIndex #Import ("D:\avs\BANK\QueryBorderCrop.avsi") # Required by RoboLevels unless in plugs dir #Import ("D:\avs\BANK\QueryLumaMinMAx.Avsi") VIDOEOFILE="__vid__" # DGIndex inserts clip name here MPEG2Source(VIDOEOFILE) NAME=VIDOEOFILE # RoboLevels() # Uncomment if Global (clipwise) Auto Levels required first ShowChannels(SetVar=true,show=false) # set Show=true, if required but may be a tiny bit slower AssumeFPS(250.0) # Do it a bit quicker EOL=Chr(10) S="""NAME + EOL + \ " AVE_Y="+String(SC_AAve_0,"%3.2f")+" MIN_Y="+String(SC_AMIN_0,"%3.0f")+" MAX_Y="+String(SC_AMAX_0,"%3.0f")+ \ " LMIN_Y="+String(SC_ALMN_0,"%3.0f")+" LMAX_Y="+String(SC_ALMX_0,"%3.0f") + EOL + \ " AVE_U="+String(SC_AAve_1,"%3.2f")+" MIN_U="+String(SC_AMIN_1,"%3.0f")+" MAX_U="+String(SC_AMAX_1,"%3.0f")+ \ " LMIN_U="+String(SC_ALMN_1,"%3.0f")+" LMAX_U="+String(SC_ALMX_1,"%3.0f") + EOL + \ " AVE_V="+String(SC_AAve_2,"%3.2f")+" MIN_V="+String(SC_AMIN_2,"%3.0f")+" MAX_V="+String(SC_AMAX_2,"%3.0f")+ \ " LMIN_V="+String(SC_ALMN_2,"%3.0f")+" LMAX_V="+String(SC_ALMX_2,"%3.0f") + EOL""" WriteFileIf("Accumulated.txt","current_frame==FrameCount()-1",S,append=true)Return Last return last # Below optional Function RoboLevels(clip c,float "Strength",int "Samples",float "Ignore",Bool "QBC",Float "QBC_Thresh",int "X",int "Y",int "W",int "H", \ int "Matrix",bool "PC",bool "DEBUG") { c Frames=FrameCount Strength=Float(Default(Strength,1.0)) Samples=(!Defined(Samples)) ? 24 : (Samples > Frames) ? Frames : (Samples < 1) ? 1 : Samples Ignore=Float(Default(Ignore,0.2)) QBC=Default(QBC,True) QBC_Thresh=Float(Default(QBC_Thresh,-32.0)) QBCropXP = Default(X,0) QBCropYP = Default(Y,0) QBCropWP = Default(W,0) QBCropHP = Default(H,0) Matrix = Default(Matrix,(width <= 720) ? 2 : 3) PC=Default(PC,False) DEBUG=Default(DEBUG,True) Assert(Strength>0.0 && Strength <=1.0, "RoboLevels: 0.0 < Strength <= 1.0") GScript(""" if(QBC) { QBCS=QueryBorderCrop(samples=Samples,thresh=QBC_Thresh,debug=DEBUG,ignore=Ignore,matrix=Matrix) (DEBUG)? RT_Debug(QBCS): NOP Eval(QBCS) } tclip=c.Crop(QBCropXP,QBCropYP,QBCropWP,QBCropHP) QLMMS=QueryLumaMinMax(tclip,samples=Samples,ignore=Ignore,debug=DEBUG,matrix=Matrix) (DEBUG)?RT_Debug(QLMMS):NOP Eval(QLMMS) if(IsRGB() || PC) { CSMin = 0 CSMax = 255 } else { CSMin = 16 CSMax = 235 } ALMin = Int(CSMin - ((CSMin - QLMMMin) * Strength) + 0.5) # Round Up ALMax = Int(CSMax - ((CSMax - QLMMMax) * Strength)) # Round down (QBC) ? Crop(QBCropXM,QBCropYM,QBCropWM,QBCropHM): NOP (DEBUG)? RT_Debug("Levels("+String(ALMin)+",1.0,"+String(AlMax)+","+String(CSMin)+","+String(CSMax)+",Coring=False)"):NOP Levels(ALMin,1.0,ALMax,CSMin,CSMax,Coring=False) # DO NOT use Coring """) return Last } EDIT: Was unsuccessful in trying to get it to WriteFile on close without using ScriptClip, anybody clever out there ? EDIT: Clarify, WriteFileEnd wants to write the "S" string as it was on WriteFileEnd contructor call ie at the beginning, we want to write final results, not what it was before starting. EDIT:, OK, think I've twigged a way, new plugin to inquire value of string variable in destructor and then write it, other suggestions ? EDIT: Perhaps WriteFileEnd should have the option to evaluate on writing ie at destructor rather than when constructed, would seem the obvious way anyhow.
__________________
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; 31st October 2012 at 14:16. |
29th October 2012, 10:05 | #27 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
Quote:
See this post. (EDIT) PS To show a final value in a run-time script, an alternative to your WriteFileIf(...,"current_frame==FrameCount()-1",...) is to use (still within ScriptClip) WriteFile("Accumulated.txt","S",append=false) See here for an explanation. The advantage of this is it shows the value for the last frame rendered, which no longer needs to be the final frame of the clip. EDIT2: (Following your custom of repeated edits. ) Your original way can be done without ScriptClip by setting S to be the expression to be evaluated rather than the value itself: Code:
EOL=Chr(10) S="""NAME + EOL + \ " AVE_Y="+String(SC_AAve_0,"%3.2f")+" MIN_Y="+String(SC_AMIN_0,"%3.0f")+" MAX_Y="+String(SC_AMAX_0,"%3.0f")+ \ " LMIN_Y="+String(SC_ALMN_0,"%3.0f")+" LMAX_Y="+String(SC_ALMX_0,"%3.0f") + EOL + \ " AVE_U="+String(SC_AAve_1,"%3.2f")+" MIN_U="+String(SC_AMIN_1,"%3.0f")+" MAX_U="+String(SC_AMAX_1,"%3.0f")+ \ " LMIN_U="+String(SC_ALMN_1,"%3.0f")+" LMAX_U="+String(SC_ALMX_1,"%3.0f") + EOL + \ " AVE_V="+String(SC_AAve_2,"%3.2f")+" MIN_V="+String(SC_AMIN_2,"%3.0f")+" MAX_V="+String(SC_AMAX_2,"%3.0f")+ \ " LMIN_V="+String(SC_ALMN_2,"%3.0f")+" LMAX_V="+String(SC_ALMX_2,"%3.0f") + EOL""" WriteFileIf("Accumulated.txt","current_frame==FrameCount()-1",S,append=true) Last edited by Gavino; 29th October 2012 at 12:45. |
|
29th October 2012, 15:04 | #28 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Thank you for the edit, I think I tried similar but could not get it to work, perhaps problem with my double quotes or something,
Ill try again. Have never seen either of your links, were both posted a couple of months before I joined D9. Again, thanks. PS, Modesty would have prevented me answering such a request, I see you suffer from no such impediment.
__________________
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 ??? |
31st October 2012, 13:27 | #30 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
ShowChannels v0.5, new version, see 1st post.
__________________
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 ??? |
6th November 2012, 15:20 | #31 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
@Jmac698,
I see you there on-line, thought that you may have missed the ShowChannels update to 0.5, implemented x,y,w,h coords (any coords even for eg YV12) as requested. Dont think that you saw it as only 1 download and think that was a moderator.
__________________
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 ??? |
5th December 2012, 09:26 | #32 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
ShowChannels() v0.6 - 05 Dec 2012, Plugin for Avisynth 2.5+
Planar, YUY2 and RGB. v0.5, 31 Oct 2012, Added x,y,w,h coords, not colorspace restricted (real pain in the bum to implement). Can use odd coords for eg YV12, and even sample a single pixel. v0.6, 05 Dec 2012. Added Interlaced arg for Planar only. Now gets correct chroma for planar interlaced , even down to single pixel. (an even bigger pain in the bum to implement, modest speed improvement) See 1st post. EDIT: Other colorspaces dont require the interlaced arg. (You owe me big-time Jmac).
__________________
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; 6th December 2012 at 02:07. |
21st April 2013, 00:33 | #33 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
ShowChannels() v0.7 - 20 Apr 2013
Updated for Avisynth v2.60. v2.58 & v2.60 dll's. See 1st post.
__________________
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 ??? |
21st May 2013, 11:30 | #34 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Script to create log file containing info on each frame
Code:
Avisource("D:\avs\test.avi").Trim(0,9) ShowChannels(SetVar=True,Accfile="SC_WholeClip.Log") S="""String(current_frame)+"]" + \ "YAve="+String(SC_Ave_0,"%6.2f")+"," + \ "YMin="+String(SC_Min_0,"%3.f")+"," + \ "YMax="+String(SC_Max_0,"%3.f")+"," + \ "YLmn="+String(SC_LMn_0,"%3.f")+"," + \ "YLmx="+String(SC_LMx_0,"%3.f")+"," + \ "UAve="+String(SC_Ave_1,"%6.2f")+"," + \ "UMin="+String(SC_Min_1,"%3.f")+"," + \ "UMax="+String(SC_Max_1,"%3.f")+"," + \ "ULmn="+String(SC_LMn_1,"%3.f")+"," + \ "ULmx="+String(SC_LMx_1,"%3.f")+"," + \ "VAve="+String(SC_Ave_2,"%6.2f")+"," + \ "VMin="+String(SC_Min_2,"%3.f")+"," + \ "VMax="+String(SC_Max_2,"%3.f")+"," + \ "VLmn="+String(SC_LMn_2,"%3.f")+"," + \ "VLmx="+String(SC_LMx_2,"%3.f") """ WriteFile("Frame.log", S, flush=true) Frame log, 1st 10 frames only Code:
0]YAve= 75.13,YMin= 26,YMax=212,YLmn= 28,YLmx=197,UAve=119.51,UMin=100,UMax=132,ULmn=102,ULmx=132,VAve=140.11,VMin=127,VMax=198,VLmn=127,VLmx=188 1]YAve= 75.91,YMin= 26,YMax=212,YLmn= 28,YLmx=198,UAve=119.39,UMin=100,UMax=132,ULmn=102,ULmx=132,VAve=140.31,VMin=127,VMax=197,VLmn=127,VLmx=188 2]YAve= 77.11,YMin= 25,YMax=213,YLmn= 28,YLmx=201,UAve=119.24,UMin=100,UMax=132,ULmn=102,ULmx=132,VAve=140.51,VMin=127,VMax=197,VLmn=127,VLmx=188 3]YAve= 77.56,YMin= 24,YMax=212,YLmn= 28,YLmx=202,UAve=119.18,UMin=100,UMax=132,ULmn=102,ULmx=132,VAve=140.61,VMin=127,VMax=199,VLmn=127,VLmx=188 4]YAve= 77.85,YMin= 24,YMax=206,YLmn= 28,YLmx=200,UAve=119.11,UMin=101,UMax=132,ULmn=102,ULmx=132,VAve=140.66,VMin=127,VMax=199,VLmn=127,VLmx=188 5]YAve= 78.01,YMin= 24,YMax=208,YLmn= 28,YLmx=199,UAve=119.10,UMin=101,UMax=132,ULmn=102,ULmx=132,VAve=140.67,VMin=126,VMax=199,VLmn=127,VLmx=189 6]YAve= 77.79,YMin= 22,YMax=203,YLmn= 28,YLmx=198,UAve=119.13,UMin=101,UMax=132,ULmn=101,ULmx=132,VAve=140.55,VMin=127,VMax=197,VLmn=127,VLmx=189 7]YAve= 76.34,YMin= 21,YMax=200,YLmn= 28,YLmx=197,UAve=119.42,UMin=101,UMax=132,ULmn=101,ULmx=132,VAve=140.20,VMin=127,VMax=197,VLmn=127,VLmx=188 8]YAve= 74.68,YMin= 22,YMax=199,YLmn= 28,YLmx=195,UAve=119.75,UMin=101,UMax=132,ULmn=101,ULmx=132,VAve=139.80,VMin=127,VMax=198,VLmn=127,VLmx=188 9]YAve= 73.02,YMin= 22,YMax=200,YLmn= 28,YLmx=194,UAve=120.06,UMin=101,UMax=132,ULmn=101,ULmx=132,VAve=139.44,VMin=127,VMax=199,VLmn=127,VLmx=188 Code:
SC_AAve_0=76.339836 SC_AMin_0=21 SC_AMax_0=213 SC_ALMn_0=28 SC_ALMx_0=202 SC_AAve_1=119.388771 SC_AMin_1=100 SC_AMax_1=132 SC_ALMn_1=101 SC_ALMx_1=132 SC_AAve_2=140.285110 SC_AMin_2=126 SC_AMax_2=199 SC_ALMn_2=127 SC_ALMx_2=189 SC_Visited=10
__________________
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; 21st May 2013 at 12:25. |
30th March 2015, 18:10 | #35 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
ShowChannels v0.8, See 1st post.
Code:
v0.8, 30 Mar 2015, v2.6 dll compiled with Avisynth Version 6 Header.
__________________
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 ??? |
4th July 2016, 01:55 | #37 | Link |
Registered User
Join Date: Jan 2006
Posts: 1,867
|
Hello,
Thanks for writing this plugin. I find it very useful. Currently making use of this, this time for analyzing camera sensor noise in RAW frames. Basically want to answer the question, how many frames must I average for a given ISO to produce a noiseless picture, also to compute myself bias frames etc. (which are slight offsets as not every pixel is perfectly the same). The addition of area parameters is really useful, because on the sensor a certain area is covered up by metal so that it's always completely dark, that is used for a calibration. With the accumulated average, I can simply step through images, averaging them, until the MinMax reads 1 (or std dev reads some low value etc.). Read off the frame number, and that's the number of shots I need. |
16th January 2019, 19:15 | #38 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Showchannels() v0.09, new version see 1st post.
Code:
v0.9, 15 Jan 2019, Moved to VS2008, Added version resource + x64.
__________________
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 ??? |
6th February 2019, 03:21 | #40 | Link | |
Registered User
Join Date: Apr 2013
Posts: 346
|
Quote:
If I have a 720 x 480 AR, and want to select the area that would exclude 5% (36 pixels) along each edge, essentially analyzing the center 648 x 408 area, would I phrase the x,y,w,h coordinates as follows: ShowChannels(36, 36, 648, 408) |
|
Tags |
channels, info, max, min |
|
|