Possible? HowTo make Canon specific exif-info available in .dng's for ACR/LR?

Started by l_d_allan, October 07, 2013, 03:53:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

l_d_allan

My understanding is that Canon has some proprietary EXIF info embedded in their .cr2 RAW files for non-standard info like

  • If Long exposure noise reduction on/off
  • If High ISO speed noise reduction on/off/strength?
  • If Auto Lighting Optimizer enabled/disable
  • Peripheral illumination correction enabled/disable
  • others, depending on model
The above (and more) is available to DPP 3.13.45 using their "Info" window. Many or most of the above don't seem to be available when Adobe's DngConverter generates .dng's from the .cr2's. Drat. Or perhaps I'm unaware on how to accomplish this?

If this Canon specific exif info is "lost" by DngConverter, is there a way for MagicLantern to accomplish this, or equivalent? Some other utility? I've asked on the ExifTool forum, but that doesn't seem like something ExifTool could do.

Could ML do something like make Keywords out of this non-standard exif info, such as what cr2hdr.exe does? Or some renaming option like what is an option with DUAL_ISO?


Marsu42

Imho you're mistaken - "exiftool -All" on the cr2 and the dng after cr2hdr show no significant differences, all the information you said was missing is still in the dng. Below a diff of the cr2 and the dng metadata (through which I discovered the lens crop factor is broken in dng2hdr).

Your problem most likely is that your software is not able to read the maker notes from the dng, but they're there alright.


--- cr2-all.txt 2013-10-07 18:24:41.609511100 +0200
+++ dng-ml-all.txt 2013-10-07 18:25:22.506850300 +0200
@@ -1,28 +1,45 @@
ExifTool Version Number         : 9.34
-File Name                       : DUAL5319.CR2
+File Name                       : DUAL5319-ML.DNG
Directory                       : .
-File Size                       : 28 MB
-File Modification Date/Time     : 2013:10:03 12:36:16+02:00
-File Access Date/Time           : 2013:10:03 20:21:55+02:00
-File Creation Date/Time         : 2013:10:03 20:21:55+02:00
+File Size                       : 39 MB
+File Modification Date/Time     : 2013:10:07 17:54:17+02:00
+File Access Date/Time           : 2013:10:07 17:54:17+02:00
+File Creation Date/Time         : 2013:10:07 17:54:17+02:00
File Permissions                : rw-rw-rw-
-File Type                       : CR2
-MIME Type                       : image/x-canon-cr2
+File Type                       : DNG
+MIME Type                       : image/x-adobe-dng
Exif Byte Order                 : Little-endian (Intel, II)
-Image Width                     : 5472
-Image Height                    : 3648
-Bits Per Sample                 : 8 8 8
-Compression                     : JPEG (old-style)
+Image Description               :
Make                            : Canon
Camera Model Name               : Canon EOS 6D
-Preview Image Start             : 90540
Orientation                     : Horizontal (normal)
-Preview Image Length            : 4858923
-X Resolution                    : 72
-Y Resolution                    : 72
-Resolution Unit                 : inches
+Software                        : Magic Lantern
Modify Date                     : 2013:10:03 12:36:15
Artist                          :
+Subfile Type                    : Full-resolution Image
+Image Width                     : 5568
+Image Height                    : 3708
+Bits Per Sample                 : 16
+Compression                     : Uncompressed
+Photometric Interpretation      : Color Filter Array
+Strip Offsets                   : 12502
+Samples Per Pixel               : 1
+Rows Per Strip                  : 3708
+Strip Byte Counts               : 41292288
+X Resolution                    : 180
+Y Resolution                    : 180
+Planar Configuration            : Chunky
+Resolution Unit                 : inches
+CFA Repeat Pattern Dim          : 2 2
+CFA Pattern 2                   : 0 1 1 2
+Black Level                     : 7996
+White Level                     : 50000
+Default Crop Origin             : 0 0
+Default Crop Size               : 5496 3670
+Active Area                     : 38 72 3708 5568
+Opcode List 1                   : (Binary data 28 bytes, use -b option to extract)
+XMP Toolkit                     : Image::ExifTool 9.34
+Subject                         : Dual-ISO
Rating                          : 0
Copyright                       :
Exposure Time                   : 1/60
@@ -34,9 +51,9 @@
Exif Version                    : 0230
Date/Time Original              : 2013:10:03 12:36:15
Create Date                     : 2013:10:03 12:36:15
-Components Configuration        : Y, Cb, Cr, -
Shutter Speed Value             : 1/64
Aperture Value                  : 16.0
+Max Aperture Value              : 1.0
Flash                           : Off, Did not fire
Focal Length                    : 17.0 mm
Macro Mode                      : Normal
@@ -264,13 +281,12 @@
Color Space                     : sRGB
Exif Image Width                : 5472
Exif Image Height               : 3648
-Interoperability Index          : R98 - DCF basic file (sRGB)
-Interoperability Version        : 0100
Focal Plane X Resolution        : 3810.584958
Focal Plane Y Resolution        : 3815.899582
Focal Plane Resolution Unit     : inches
Custom Rendered                 : Normal
Exposure Mode                   : Auto
+Focal Length In 35mm Format     : 0 mm
Scene Capture Type              : Standard
Owner Name                      :
Serial Number                   : 033024025089
@@ -278,35 +294,39 @@
Lens Model                      : EF17-40mm f/4L USM
Lens Serial Number              : 0000000000
GPS Version ID                  : 2.3.0.0
-Thumbnail Offset                : 80044
-Thumbnail Length                : 10493
-Photometric Interpretation      : RGB
-Samples Per Pixel               : 3
-Rows Per Strip                  : 309
-Planar Configuration            : Chunky
-Strip Offsets                   : 5809720
-Strip Byte Counts               : 23753915
-Raw Image Segmentation          : 1 2784 2784
+TIFF-EP Standard ID             : 1 0 0 0
+DNG Version                     : 1.3.0.0
+DNG Backward Version            : 1.3.0.0
+Unique Camera Model             : Canon EOS 6D
+Color Matrix 1                  : 0.7034 -0.0804 -0.1014 -0.442 1.2564 0.2058 -0.0851 0.1994 0.5758
+Analog Balance                  : 1 1 1
+As Shot Neutral                 : 0.473635 1 0.624
+Baseline Exposure               : undef
+Baseline Noise                  : 1
+Baseline Sharpness              : 1.333333333
+Linear Response Limit           : 1
+Calibration Illuminant 1        : Standard Light A
+Calibration Illuminant 2        : D65
+Frame Rate                      : 25
Aperture                        : 16.0
+CFA Pattern                     : [Red,Green][Green,Blue]
Drive Mode                      : Single-frame Shooting
File Number                     : 101-5319
-Image Size                      : 5472x3648
+Image Size                      : 5568x3708
Lens                            : 17.0 - 40.0 mm
Lens ID                         : Canon EF 17-40mm f/4L
-Preview Image                   : (Binary data 4858923 bytes, use -b option to extract)
-Scale Factor To 35 mm Equivalent: 1.0
+Scale Factor To 35 mm Equivalent: 3.9
Shooting Mode                   : Shutter speed priority AE
Shutter Speed                   : 1/60
Create Date                     : 2013:10:03 12:36:15.23
Date/Time Original              : 2013:10:03 12:36:15.23
Modify Date                     : 2013:10:03 12:36:15.23
-Thumbnail Image                 : (Binary data 10493 bytes, use -b option to extract)
WB RGGB Levels                  : 1960 1024 1024 1889
Blue Balance                    : 1.844727
-Circle Of Confusion             : 0.030 mm
-Field Of View                   : 94.0 deg
-Focal Length                    : 17.0 mm (35 mm equivalent: 16.8 mm)
-Hyperfocal Distance             : 0.59 m
-Lens                            : 17.0 - 40.0 mm (35 mm equivalent: 16.8 - 39.5 mm)
+Circle Of Confusion             : 0.008 mm
+Field Of View                   : 30.0 deg
+Focal Length                    : 17.0 mm (35 mm equivalent: 67.1 mm)
+Hyperfocal Distance             : 2.37 m
+Lens                            : 17.0 - 40.0 mm (35 mm equivalent: 67.1 - 158.0 mm)
Light Value                     : 13.9
Red Balance                     : 1.914063

l_d_allan

Thanks for using ExifTool to show this ExifTool newbie that the Exif information I was interested in was actually preserved in the .dng.

I used the command line
ExifTool MyDngFromDngConverter.dng -All
to see what was available from a .dng that was generated by DngConverter from a .cr2

The source of my confusion / error is that Adobe's Bridge doesn't seem to make those specific Exif fields visible.

Within Bridge + Edit + Preferences + Metadata, they aren't in the list of Metadata that can be check-boxed to appear for a selected image.

garry23

I am jumping on the end of this old post as my question is written as an ExifTool newbie.

When I dump out the metadata on my image, ie ExifTool -all test.cr2 > test.txt, and look at the tags/fields (?), I can not find any reference to the blacklevel.

I'm looking for that so I can adjust the absolute or a relative blacklevel using ExifTool, ie check the blacklevel and ensure, in the case of the 5DIII it is, say, 2048, ie in .dng after processing with, say, CeroNoice.

Could some kind expert point me in the right direction, ie how I may do this (I'm scripting in a Windows .bat).

Cheers

Garry

Audionut

You need to average a bunch of pixels in the optical black area.

RawDigger will allow you to do this easily.  But it is payware now.

garry23

Oh.

I thought it was hard coded in the .cr2, as in other parts of the forum people say use exiftool -blacklevel=xxxx yy.dng


Audionut

http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Canon.html#ColorData4

http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/DNG.html

QuoteDNG AdobeData Tags

This information is found in the "Adobe" DNGPrivateData.

The maker notes ('MakN') are processed by ExifTool, but some information may have been lost by the Adobe DNG Converter. This is because the Adobe DNG Converter (as of version 6.3) doesn't properly handle information referenced from inside the maker notes that lies outside the original maker notes block. This information is lost when only the maker note block is copied to the DNG image. While this doesn't effect all makes of cameras, it is a problem for some major brands such as Olympus and Sony.

Other entries in this table represent proprietary information that is extracted from the original RAW image and restructured to a different (but still proprietary) Adobe format.

garry23

Thanks for the education.

I appreciate your time in posting a reply.

I'll just have to wait for version 2 of CeroNoice to come out and live with version 1's 'features'.

Cheers

Audionut

No worries  :)

Also, the black levels probably won't match after processing with ceronoice.  Since it's 14bit > 16bit, and whatever other processing a1ex is doing.

Why exactly do you need black level reading?