Viewing Flash Related Tags, Sony Camera

Started by BunXapa, September 01, 2024, 08:37:58 AM

Previous topic - Next topic

BunXapa

Hello to all,

I'm using a the Sony A7IV and the Godox AD100.

I would like to extract the following metadata:
- Flash: if TTL or Manual Flash or No Flash at all was used
- If Manual, the Flash Power i.e. 1/32
- If TTL, any Flash Exposure Compensation
- the Camera Exposure Value

I would like to also be able see other values relating to flash, for example, fill-flash/rear curtain sync, Distance of flash to subject (if it exists).

The most important however are the four mentioned above

I tried the ExifToolGUI and the jExifToolGUI and also saw the reference of Sony tags here:
Sony Tags ExifTool

However, I'm lost on whether its possible, and if yes, on how to derive the above values.
I have been trying to do the above for the past week but I simply cannot figure it out.

I'm not a programmer so if I need to create or edit any config files, please be gentle on the process.

My aim is to create a template that displays the below tags:

- F Number
- ISO
- Shutter Speed (Exposure Time)

- Flash: if TTL or Manual Flash or No Flash at all was used
- If Manual, show the Flash Power
- If TTL, show the Flash Exposure Compensation
- the Camera Exposure Value

Optional:
- Fill-flash/rear curtain sync
- Distance of flash to subject

I would appreciate any help with the above.
Thank you,
Bun

StarGeek

The first three are easy, as they are standard EXIF tags
exiftool -EXIF:FNumber -EXIF:ISO -EXIF:ExposureTime /path/to/files/

The others may be in the EXIF data, or they may be in the Makernotes. And such data has different names depending upon the actual camera make and model, or they may not exist at all.

For this, you'll have to figure out the names and add them to the above list. You would use this command (a variation on the one in FAQ #3)
exiftool -G -a -s -EXIF:all -MakerNotes:all /path/to/files/

Look through the resulting output for the exact data you want. Then add that tag name to the above command.
* 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).

BunXapa

I appreciate your reply.

I ran the
exiftool -G -a -s -EXIF:all -MakerNotes:all /path/to/files/
Below is an example when ran on a single photo:

[EXIF]          SubfileType                    : Reduced-resolution image
[EXIF]          Compression                    : JPEG (old-style)
[EXIF]          ImageDescription                :
[EXIF]          Make                            : SONY
[EXIF]          Model                          : ILCE-7M4
[EXIF]          Orientation                    : Rotate 270 CW
[EXIF]          XResolution                    : 350
[EXIF]          YResolution                    : 350
[EXIF]          ResolutionUnit                  : inches
[EXIF]          Software                        : ILCE-7M4 v3.01
[EXIF]          ModifyDate                      : 2024:08:25 03:05:44
[EXIF]          SubfileType                    : Full-resolution image
[EXIF]          ImageWidth                      : 7168
[EXIF]          ImageHeight                    : 5120
[EXIF]          Compression                    : JPEG
[EXIF]          PhotometricInterpretation      : Color Filter Array
[EXIF]          SamplesPerPixel                : 1
[EXIF]          PlanarConfiguration            : Chunky
[EXIF]          XResolution                    : 350
[EXIF]          YResolution                    : 350
[EXIF]          ResolutionUnit                  : inches
[EXIF]          CFARepeatPatternDim            : 2 2
[EXIF]          CFAPattern2                    : 0 1 1 2
[EXIF]          SonyRawFileType                : Sony Lossless Compressed RAW 2
[EXIF]          SonyToneCurve                  : 0 0 0 0
[EXIF]          StripOffsets                    : 2912256
[EXIF]          RowsPerStrip                    : 5120
[EXIF]          StripByteCounts                : 37380080
[EXIF]          VignettingCorrection            : Auto (ILCE-1)
[EXIF]          VignettingCorrParams            : 16 0 160 448 864 1376 1984 2656 3456 4352 5376 6464 7520 8544 9504 10400 11232
[EXIF]          ChromaticAberrationCorrection  : Auto
[EXIF]          ChromaticAberrationCorrParams  : 32 256 384 512 640 640 640 640 640 640 640 640 640 640 640 640 640 -256 -256 -256 -256 -256 -256 -256 -256 -256 -128 -128 -128 -128 -128 0 -128
[EXIF]          DistortionCorrection            : Auto
[EXIF]          DistortionCorrParams            : 16 10 1 -9 -20 -34 -49 -66 -80 -93 -101 -103 -96 -81 -50 -7 53
[EXIF]          BlackLevel                      : 512 512 512 512
[EXIF]          WB_RGGBLevels                  : 2652 1024 1024 1516
[EXIF]          DefaultCropOrigin              : 12 8
[EXIF]          DefaultCropSize                : 7008 4672
[EXIF]          SonyCropTopLeft                : 12 8
[EXIF]          SonyCropSize                    : 7008 4672
[EXIF]          WhiteLevel                      : 16383
[EXIF]          BitsPerSample                  : 14
[EXIF]          SonyRawImageSize                : 7032 4688
[EXIF]          TileWidth                      : 512
[EXIF]          TileLength                      : 512
[EXIF]          TileOffsets                    : (Binary data 1231 bytes, use -b option to extract)
[EXIF]          TileByteCounts                  : (Binary data 979 bytes, use -b option to extract)
[EXIF]          PreviewImageStart              : 196770
[EXIF]          PreviewImageLength              : 215700
[EXIF]          YCbCrPositioning                : Co-sited
[EXIF]          ExposureTime                    : 1/250
[EXIF]          FNumber                        : 1.8
[EXIF]          ExposureProgram                : Manual
[EXIF]          ISO                            : 400
[EXIF]          SensitivityType                : Recommended Exposure Index
[EXIF]          RecommendedExposureIndex        : 400
[EXIF]          ExifVersion                    : 0232
[EXIF]          DateTimeOriginal                : 2024:08:25 03:05:44
[EXIF]          CreateDate                      : 2024:08:25 03:05:44
[EXIF]          OffsetTime                      : +02:00
[EXIF]          OffsetTimeOriginal              : +02:00
[EXIF]          OffsetTimeDigitized            : +02:00
[EXIF]          ComponentsConfiguration        : Y, Cb, Cr, -
[EXIF]          CompressedBitsPerPixel          : 9
[EXIF]          BrightnessValue                : 1.71640625
[EXIF]          ExposureCompensation            : 0
[EXIF]          MaxApertureValue                : 1.4
[EXIF]          MeteringMode                    : Multi-segment
[EXIF]          LightSource                    : Unknown
[EXIF]          Flash                          : On, Return detected
[EXIF]          FocalLength                    : 24.0 mm
[EXIF]          UserComment                    :
[EXIF]          SubSecTime                      : 078
[EXIF]          SubSecTimeOriginal              : 078
[EXIF]          SubSecTimeDigitized            : 078
[EXIF]          FlashpixVersion                : 0100
[EXIF]          ColorSpace                      : sRGB
[EXIF]          ExifImageWidth                  : 7008
[EXIF]          ExifImageHeight                : 4672
[EXIF]          InteropIndex                    : R98 - DCF basic file (sRGB)
[EXIF]          InteropVersion                  : 0100
[EXIF]          FileSource                      : Digital Camera
[EXIF]          SceneType                      : Directly photographed
[EXIF]          CustomRendered                  : Normal
[EXIF]          ExposureMode                    : Manual
[EXIF]          WhiteBalance                    : Manual
[EXIF]          DigitalZoomRatio                : 1
[EXIF]          FocalLengthIn35mmFormat        : 24 mm
[EXIF]          SceneCaptureType                : Standard
[EXIF]          Contrast                        : Normal
[EXIF]          Saturation                      : Normal
[EXIF]          Sharpness                      : Normal
[EXIF]          LensInfo                        : 24mm f/1.4
[EXIF]          LensModel                      : FE 24mm F1.4 GM
[EXIF]          CompositeImage                  : Unknown
[EXIF]          SubfileType                    : Reduced-resolution image
[EXIF]          Compression                    : JPEG (old-style)
[EXIF]          ImageDescription                :
[EXIF]          Make                            : SONY
[EXIF]          Model                          : ILCE-7M4
[EXIF]          Orientation                    : Rotate 270 CW
[EXIF]          XResolution                    : 72
[EXIF]          YResolution                    : 72
[EXIF]          ResolutionUnit                  : inches
[EXIF]          Software                        : ILCE-7M4 v3.01
[EXIF]          ModifyDate                      : 2024:08:25 03:05:44
[EXIF]          ThumbnailOffset                : 43946
[EXIF]          ThumbnailLength                : 10189
[EXIF]          YCbCrPositioning                : Co-sited
[EXIF]          SubfileType                    : Reduced-resolution image
[EXIF]          ImageWidth                      : 7008
[EXIF]          ImageHeight                    : 4672
[EXIF]          BitsPerSample                  : 8 8 8
[EXIF]          Compression                    : JPEG
[EXIF]          PhotometricInterpretation      : YCbCr
[EXIF]          ImageDescription                :
[EXIF]          Orientation                    : Rotate 270 CW
[EXIF]          SamplesPerPixel                : 3
[EXIF]          PlanarConfiguration            : Chunky
[EXIF]          JpgFromRawStart                : 413696
[EXIF]          JpgFromRawLength                : 2495482
[EXIF]          YCbCrCoefficients              : 0.299 0.587 0.114
[EXIF]          YCbCrSubSampling                : YCbCr4:2:2 (2 1)
[EXIF]          YCbCrPositioning                : Co-sited
[EXIF]          ReferenceBlackWhite            : 0 255 128 128 128 128
[EXIF]          JpgFromRaw                      : (Binary data 2495482 bytes, use -b option to extract)
[EXIF]          PreviewImage                    : (Binary data 215700 bytes, use -b option to extract)
[EXIF]          ThumbnailImage                  : (Binary data 10189 bytes, use -b option to extract)
[MakerNotes]    Rating                          : 0
[MakerNotes]    Contrast                        : 0
[MakerNotes]    Saturation                      : 0
[MakerNotes]    Sharpness                      : +4
[MakerNotes]    Brightness                      : 0
[MakerNotes]    LongExposureNoiseReduction      : Off
[MakerNotes]    HighISONoiseReduction          : Off
[MakerNotes]    HDR                            : Off; Uncorrected image
[MakerNotes]    WBShiftAB_GM                    : 0 0
[MakerNotes]    WBShiftAB_GM_Precise            : 0.00 0.00
[MakerNotes]    CreativeStyle                  : Standard
[MakerNotes]    ColorTemperature                : 6200
[MakerNotes]    ColorCompensationFilter        : 0
[MakerNotes]    SceneMode                      : Standard
[MakerNotes]    ZoneMatching                    : ISO Setting Used
[MakerNotes]    DynamicRangeOptimizer          : Off
[MakerNotes]    ImageStabilization              : On
[MakerNotes]    ColorMode                      : Standard
[MakerNotes]    FullImageSize                  : 7008x4672
[MakerNotes]    PreviewImageSize                : 1616x1080
[MakerNotes]    FileFormat                      : ARW 5.0.1
[MakerNotes]    Quality                        : RAW + JPEG/HEIF
[MakerNotes]    FlashExposureComp              : 0
[MakerNotes]    WhiteBalanceFineTune            : 0
[MakerNotes]    WhiteBalance                    : Color Temperature/Color Filter
[MakerNotes]    SonyModelID                    : ILCE-7M4
[MakerNotes]    MultiFrameNoiseReduction        : Off
[MakerNotes]    PictureEffect                  : Off
[MakerNotes]    SoftSkinEffect                  : Off
[MakerNotes]    VignettingCorrection            : Auto
[MakerNotes]    LateralChromaticAberration      : Auto
[MakerNotes]    DistortionCorrectionSetting    : Auto
[MakerNotes]    LensType                        : E-Mount, T-Mount, Other Lens or no lens
[MakerNotes]    LensSpec                        : FE 24mm F1.4
[MakerNotes]    AutoPortraitFramed              : No
[MakerNotes]    FlashAction                    : External Flash Fired
[MakerNotes]    ElectronicFrontCurtainShutter  : Off
[MakerNotes]    FocusMode                      : AF-C
[MakerNotes]    AFAreaModeSetting              : Wide
[MakerNotes]    FlexibleSpotPosition            : 0 0
[MakerNotes]    AFPointSelected                : n/a
[MakerNotes]    AFPointsUsed                    : (none)
[MakerNotes]    AFTracking                      : Off
[MakerNotes]    FocalPlaneAFPointsUsed          : 8
[MakerNotes]    FocalPlaneAFPointArea          : 640 428
[MakerNotes]    FocalPlaneAFPointLocation1      : 428 159
[MakerNotes]    FocalPlaneAFPointLocation2      : 446 180
[MakerNotes]    FocalPlaneAFPointLocation3      : 428 180
[MakerNotes]    FocalPlaneAFPointLocation4      : 410 180
[MakerNotes]    FocalPlaneAFPointLocation5      : 410 159
[MakerNotes]    FocalPlaneAFPointLocation6      : 410 139
[MakerNotes]    FocalPlaneAFPointLocation7      : 428 139
[MakerNotes]    FocalPlaneAFPointLocation8      : 446 139
[MakerNotes]    MultiFrameNREffect              : Normal
[MakerNotes]    FocusLocation                  : 7008 4672 4686 1547
[MakerNotes]    VariableLowPassFilter          : n/a
[MakerNotes]    PrioritySetInAWB                : Standard
[MakerNotes]    MeteringMode2                  : Multi-segment
[MakerNotes]    ExposureStandardAdjustment      : 0
[MakerNotes]    RAWFileType                    : Lossless Compressed RAW
[MakerNotes]    Quality                        : RAW + Extra Fine
[MakerNotes]    PixelShiftInfo                  : n/a
[MakerNotes]    Shadows                        : 0
[MakerNotes]    Highlights                      : 0
[MakerNotes]    Fade                            : 0
[MakerNotes]    SharpnessRange                  : +3
[MakerNotes]    Clarity                        : +1
[MakerNotes]    FocusFrameSize                  : 153x156
[MakerNotes]    JPEG-HEIFSwitch                : JPEG
[MakerNotes]    HiddenDataOffset                : 143360
[MakerNotes]    HiddenDataLength                : 53248
[MakerNotes]    ExposureMode                    : Manual
[MakerNotes]    FlashLevel                      : Normal
[MakerNotes]    ReleaseMode                    : Continuous
[MakerNotes]    SequenceNumber                  : 1
[MakerNotes]    Anti-Blur                      : On (Shooting)
[MakerNotes]    DynamicRangeOptimizer          : Off
[MakerNotes]    IntelligentAuto                : Off
[MakerNotes]    WhiteBalance                    : Auto
[MakerNotes]    ReleaseMode2                    : Continuous
[MakerNotes]    SequenceImageNumber            : 1
[MakerNotes]    SequenceLength                  : Continuous
[MakerNotes]    SequenceFileNumber              : 1
[MakerNotes]    SequenceLength                  : Continuous
[MakerNotes]    CameraOrientation              : Rotate 270 CW
[MakerNotes]    Quality2                        : RAW + JPEG
[MakerNotes]    ISOSetting                      : 400
[MakerNotes]    ISOAutoMin                      : 100
[MakerNotes]    ISOAutoMax                      : 16000
[MakerNotes]    AmbientTemperature              : 29 C
[MakerNotes]    FocusMode                      : AF-C
[MakerNotes]    AFAreaMode                      : Multi
[MakerNotes]    FocusPosition2                  : 154
[MakerNotes]    Tag9416_0000                    :  3
[MakerNotes]    SonyISO                        : 400
[MakerNotes]    StopsAboveBaseISO              : 2.0
[MakerNotes]    SonyExposureTime2              : 1/235
[MakerNotes]    ExposureTime                    : 1/250
[MakerNotes]    SonyFNumber2                    : 1.9
[MakerNotes]    SonyMaxApertureValue            : 1.4
[MakerNotes]    SequenceImageNumber            : 1
[MakerNotes]    ReleaseMode2                    : Continuous
[MakerNotes]    ExposureProgram                : Manual
[MakerNotes]    CreativeStyle                  : Standard
[MakerNotes]    LensMount                      : E-mount
[MakerNotes]    LensFormat                      : Full-frame
[MakerNotes]    LensMount                      : E-mount
[MakerNotes]    LensType2                      : Unknown E-mount lens or other lens
[MakerNotes]    DistortionCorrParams            : 11 1 -10 -22 -38 -54 -73 -89 -104 -112 -115 -107 -90 -56 -8 59
[MakerNotes]    PictureProfile                  : Gamma Still - Standard/Neutral (PP2)
[MakerNotes]    FocalLength                    : 24.0 mm
[MakerNotes]    MinFocalLength                  : 24.0 mm
[MakerNotes]    VignettingCorrParams            : 0 160 448 864 1376 1984 2656 3456 4352 5376 6464 7520 8544 9504 10400 11232
[MakerNotes]    APS-CSizeCapture                : Off
[MakerNotes]    ChromaticAberrationCorrParams  : 330 472 584 666 718 734 732 722 710 710 712 704 696 690 690 690 -204 -184 -170 -161 -157 -161 -165 -159 -145 -116 -82 -51 -24 -4 4 -7
[MakerNotes]    BatteryTemperature              : 40.6 C
[MakerNotes]    BatteryLevel                    : 92%
[MakerNotes]    LensMount2                      : E-mount
[MakerNotes]    LensType3                      : Sony FE 24mm F1.4 GM
[MakerNotes]    CameraE-mountVersion            : 1.80
[MakerNotes]    LensE-mountVersion              : 1.60
[MakerNotes]    LensFirmwareVersion            : Ver.03.001
[MakerNotes]    Shutter                        : Mechanical (2799 5216 6488)
[MakerNotes]    FlashStatus                    : External Flash Fired
[MakerNotes]    ShutterCount                    :  26199
[MakerNotes]    SonyExposureTime                : 1/235
[MakerNotes]    SonyFNumber                    : 1.8
[MakerNotes]    ReleaseMode2                    : Continuous
[MakerNotes]    SonyExposureTime                : 1/235
[MakerNotes]    SonyFNumber                    : 1.8
[MakerNotes]    ReleaseMode2                    : Continuous
[MakerNotes]    InternalSerialNumber            : 4fff0000dc08
[MakerNotes]    SR2SubIFDOffset                : 65902
[MakerNotes]    SR2SubIFDLength                : 35398
[MakerNotes]    SR2SubIFDKey                    : 0x44332211
[MakerNotes]    BlackLevel                      : 512 512 512 512
[MakerNotes]    WB_RGGBLevelsAuto              : 2854 1024 1024 1525
[MakerNotes]    WB_RGGBLevels                  : 2652 1024 1024 1516
[MakerNotes]    ColorMatrix                    : 933 26 65 207 992 -175 99 -13 937
[MakerNotes]    WB_RGBLevelsDaylight            : 2449 1024 1689
[MakerNotes]    WB_RGBLevelsCloudy              : 2651 1024 1547
[MakerNotes]    WB_RGBLevelsTungsten            : 1496 1024 3076
[MakerNotes]    WB_RGBLevelsFlash              : 2845 1024 1579
[MakerNotes]    WB_RGBLevels4500K              : 2223 1024 1860
[MakerNotes]    WB_RGBLevelsShade              : 2890 1024 1366
[MakerNotes]    WB_RGBLevelsFluorescent        : 2280 1024 2340
[MakerNotes]    WB_RGBLevelsFluorescentP1      : 2441 1024 1711
[MakerNotes]    WB_RGBLevelsFluorescentP2      : 2713 1024 1596
[MakerNotes]    WB_RGBLevelsFluorescentM1      : 1769 1024 2921
[MakerNotes]    WB_RGBLevels8500K              : 3003 1024 1298
[MakerNotes]    WB_RGBLevels6000K              : 2612 1024 1545
[MakerNotes]    WB_RGBLevels3200K              : 1727 1024 2540
[MakerNotes]    WB_RGBLevels2500K              : 1360 1024 3462
[MakerNotes]    WhiteLevel                      : 15360 15360 15360
[MakerNotes]    ColorMode                      : Standard
[MakerNotes]    ColorMode                      : Vivid
[MakerNotes]    ColorMode                      : Neutral
[MakerNotes]    ColorMode                      : Portrait
[MakerNotes]    ColorMode                      : FL
[MakerNotes]    ColorMode                      : VV2
[MakerNotes]    ColorMode                      : IN
[MakerNotes]    ColorMode                      : SH
[MakerNotes]    ColorMode                      : BW
[MakerNotes]    ColorMode                      : Sepia
[MakerNotes]    VignettingCorrParams            : 16 0 160 448 864 1376 1984 2656 3456 4352 5376 6464 7520 8544 9504 10400 11232
[MakerNotes]    ChromaticAberrationCorrParams  : 32 256 384 512 640 640 640 640 640 640 640 640 640 640 640 640 640 -256 -256 -256 -256 -256 -256 -256 -256 -256 -128 -128 -128 -128 -128 0 -128
[MakerNotes]    DistortionCorrParams            : 16 10 1 -9 -20 -34 -49 -66 -80 -93 -101 -103 -96 -81 -50 -7 53
    1 directories scanned
    1 image files read

The only Flash related values I found were:
Flash
FlashpixVersion
FlashAction
FlashExposureComp
FlashLevel
FlashStatus

So thereafter I ran the exiftool on two photos, one taken with TTL/FEC and the other with Manual Flash.

These are the results I received:
F Number                        : 1.4
ISO                            : 100
Exposure Time                  : 1/60
Flash                          : On, Return not detected
Flashpix Version                : 0100
Flash Action                    : External Flash Fired
Flash Exposure Compensation    : 0
Flash Level                    : Normal
Flash Status                    : External Flash Fired

F Number                        : 1.8
ISO                            : 400
Exposure Time                  : 1/250
Flash                          : On, Return detected
Flashpix Version                : 0100
Flash Action                    : External Flash Fired
Flash Exposure Compensation    : 0
Flash Level                    : Normal
Flash Status                    : External Flash Fired


Based on the above I assume that the "Flash detected vs not detected", is the "TTL vs Manual" as it got it correct. Doing a search on google doesn't really help - as to if this is true I get conflicting results.  For the Power in Manual Flash, or the Flash Exposure Compensation in TTL, should I assume this is not possible? I tried some of the values in
https://exiftool.org/TagNames/Sony.html
but I don't get any results.

Thank you once again

StarGeek

FlashpixVersion can be ignored, it's an old, obsolete standard, but it still appears in some cameras. See the FlashPix tag page for more details.

Quote from: BunXapa on September 01, 2024, 12:11:23 PMBased on the above I assume that the "Flash detected vs not detected", is the "TTL vs Manual" as it got it correct. Doing a search on google doesn't really help - as to if this is true I get conflicting results.

The problem is, camera companies don't publish the details of their MakerNotes, and some go to considerable lengths to hide their metadata by obfuscating it. Most of the knowledge of these tags are done in exactly that way, take a picture, check the file, change a setting, repeat.

QuoteFor the Power in Manual Flash, or the Flash Exposure Compensation in TTL, should I assume this is not possible?

Maybe, Maybe not. It's always possible that the data hasn't been located. You can use the -u (-unknown) option to check to see if it might be there. There are almost always unknown tags in the Makernotes.

QuoteI tried some of the values in https://exiftool.org/TagNames/Sony.html but I don't get any results.

The first command will already give you every known tag in the file. There's no need to check any individual tags on that page.

If you change -G to -G1, that will give more details on the groups the tags belong to. Sony tags should have [Sony] or [SonyIDC], and EXIF tags will have IFD in the group name.
* 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).

BunXapa

I did a few tests and it seems that indeed the
"Flash: On, Return not detected" = Manual flash
"Flash: On, Return detected" = TTL flash

However, with regard to the values of Flash Power in Manual mode and Flash Exposure Compensation in TTL, I don't believe it is possible.

I made a comparison excel sheet that compares the values of a TTL vs Manual Flash taken photo. I tried both the -u and -U commands

https://www.mediafire.com/file/j7qib7uvh2gi5nl/Comparison.xlsx/file

I don't believe however that the values are provided or registered.

I appreciate the response.

BunXapa

The only value that might be useful is the 0xb048 FlashLevel
https://exiftool.org/TagNames/Sony.html
however upon requesting, the returned value is "Normal" instead of an integer. Is there perhaps, a way to return the actual integer value?

For the 0x0104- FlashExposureComp-rational64s, the returned value is always 0 (for both TTL and Manual Flash shot photos)   

Phil Harvey

Add the -n option to return the integer values.

- 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 ($).

BunXapa

Both the
exiftool -n -MakerNotes:FlashExposureComp
exiftool -n -MakerNotes:FlashLevel
still return a 0 value, assuming that the command is correct.

Perhaps there's no other value stored except 0?