Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dual Camera Photos (Samsung DualShot) #3

Open
jimbuck opened this issue May 15, 2019 · 5 comments
Open

Dual Camera Photos (Samsung DualShot) #3

jimbuck opened this issue May 15, 2019 · 5 comments

Comments

@jimbuck
Copy link

jimbuck commented May 15, 2019

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
Copy link
Author

jimbuck commented May 15, 2019

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 jimbuck changed the title Dual Camera Photos Dual Camera Photos (Samsung DualShot) May 15, 2019
@howff
Copy link

howff commented Jan 26, 2022

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.

@joemck
Copy link
Owner

joemck commented Jan 27, 2022

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.

@jimbuck
Copy link
Author

jimbuck commented Jan 28, 2022

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

@makt
Copy link

makt commented Aug 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants