question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for "Motion Photos"

See original GitHub issue

GCam creates a small video around the shutter moment in mp4 format and appends it to the end of the jpeg file. They also add a few EXIF tags describing the video, example as follows;

Motion Photo                    : 1
Motion Photo Version            : 1
Motion Photo Presentation Timestamp Us: 1166199
Directory Item Mime             : image/jpeg
Directory Item Semantic         : Primary
Directory Item Length           : 0
Directory Item Padding          : 0
Directory Item Mime             : video/mp4
Directory Item Semantic         : MotionPhoto
Directory Item Length           : 3774306
Directory Item Padding          : 0

The video, in this case, is 3,774,306 bytes at the end of the file. The format of the video is an actual mp4 video. It can be copied into an mp4 file directly using “dd” as; dd bs={filelen-3774306} skip=1 if=file.MP.jpg of=file.MP.mp4

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
thestingercommented, Mar 25, 2022

The camera’s gallery would need to be able to display them.

0reactions
lbdroidcommented, Mar 25, 2022

This is an issue that I brought forward, you think its inappropriate to be slightly defensive when someone tries to side track it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable Motion Photos on my Samsung Phone
Enable Motion Photos on my Samsung Phone ; 1 Launch the full screen icon Camera app. Launch Camera app ; 2 Tap on...
Read more >
Take motion photos & use Top Shot on your Pixel phone
Take motion photos to capture something in motion and then pick a favorite shot from your motion photo or video using Top Shot....
Read more >
How to turn motion photos on (or off) on your iPhone or Android
Here's how to turn motion photos (or Live Photos) on or off on your iPhone, Pixel, or Galaxy smartphone.
Read more >
File Type: Add Support for Samsung Motion Photos · Issue #439
Usually, the motion photo setting is activated once in the camera and then stays active, so all pictures will be motion photos from...
Read more >
How to Share Samsung Motion Photos Properly - Nerds Chalk
A Motion Photo on a Samsung device might appear like an ordinary photo in your Gallery, but it adds context to the making...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found