Add the Ricoh Tag in the config File

Started by ubeulr, April 23, 2016, 05:18:09 AM

Previous topic - Next topic

ubeulr

Hello

I'm trying to add the Ricoh Theta S Tags to the exiftool config, so that I can add the tags if they don't already exist in the file.
When reading the info's from a file with them in it it seems that they are on the main level of group 1.
Example output:
[Ricoh]   Compass  315

But I can not figure out the right definition in the config file. I know that I need a


%Image::ExifTool::UserDefined = (
    'Image::ExifTool::XMP::Main' => {
        GPano => {
            SubDirectory => {
                TagTable => 'Image::ExifTool::UserDefined::GPano',
            },
        },
    },
);


definition and a


%Image::ExifTool::UserDefined::GPano = (
    GROUPS => { 0 => 'XMP', 1 => 'XMP-GPano', 2 => 'Image' },
    NAMESPACE => { 'GPano' => 'http://ns.google.com/photos/1.0/panorama/' },
    WRITABLE => 'string',
    UsePanoramaViewer => { Writable => 'string' }
);


definition. The examples above are from the Google Pano infos which are written in the XMP section. And with this definition I can also write the infos into files which previously didn't have such tag.
But where would the Richo tags go?

Thank you very much for your help.
Ulrich

Phil Harvey

Is this a standard GPano tag?  If so, I should add it to the pre-defined XMP tags.

ExifTool doesn't have the ability to write Ricoh proprietary metadata, so you can write these tags yet.

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

ubeulr

Hi

Thank you for your answer. The tags I try to write are those:
http://www.exiftool.org/TagNames/Ricoh.html#ThetaSubdir > Accelerometer, Compass

But I can only write new values into a jpeg if these tag are already in the file. If it is a "new" file it doesn't change anything.

Command
exiftool -Ricoh:Accelerometer="0 0" -overwrite_original a.jpg

Answer (file that already has Accelerometer values)
1 image files updated

Answer (file without Accelerometer values)
0 image files updated
1 image files unchanged


What am I doing wrong?

Thank you very much
Ulrich

StarGeek

* 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).

ubeulr

Thank you for your answer.

So the only possible way would be to copy all the tags from a source file which already has them and afterwards somehow restore the original values of all the other tags?

StarGeek

You could try -Ricoh:all or -MakerNotes:all to just copy those tags rather than all tags from a source file.
* 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).

ubeulr

Hi

Thank you. I tried the two commands, but unfortunately with no luck:
exiftool -tagsfromfile a.JPG -MakerNotes:all b.jpg
    0 image files updated
    1 image files unchanged

exiftool -tagsfromfile a.JPG -Ricoh:all b.jpg
    0 image files updated
    1 image files unchanged


It would be great if there was some way to only copy these few tags...

StarGeek

Sorry, my mistake.  That format I used tries to copy all the tags individually, not as a block.  And the makernotes tags cannot be copied individually.

Searching back over the forum, it looks like a bit more info is needed.  First, it's going to have to have the make and model tags copied as well so that the makernotes have the correct context.  Here's the command I just tested and which worked for me:
exiftool -tagsfromfile Z:/Exiftool_Metadata_Repository/!original/Ricoh/RicohTHETA.jpg -make -model -makernotes X:\!temp\Test3.jpg

C:\>exiftool -makernotes:all -g1 X:\!temp\Test3.jpg
---- Ricoh ----
Maker Note Type                 : Rdc
Firmware Version                : 1.02
Serial Number                   : (00000000)00100108
Recording Format                : JPEG
Accelerometer                   : 358 -1
Compass                         : 45
* 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).

ubeulr

Hello again

Thank you very much! That works great. :-)

alFrame

Thank you thank you thank you! This saves my but great times! Photoshop and other tools either mess up or simply don't write the MakersNotes to the saved TIF. Now I don't have to manually enter pitch, yaw and roll into PTGui!