Comments (5)
The Pantry
tag is a structured tag (see the Structured Information page) and is made even more complicated by the fact that it is made to hold other standard XMP tags, including other structured tags. Another complication is that it is a List type tag (see Exfitool FAQ #17), so there can be more than one Pantry
entry. What needs to be done is to create the whole structured data block and write that to the Pantry
tag using the -struct
option. There is the requirement that one of the included tags is the InstanceID
tag. For example, here's a Pantry
entry I found in one of my files
C:>exiftool -G1 -a -s -struct -Pantry Y:!temp\x\y\test.mp4
[XMP-xmpMM] Pantry : [{DocumentID=a4089cdf-f59c-53f3-2cfc-d59a0000004d,History=[{Action=saved,Changed=/,InstanceID=23157e25-02c6-fe66-b8e5-f7e00000007a,SoftwareAgent=Adobe Adobe Media Encoder CC 2018.1 (Macintosh),When=2018:09:06 13:41:50+02:00}],InstanceID=23157e25-02c6-fe66-b8e5-f7e00000007a,OriginalDocumentID=xmp.did:da7a4428-f3c5-4808-8c86-52400e33e132,XMP-tiff:Orientation=Horizontal (normal),XMP-xmp:CreateDate=2018:08:30 13:33:05Z,XMP-xmp:MetadataDate=2018:09:06 13:41:50+02:00,XMP-xmp:ModifyDate=2018:09:06 13:41:50+02:00,XMP-xmpDM:AltTimecode={TimeFormat=25 fps,TimeValue=00:00:00:00},XMP-xmpDM:Duration={Scale=0.0004,Value=3582400},XMP-xmpDM:StartTimeSampleSize=100,XMP-xmpDM:StartTimeScale=2500}]
Braking this down to a more human readable form
[
{
DocumentID=a4089cdf-f59c-53f3-2cfc-d59a0000004d,
History=[
{
Action=saved,
Changed=/,
InstanceID=23157e25-02c6-fe66-b8e5-f7e00000007a,
SoftwareAgent=Adobe Adobe Media Encoder CC 2018.1 (Macintosh),
When=2018:09:06 13:41:50+02:00
}
],
InstanceID=23157e25-02c6-fe66-b8e5-f7e00000007a,
OriginalDocumentID=xmp.did:da7a4428-f3c5-4808-8c86-52400e33e132,
XMP-tiff:Orientation=Horizontal (normal),
XMP-xmp:CreateDate=2018:08:30 13:33:05Z,
XMP-xmp:MetadataDate=2018:09:06 13:41:50+02:00,
XMP-xmp:ModifyDate=2018:09:06 13:41:50+02:00,
XMP-xmpDM:AltTimecode={
TimeFormat=25 fps,
TimeValue=00:00:00:00
},
XMP-xmpDM:Duration={
Scale=0.0004,
Value=3582400
},
XMP-xmpDM:StartTimeSampleSize=100,
XMP-xmpDM:StartTimeScale=2500
}
]
Within this example, there are a bunch of other tags included as well as three structured tags, History
, XMP-xmpDM:AltTimecode
, and XMP-xmpDM:Duration
.
There is no easy way to write this data. You'll have to read over the Structured Information page above and work out how to create the full structure to write it.
from exiftool.
As StarGeek points out, writing XMP-xmpMM:Pantry is done using the same syntax as when extracted with the -struct option. However, I noticed a problem writing date/time values. This will be fixed in 12.73.
I'll close this issue for now, but feel free to re-open it if ExifTool doesn't behave as expected when trying to write this information.
- Phil
from exiftool.
from exiftool.
from exiftool.
test2_PubgMobile.webm
from exiftool.
Related Issues (20)
- Artistic License Version HOT 1
- Error accessing MIE files in version 12.74 HOT 3
- JSON detected as wrong type if array containing object is MIMEtype HOT 1
- Missing TIFF-EPStandardID interpretation HOT 2
- Clarify JXL read/write support HOT 2
- "-*=" conflicting with "PNG-pHYs" tags HOT 7
- Encode mp3 tags in UTF8 HOT 9
- Microsoft Xtra tags - expand writable tags HOT 16
- Unable to update MAKE tag using exiftool 12.76 HOT 3
- consider a default behavior of reading mkv tags after the first cluster if indexed in the seekhead HOT 4
- Problematic handling of non-ASCII filenames on Windows HOT 21
- New Samsung GCamera XMP tags HOT 13
- [Suggestion] Report more modern variant of TTF MIME type?
- [Suggestion] New way of representing Palette in human-readable format HOT 4
- Firmware Versions, Canon 7D (or - strangeness recovering certain data) HOT 3
- [Enhancement] TIFF metadata stripping HOT 3
- Add Character Count too? ("Document" type) HOT 2
- Deployment instruction HOT 4
- Is exiftool.org down completely? HOT 1
- `-J` exports incorrectly outputs ExifToolVersion as a float HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exiftool.