Google Motion Photo support (via Save Preview Shots) - patch
Camera app for Android.
Brought to you by:
mark-h
When "Save Preview Shots" is enabled, instead of saving the preview video as a separate .mp4 file, the video is now muxed into the JPEG as a Google Motion Photo.
The output file is named ORIGINAL.MP.jpg and follows the Google Motion Photo format (GCamera XMP metadata declaring MicroVideo=1, MicroVideoVersion=1, MicroVideoOffset=<mp4 length="">, with the MP4 appended after the JPEG FFD9 end marker).</mp4>
Tested and working on:
Implementation:
No new UI or preferences needed — the existing "Save Preview Shots" toggle controls the feature. If disabled, behaviour is identical to before.
Patch attached.
Anonymous