Read makernotes from DJI Mini 2 image

Started by briencrean, May 04, 2023, 03:01:41 AM

Previous topic - Next topic

briencrean

Hi there. I'm wondering if I can get the DJI maker notes in a human readable form using exiftool? I get a message when I run:

exiftool -exif:makernotes  DJI_0021.JPG

Maker Note DJI : (Binary data 9110 bytes, use -b option to extract)

However when I extract using the -b option I can't read the data as its in binary.

I also tried

exiftool -exif:makernotes -F  -b -htmldump DJI_0021.JPG > out.html
To read the output in the browser but I don't see the tag I'm trying to find

0x0009    CameraPitch    float    - taken from https://exiftool.org/TagNames/DJI.html

Thanks

StarGeek

Use
exiftool -MakerNotes:All /path/to/files/

The command you listed is used to copy the MakerNotes as a block (see FAQ #8).
* 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).

briencrean

Thank you so much for the reply! That was extremely helpful. Apologies for the poor formatting and missing information.

I am running Mac OS Monterey 12.4, exiftool v12.62 and processing a JPG file taken with a DJI Mini 2 drone.

I ran the command that you specified and I got most of the metadata I expected.

Make                            : DJI
Speed X                        : +0.00
Speed Y                        : +0.00
Speed Z                        : +0.00
Pitch                          : -1.60
Yaw                            : +179.90
Roll                            : +0.60

Are there any other parts of the metadata that I could search that are usually manufacturer specific apart from MakerNotes?

briencrean

Actually I just noticed FAQ #30 'How do I extract absolutely all metadata from a file?'

exiftool -ee3 -U -G3:1 -api requestall=3 -api largefilesupport FILE
I ran that and got a lot more tags but unfortunately nothing that seems related to the camera or gimbal attitude, just a lot of unknown tags.

[DJI]          Make                            : DJI
[DJI]          DJI 0x0002                      : 1 8 0 0
[DJI]          Speed X                        : +0.00
[DJI]          Speed Y                        : +0.00
[DJI]          Speed Z                        : +0.00
[DJI]          Pitch                          : -1.60
[DJI]          Yaw                            : +179.90
[DJI]          Roll                            : +0.60
[DJI]          DJI 0x000c                      : 9.18397000533842e-41 0
[DJI]          DJI 0x000d                      : 2751987712 65539 0 2752053248
[DJI]          DJI 0x000e                      : 0
[DJI]          DJI 0x000f                      : 0
[DJI]          DJI 0x0010                      : 1000
[DJI]          DJI 0x0011                      : 0
[DJI]          DJI 0x0012                      : 0
[DJI]          DJI 0x0013                      : 65539 0 -1542848512 65539 0
[DJI]          DJI 0x0014                      : 2752249856 65539 0
[DJI]          DJI 0x0017                      : 1
[DJI]          DJI 0x0019                      : 0
[DJI]          DJI 0x001a                      : 0
[DJI]          DJI 0x001b                      : 0
[DJI]          DJI 0x001c                      : 142
[DJI]          DJI 0x001d                      : 139
[DJI]          DJI 0x001e                      : 13.2348175048828
[DJI]          DJI 0x001f                      : 0
[DJI]          DJI 0x0020                      : 0
[DJI]          DJI 0x0021                      : 0
[DJI]          DJI 0x0022                      : 0
[DJI]          DJI 0x0023                      : 0
[DJI]          DJI 0x0028                      : 142 142
[DJI]          DJI 0x0029                      : 2754674688 3145730 1191641088 0 131072 131073 4 3684690[...]
[DJI]          DJI 0x0024                      : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0[...]
[DJI]          DJI 0x002a                      : 7044
[DJI]          DJI 0x002b                      : 142
[DJI]          DJI 0x002c                      : 139
[DJI]          DJI 0x002d                      : 3121016580 3557302021 3741869064 2013789704 2819113224 [...]
[DJI]          DJI 0x002e                      : 0
[DJI]          DJI 0x002f                      : 4211514119 1997158664 2332431622 1409707270 1745234438 [...]
[DJI]          DJI 0x0030                      : 1.03302502632141
[DJI]          DJI 0x0031                      : 4096
[DJI]          DJI 0x0032                      : 0.0007999999797903
[DJI]          DJI 0x0033                      : 1
[DJI]          DJI 0x0034                      : 4575
[DJI]          DJI 0x0035                      : 0.000717210001312196
[DJI]          DJI 0x0036                      : 0 0 0 -1.70141183460469e+38
[DJI]          DJI 0x0037                      : NaN 0 0 0
[DJI]          DJI 0x0038                      : 128

StarGeek

The tag you're looking for may simply not exist in the file.  The tags listed on the DJI Tags page is simply a list of all DJI tags that have been figured out by someone.  They aren't necessarily going to be in every file.  And as you can see by your last listing, there are a lot of tags for which the purpose is unknown.
* 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).