JSON export --> import test FAILED

Started by audiogalaxy, March 18, 2021, 08:33:39 PM

Previous topic - Next topic

audiogalaxy

Hallo

I have a couple of MOV files in a test folder (windows)

I used this export "mov+mp4" command:

exiftool -EXT MOV -EXT MP4 -G4 -struct -json . > data.json

then went to Adobe Bridge to erase the fields I'm interested in retrieving from the JSON "everyghing comprised" backup

then used this import command:

exiftool -struct -G4 -json=data.json .

result:

nothing changed (no "original" backup files found: no action).

Any thoughts?  :(

PS : these MOV files come from a MAC Adobe Bridge editing ; When I first tested this syntax in MOV files coming from my system, it perfectly worked IN and OUT even without the need of "G4" ... but if omit this G4, in this version of MOV files some fields are not exported. But... if they are not imported... :(
--
Sorry for my halting English: I'm not a natural English speaker.
On a PC / windows commandline

Phil Harvey

Only groups in families 0, 1 or 2 may be specified when writing, so -G4 won't work.

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

audiogalaxy

#2
Quote from: Phil Harvey on March 19, 2021, 07:01:07 AM
Only groups in families 0, 1 or 2 may be specified when writing, so -G4 won't work.

- Phil

Given the only think I'd be able to understand it that "g4" won't work, I've tried as follows:

EXPORT:

exiftool -EXT MOV -EXT MP4 -G0 -struct -json . > exported_metadata_0.json
exiftool -EXT MOV -EXT MP4 -G1 -struct -json . > exported_metadata_1.json
exiftool -EXT MOV -EXT MP4 -G2 -struct -json . > exported_metadata_2.json

then tried alternatively:

exiftool -struct -G0 -json=exported_metadata_0.json .
exiftool -struct -G1 -json=exported_metadata_1.json .
exiftool -struct -G2 -json=exported_metadata_2.json .

**UPDATE**

AND IT WORKED with G1, if your problem is an Adobe Bridge transfer between mac and win , backup and restore of "description, title, keywords" and main IPTC data (that actually are NOT iptc but something else, like XMP, Quicktime ... don't know: but they are found in the IPTC section in Adobe Bridge!!!) ... this could be the solution for you.

but pay attention: when checking the desired result, everyone, always refresh/clear cache for the selection or current folder in Adobe Bridge.

G / G0 doesn't work completely: only keywords are imported. But G1 does.

THANX PHIL!





--
Sorry for my halting English: I'm not a natural English speaker.
On a PC / windows commandline

Phil Harvey

-G (-G0) is the general metadata format.  -G1 is the specific location, so you use this one if you want to copy tags into the exact place they came from.  This is mentioned in numerous places in the documentation.

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

StarGeek

Quote from: audiogalaxy on March 19, 2021, 06:18:39 PMbut they are found in the IPTC section in Adobe Bridge!!!

The section you're probably referring to is IPTC Core and IPTC Extension.  These are XMP tags.  Bridge can display the older IPTC IIM/Legacy tags if you go to Edit Menu -> Preferences -> Metadata section and check the IPTC IIM box.
* 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).