Skip to content
New issue

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

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

Already on GitHub? # to your account

Support Google Motion Photo MVIMG variants #468

Closed
EpochalEngineer opened this issue Mar 11, 2023 · 1 comment
Closed

Support Google Motion Photo MVIMG variants #468

EpochalEngineer opened this issue Mar 11, 2023 · 1 comment
Labels
feature New feature or request
Milestone

Comments

@EpochalEngineer
Copy link

EpochalEngineer commented Mar 11, 2023

The current Live Photo implementation supports the MP.jpg variant which has duplicate Directory Item fields in EXIF. Other variants utilize "Micro Video Offset" as described here.

At a glance it seems that it would be simple to update this to support the MVIMG variant. A new if/case statement could just reference the MP.jpg variant implementation by checking for the existence of "Micro Video" or "Micro Video Version" (and maybe checking if it's 1) instead of looking for "MotionPhoto" and then using "Micro Video Offset" directly for the $videoOffset. EDIT: this field matches the "Size" field, so "Micro Video Offset" may actually be the video length and should be used in the same way as "DirectoryItemLength" actually.

Here is a sample MVIMG variant image which is displayed correctly in Google Photos. And one from the same phone without motion

@pulsejet pulsejet added the feature New feature or request label Mar 11, 2023
@pulsejet pulsejet added this to the 4.13 milestone Mar 11, 2023
@pulsejet
Copy link
Owner

Thanks for the insights and samples.

silopolis pushed a commit to silopolis/memories that referenced this issue Apr 13, 2023
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants