Ah, I see the problem. It's the ":" in the metadata name, it's trying to parse 
it like a C identifier. Hang on, it's literally a one-line fix..



> On Jan 19, 2016, at 4:21 AM, Sebastian Elsner | RISE <[email protected]> 
> wrote:
> 
> Finally I was able to try this today and it worked but some special cases 
> would not. For example:
> 
> oiiotool in.dpx -sattrib ImageDescription {TOP.dpx:InputDevice} -o out.jpg
> 
> I am getting:
> 
> oiiotool ERROR: expression : unknown attribute name `dpx' at char 8 of 
> `TOP.dpx:InputDevice'
> 
> am I missing something or is this case just not covered by the current 
> implementation?
> 
> Regards,
> Sebastian
> 
> On 03/13/2015 11:20 PM, Larry Gritz wrote:
>> YES! That's a great idea. You should be able to copy one image's metadata to 
>> a field of a different name entirely using the expression evaluation. For 
>> example, this would copy the DateTime field into the image description field:
>> 
>>      oiiotool old.jpg -sattrib ImageDescription {TOP.DateTime} -o new.jpg
>> 
>> That's with the current master branch only, because this expression 
>> evaluation is not in the release branch 1.5.
>> 
>> Ok, but it's possible that this is not necessary at all. I think that the 
>> DPX reader should try hard to load the DPX timecode into the generic 
>> "DateTime" metadata field, and also the JPEG writer will put the generic 
>> DateTime into the Exif data. So it may just work with no help at all:
>> 
>>      oiiotool old.dpx -o new.jpg
>> 
>> Does that already do what you want? If not, then I think Justin is on the 
>> right track.
>> 
>>      -- lg
>> 
>> On Mar 13, 2015, at 4:49 PM, Justin Israel < 
>> <mailto:[email protected]>[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>>> Maybe you can do that with the new expression support that Larry added? 
>>> https://github.com/OpenImageIO/oiio/pull/1064 
>>> <https://github.com/OpenImageIO/oiio/pull/1064>
>>> I haven't tried that, but you could possible set a metadata value from the 
>>> expression that evaluates from another metadata key? 
>>> 
>>> On Sat, 14 Mar 2015 1:34 AM Sebastian Elsner | RISE <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> Hello,
>>> 
>>> is there a way with the current oiiotool to map/transfer metadata from one 
>>> field name to the other? For example: I would like to put a dpx's timecode 
>>> into an exif field of a jpg (that is created in the first step). As far as 
>>> I can see, currently the metadata fields can only be set explicitly to key> 
>>> value.
>>> 
>>> Best,
>>> 
>>> Sebastian
>>> 
>>> 
>>> -- 
>>> check out pointcloud9.com <http://pointcloud9.com/>
>>> 
>>> Sebastian Elsner - Pipeline Techincal Director - RISE
>>> 
>>> t: +49 30 20180300 [email protected]  <mailto:[email protected]>
>>> f: +49 30 61651074  <http://www.risefx.com/>www.risefx.com 
>>> <http://www.risefx.com/>
>>> RISE FX GmbH
>>> Schlesische Strasse 28, 10997 Berlin
>>> An der Schanz 1A, 50735 Köln
>>> Theodor-Heuss-Strasse 8, 70174 Stuttgart
>>> Gumpendorferstrasse 55, 1060 Wien
>>> Geschaeftsfuehrer: Sven Pannicke, Robert Pinnow
>>> Handelsregister Berlin HRB 106667 B
>>> 
>>> _______________________________________________
>>> Oiio-dev mailing list
>>> [email protected] <mailto:[email protected]>
>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
>>> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
>>> _______________________________________________
>>> Oiio-dev mailing list
>>> [email protected] <mailto:[email protected]>
>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
>>> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
>> 
>> --
>> Larry Gritz
>> [email protected] <mailto:[email protected]>
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Oiio-dev mailing list
>> [email protected] <mailto:[email protected]>
>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
>> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
> 
> -- 
> check out pointcloud9.com <http://pointcloud9.com/>
> 
> Sebastian Elsner - Pipeline Technical Director - RISE
> 
> t: +49 30 20180300  <mailto:[email protected]>[email protected] 
> <mailto:[email protected]> 
> f: +49 30 61651074 www.risefx.com <http://www.risefx.com/>
> RISE FX GmbH
> Schlesische Straße 28, 10997 Berlin
> An der Schanz 1A, 50735 Köln
> Büchsenstraße 20, 70174 Stuttgart
> Gumpendorferstraße 55, 1060 Wien
> Geschaeftsfuehrer: Sven Pannicke, Robert Pinnow
> Handelsregister Berlin HRB 106667 B
> 
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

--
Larry Gritz
[email protected]


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

Reply via email to