ART-cli verbose flag -V is too verbose

Issue #230 resolved
Matthew Arnison created an issue

The ART-cli prints a lot of useful details and diagnostics about profiles and colour handling, most of which fits on 1-2 pages of the console.

However, it also prints about 30 pages of camera constant loading messages, at least one line per camera in the various databases:

...
Add camera constants for "SONY XPERIA 1 II TELEPHOTO CAMERA"
Add camera constants for "SONY XPERIA 1 II ULTRA WIDE-ANGLE CAMERA"
Add camera constants for "SONY XPERIA 1 II WIDE-ANGLE CAMERA"
...

It would be great to have a way to get just the good stuff in verbose mode. E.g. having two verbose modes -V for verbose and -VV for extra verbose.

This is the information I’d like to get in a shorter, but still verbose, mode:

  1. Profile loading and any missing profiles
  2. dcraw diagnostics
  3. Output profile (especially if it’s missing or fails in some way)

E.g. of useful verbose output:

Settings directory (rtdir) = /home/redact/.config/ART
Cache directory (cacheBaseDir) = /home/redact/.cache/ART
Default profile for raw images "Dynamic" found
Default profile for non-raw images "Neutral" found
Loading lensfun database from the default directories...OK
Processing file /home/redact/programs/art/profiles/Simple Film Curve.arp...OK
Processing file /home/redact/programs/art/profiles/Noise Reduction High.arp...OK
Processing file /home/redact/programs/art/profiles/Auto-Matched Curve.arp...OK
Processing file /home/redact/programs/art/profiles/Standard Film Curve.arp...OK
Processing file /home/redact/programs/art/profiles/Noise Reduction Low.arp...OK
Processing file /home/redact/programs/art/profiles/Sharpening.arp...OK
ICCStore: rebuilt TRC for RTv2 profile RTv2_Large: gamma=2.4, slope=12.9231
ICCStore: rebuilt TRC for RTv2 profile RTv2_Rec2020: gamma=2.4, slope=12.9231
ICCStore: rebuilt TRC for RTv2 profile RTv2_Best: gamma=2.4, slope=12.9231
ICCStore: rebuilt TRC for RTv2 profile RTv2_Medium: gamma=2.19922, slope=0
ICCStore: rebuilt TRC for RTv2 profile RTv2_Bruce: gamma=2.4, slope=12.9231
ICCStore: rebuilt TRC for RTv2 profile RTv2_Wide: gamma=2.4, slope=12.9231
ICCStore: rebuilt TRC for RTv2 profile RTv2_Beta: gamma=2.4, slope=12.9231
ICCStore: rebuilt TRC for RTv2 profile RTv2_sRGB: gamma=2.4, slope=12.9231
ICCStore: rebuilt TRC for RTv2 profile RTv2_ACES_AP1: gamma=2.4, slope=12.9231
ICCStore: rebuilt TRC for RTv2 profile RTv2_ACES_AP0: gamma=2.4, slope=12.9231
trying to load extra working spaces from /home/redact/programs/art/iccprofiles/workingspaces.json FAIL
trying to load extra working spaces from /home/redact/checkouts/bach/profiles/workingspaces.json FAIL
Loading Sony ILCE-7RM4A image from DSC01980.ARW...
constants exists for "Sony ILCE-7RM4A" in camconst.json
raw dimensions: 9600 x 6376
black levels: R:512 G1:512 B:512 G2:512 (provided by dcraw)
white levels: R:16300 G1:16300 B:16300 G2:16300 (provided by dcraw)
raw crop: 0 0 9600 6376 (provided by dcraw)
color matrix provided by camconst.json
[7662, -2686, -660, -5240, 12965, 2530, -796, 1508, 6167]
cam_mul:[2836.000000 1024.000000 1464.000000 1024.000000], AsShotNeutral:[0.361072 1.000000 0.699454 1.000000]
pre_mul:[1.000000 0.361072 0.516220 0.361072], scale_mul:[4.150938 1.498787 2.142797 1.498787], cblack:[512.000000 512.000000 512.000000 512.000000]
rgb_cam:[ [ 1.541728 -0.130607 0.004735], [-0.357950 1.548982 -0.399684], [-0.183779 -0.418375 1.394949] ]
Raw As Shot White balance: temp 6529.575348, tint 1.007072, multipliers [2.575791 2.572314 2.600958 | 2.578771 2.578909 2.594716]
Load DSC01980.ARW: 700854 usec
  Merging procparams #0
Processing with the normal pipeline
cam_mul:[2836.000000 1024.000000 1464.000000 1024.000000], AsShotNeutral:[0.361072 1.000000 0.699454 1.000000]
pre_mul:[1.000000 0.342207 0.443731 0.342207], scale_mul:[4.150938 1.420479 1.841901 1.420479], cblack:[512.000000 512.000000 512.000000 512.000000]
rgb_cam:[ [ 1.541728 -0.130607 0.004735], [-0.357950 1.548982 -0.399684], [-0.183779 -0.418375 1.394949] ]
Raw preprocessing white balance: temp 6529.575348, tint 1.007072, multipliers [1.001394 1.000000 1.011154 | 1.001394 1.011154 1.000000]
Sony ILCE-7RM4A.badpixels not found
Preprocessing: 1217902 usec
Demosaicing Bayer data: amaze - 1238010 usec
LENSFUN:
  camera: ---
  lens: ---
  correction: NONE
Output profile_: "RTv4_sRGB_g1"
Using "RTv4_sRGB_g1" output profile

Comments (7)

  1. agriggio repo owner

    Ok, I’ve just done this. My choice of what to include in verbosity level 1 and what move to higher levels was a bit arbitrary, but I’m open to revisions.

    Now the Verbose setting in the options file is an integer instead of a boolean, and you can increase verbosity in ART-cli by just repeating the -V flag (i.e. -V is level 1, -V -V is level 2, and so on… although there is nothing beyond 2 at the moment).

  2. Matthew Arnison reporter

    This is really helpful, thank you for patching this so quickly.

    I tried -V and it works well, but -V -V gives the same single-page output as -V.

  3. Matthew Arnison reporter

    I can confirm that all 3 verbosity levels set using the CLI flags work as you described now. Thanks!

  4. Log in to comment