Extract decoded SR2 content from Sony ARW images

Started by drcq, July 27, 2019, 09:51:24 AM

Previous topic - Next topic

drcq

Hi,
I'm just analyzing my Sony ILCE-7RM3 ARW metadata and stopped at SR2 IFD with Offset, Length and Key entries (7200, 7201 and 7221).
It is a way to extract the decoded content of the SR2SubIFD (pointed by 7200 and 7201) in a binary form, so that I can analyze the data directly?
I don't really understand how the coding mechanism with the key (defined by 7221) works, so the decoded content will be the best!

Any help appreciated!

Phil Harvey

You can get a hex dump using the ExifTool -v5 option.  To get it as binary data you could either convert this hex or hack Sony.pm to add a statement to write the data to file after it is decrypted.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).