Error Editing/Overwriting the WB_RBLevels values

Started by RalphDaub, June 04, 2024, 04:01:16 AM

Previous topic - Next topic

RalphDaub

Hi all! Very newbie here. I'm trying to change the WB_RBLevels value of photos.

One of my photos has the following black levels:
  • [Olympus]      WB_RBLevels                    : 464 512 256 256
  • [Olympus]      BlackLevel2                    : 256 258 258 256

I want to change it to the following (change 512 to 508):
  • [Olympus]      WB_RBLevels                    : 464 508 256 256
  • [Olympus]      BlackLevel2                    : 256 258 258 256

I tried the following commands:

  • exiftool -v2 -WB_RBLevels="464 508 256 256" FILE
  • --- gets the error: Warning: Too many values specified (2 required) for Olympus:WB_RBLevels

  • exiftool -v2 -WB_RBLevels="464 508" FILE
  • --- gets the error: Warning: Not enough values specified (4 required) for Nikon:WB_RBLevels

  • exiftool -v2 -Olympus:WB_RBLevels="464 508" FILE
  • --- gets the error: Warning = Invalid value for MakerNotes:WB_RBLevels

Is there anything else I can try?

Ultimately, I will want to change this black value to ALL files in a directory. At that point, I imagine I can just use an asterisk instead of the filename?

Thanks in advance for any help!

RalphDaub

I also tried copying WB_RBLevels from FILE1.ORF to. FILE2.ORF with no luck:

  • exiftool -v -tagsFromFile FILE1.ORF -WB_RBLevels FILE2.ORF
  • error: Warning: Too many values specified (2 required) for Olympus:WB_RBLevels - RALPH_DAUB-2021-07-10-232348-87033.ORF

It's odd that when I look at the WB_RBLevels values in the photo, it shows 4 numbers:
-Olympus:WB_RBLevels=464 512 256 256

But when I try to edit 4 values, it tells me it's too many, only 2 required.




Thanks so much for any help! Fixing this might be the missing piece of the puzzle to solve a dreaded hue flicker I'm getting in timelapses.

StarGeek

What version of exiftool are you using?
exiftool -ver

What kind of camera are you using?  Can you share a sample image?

According to the Olympus Tags Names page, these tags are supposed to have two integer values, not four. But since camera companies refuse to be consistant, if this is a new camera model, they might have changed the format.

And it's extremely unusual to be getting a Nikon error if you are using Olympus files.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

RalphDaub

The version command returned v12.85

The photos I was editing are from an Olympus OMD EM-1 mk2 (2016). I also checked photos from my "newer" OMD EM-1 mk3 (2020) and it also shows 4 values.

I also thought the Nikon error was unusual. 😅

Here are a few RAW files:


Thank you so much for looking into this with me! Please let me know if there's anything else I can look into, or provide to see what's happening.

StarGeek

There isn't really anything I can do, but this sets things up so that Phil has what he needs when he gets the chance to look at it.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

RalphDaub

Either way, thank you for chiming in!

I'll share a summary below to make it easier for Phil to read! 🤞


SUMMARY OF ISSUE:
I'm trying to adjust the -WB_RBLevels value of RAW images but always get an error.  There are 4 values for that tag in the RAW file:
[Olympus]       WB_RBLevels                     : 464 512 256 256
Camera: Olympus OMD EM-1 mk3 and mk2
Computer: Macbook Pro M1 Sonoma
Exiftool version: 12.85
Files examples:


I tried the following commands:

  • When I list 4 numbers (verbose):
    exiftool -v -WB_RBLevels="464 508 256 256" RALPH_DAUB-2021-07-10-232325-87032.ORF
    Warning: Too many values specified (2 required) for Olympus:WB_RBLevels

  • When I list 4 numbers (verbose 2):
    exiftool -v2 -WB_RBLevels="464 508 256 256" RALPH_DAUB-2021-07-10-232325-87032.ORF
    Writing Nikon:WB_RBLevels if tag exists
    Warning: Too many values specified (2 required) for Olympus:WB_RBLevels


  • When I list 2 numbers:
    exiftool -WB_RBLevels="464 508" RALPH_DAUB-2021-07-10-232325-87032.ORF
    Warning: Invalid value for MakerNotes:WB_RBLevels - RALPH_DAUB-2021-07-10-232325-87032.ORF

  • When I specify -Olympus:WB_RBLevels in the command:
    exiftool -Olympus:WB_RBLevels="464 508" RALPH_DAUB-2021-07-10-232325-87032.ORF
    Warning: Invalid value for MakerNotes:WB_RBLevels - RALPH_DAUB-2021-07-10-232325-87032.ORF

  • When I try to copy -WB_RBLevels values from one RAW image to another:
    exiftool -v -tagsFromFile RALPH_DAUB-2021-07-10-232348-87033.ORF -WB_RBLevels RALPH_DAUB-2021-07-10-232325-87032.ORF
    Warning: Too many values specified (2 required) for Olympus:WB_RBLevels - RALPH_DAUB-2021-07-10-232348-87033.ORF

Really hoping to fix these RAW files. Thanks in advance for any other suggestions!  ;D

QuoteHelp me, Obi-Wan Kenobi. You're my only hope.

Phil Harvey

The problem is that Olympus changed this tag from storing 2 values to storing 4.  I will change this in ExifTool 12.86 to accommodate 4 values, but I won't change the tag name which should presumably be something like WB_RBGGLevels for these models.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).