ExifTool Forum

General => Metadata => Topic started by: 11august on April 28, 2020, 05:15:42 AM

Title: How exactly the "Composite:Rotation" tag is created?
Post by: 11august on April 28, 2020, 05:15:42 AM
Hi there!

I'm trying to figure out how the composite tag "Rotation" is generated from both "QuickTime:MatrixStructure" and "QuickTime:HandlerType". I've extracted using the -g option all the metadata from a bunch of videos and here's how it appears in my excel datasheet (see the screenshoot attached).

The "QuickTime:MatrixStructure" tag shows the same pattern: "100010001" and the "QuickTime:HandlerType" tag have only these five contents: "Metadata", "Video Track", "Audio Track", "Metadata Tags" or "Alias Data".

How the hell do "we" know with these tags that such or such video have either a "0", "90", 180" or "270" rotation applied? In other words, I can't figure out any logic behind the creation of the composite rotation tag using the two QuickTime tags, but I surely miss something!
Title: Re: How exactly the "Composite:Rotation" tag is created?
Post by: Phil Harvey on April 28, 2020, 07:18:58 AM
The MatrixStructure is a rotation matrix.  And you should be looking at the video HandlerType to get the rotation of the video.

Google "rotation matrix" to learn more about rotation matrices.

- Phil