ExtractMotionPhotos icon indicating copy to clipboard operation
ExtractMotionPhotos copied to clipboard

Dual Camera Photos (Samsung DualShot)

Open jimbuck opened this issue 6 years ago • 5 comments

How do you explore the image file for embedded media?

Many cameras now have 2 lenses for simulated depth of field (subject in focus, background out of focus). When a picture is taken it stores both the "Close-up" and "Wide angle" photos in a single JPEG (I'm guessing in a similar manner to motion photos).

How would I go about investigating the file structure? I would love to be able to extract motion photos or dual camera photos.

jimbuck avatar May 15 '19 15:05 jimbuck

Looking in one of my files I see the following readable text:

  • DualShot_DepthMap_1
  • DualShot_Extra_Info
  • ZoomInOut_InfoDOFS
  • DualShot_1
  • DualShot_2

Any tips for searching or splicing the file up? I'd love to dig deeper and understand the process.

jimbuck avatar May 15 '19 15:05 jimbuck

A very good tool for exploring binary files is SweetScape's 010editor. It has Templates which you can apply to parts of the file, so you can use a JPEG template to parse it and explore the markers and tags.

howff avatar Jan 26 '22 11:01 howff

Thanks. This looks like an interesting tool. Sorry I let this thread slip between the cracks. Does anyone know if it uses a semi-standard format or if it's Samsung-specific? From "DualShot" appearing in identifiers in the file, I would guess it's Samsung specific. My phone only has 1 back camera (S7 Edge). Just from those strings, I would expect that what directly follows (or preceeds, perhaps) "DualShot_1" and "DualShot_2" are the actual jpg photos from each camera. Then the other 3 are probably going to be proprietary formats storing metadata and some algorithmically-generated map to help it adjust the depth-of-field effect in the Gallery app.

joemck avatar Jan 27 '22 07:01 joemck

No worries, I'm still interested in this but don't have time to dig in right now.

jimbuck avatar Jan 28 '22 16:01 jimbuck

This shows file structure nicely: https://exiftool.org/htmldump.html

makt avatar Aug 06 '22 14:08 makt