On Oct 4, 2018, at 4:45 PM, Deke Kincaid <[email protected]> wrote:
> 
> Two questions
> 
> 1. Is there a special way to print/extract out all metadata from a raw file 
> via oiiotool?  I am trying to use oiiotool —info -v blah.cr2 but I am getting 
> 1/8th the data that exiftool is giving me.  I am using oiio 1.8.10 btw.

Yes, `oiiotool -info -v` is supposed to be the way to print all the metadata.

I did recently enhance the raw reader's handling of camera metadata, which I 
think is only in master and not 1.8, and also libraw itself improves from 
version to version (and I think some of the ways to pull out metadata from its 
API only work for more recent versions).

Aside: `oiiotool --help` will, at the very bottom, tell you the versions of all 
the dependent libraries, so that's one way to see which version of libraw is 
built into your oiiotool.

Is it possible for you to build the current OIIO master, making sure that you 
are building against a fairly current libraw (at least 0.18) and give a try?

If the oiio master + libraw >= 0.18 are still not finding the metadata you are 
interested in, then I would be very happy to receive a cr2 from your camera to 
see what I can fix in oiio to make it get the data you need. Doesn't have to be 
proprietary show data, just snap a picture with the lens cap on for all I care, 
I just want the intact file with all the original raw metadata as written by 
the camera.


> 2. When converting to an openexr, is there an expectation of it writing all 
> the metadata from the raw file to an openexr? 

Yes, I believe that

        oiiotoool in.cr2 -o out.exr

ought to shove all the metadata into the exr header. Again, it depends on 
whether it's reading it correctly and fully from the cr2 in the first place.

Also note that I believe that if you don't give it any extra hints, the 
underlying libraw will debayer the data into sRGB color space, so if you want 
your exr file to be linear response or in a different color space, then you 
might want something like

        oiiotool in.cr2 -colorconvert srgb lnh -o out.exr

I'm kind of pretending here that srgb and lnh are color spaces your OpenColorIO 
config knows about. 

--
Larry Gritz
[email protected]




_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to