Giter Site home page Giter Site logo

Comments (5)

StarGeekSpaceNerd avatar StarGeekSpaceNerd commented on June 12, 2024

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.

boardhead avatar boardhead commented on June 12, 2024

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.

ahmedredhat avatar ahmedredhat commented on June 12, 2024

>.pdf

from exiftool.

ahmedredhat avatar ahmedredhat commented on June 12, 2024

xss (2) (1).pdf
payload.pdf

from exiftool.

ahmedredhat avatar ahmedredhat commented on June 12, 2024
test2_PubgMobile.webm

from exiftool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.