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

Google Photos Support #1

Open
alsd4git opened this issue Jun 4, 2018 · 16 comments
Open

Google Photos Support #1

alsd4git opened this issue Jun 4, 2018 · 16 comments

Comments

@alsd4git
Copy link

alsd4git commented Jun 4, 2018

it would be awesome to have support for a conversion to google motion photos format, so google photos app could play them, i recently moved away from samsung and now i can only see motion photos on my old phone, while new google format motion photos are "playable" everywhere

@joemck
Copy link
Owner

joemck commented Jun 4, 2018

Interesting, I didn't know this existed. Am I missing something or do I need a Pixel 2 to create these? Could you either enlighten me or share a sample motion photo with me to analyze?

@alsd4git
Copy link
Author

alsd4git commented Jun 4, 2018

you need google camera to create these, so a pixel device or a google camera port, i actually use a google camera port from this page https://www.celsoazevedo.com/files/android/google-camera/ i have a xiaomi mi a1 and use arnova8g2 pixel3mod to shoot motion photos, if you have any problem let me know and i'll upload some of my photos online to link them here

@fresheneesz
Copy link

fresheneesz commented Jun 8, 2018

@ale32thebest

while new google format motion photos are "playable" everywhere

Are they? I'm trying to find a way to play them somehow on my PC and I haven't been able to find a way. Also, facebook doesn't seem to support the format either. I haven't been able to find any information on the format itself that would help me find a viewer that supports them. I'm sure ale could use that info as well if he was going to support google motion photos. Have you found ways to play those photos outside of your phone and google photos?

@alsd4git
Copy link
Author

From PC I use Google photos site (online) to view them

@joemck
Copy link
Owner

joemck commented Jun 14, 2018 via email

@alsd4git
Copy link
Author

on my device (mi a1) i use a magisk module to patch this, it looks like there are galaxy s7 specific port on xda https://forum.xda-developers.com/galaxy-s7/themes/google-camera-portrait-mode-t3736859 i can't try them, so i'm not totally sure if they have motion photos, they should

@joemck
Copy link
Owner

joemck commented Jun 14, 2018 via email

@alsd4git
Copy link
Author

i'm sorry, i don't have a galaxy s7 (or a samsung, actually from when i switched to my current phone) to find a working version of google motion photos, i can share with you some pics in a zip file and upload them online if you need them to test

@joemck
Copy link
Owner

joemck commented Jun 14, 2018 via email

@alsd4git
Copy link
Author

@joemck
Copy link
Owner

joemck commented Jun 15, 2018 via email

@alsd4git
Copy link
Author

if you have a beta script of something i can help you with testing, do you use telegram?

@joemck
Copy link
Owner

joemck commented Jun 16, 2018 via email

@alex-phillips
Copy link

@joemck It sounds like you were able to successfully pull the MP4s out of android MVIMG files? How did you ultimately do this? I would love to be able to just bulk extract these from all of my images.

@joemck
Copy link
Owner

joemck commented Jul 25, 2018

@alex-phillips My successful attempt at splitting Google's MVIMGs was to simply look for a JPEG end marker followed by an MP4 header, then extract everything before that to an image and everything after to a video. Samsung ones are the same thing but with a predefined sequence of bytes in between them.

The JPEG portion appears to contain some tag that indicates there's a video -- simply appending a video to a photo did not create a working one.

I hope to add MVIMG support to this splitter program soon, but have been busy lately. My plan is to have it search for the special Samsung string, then if it doesn't find that, search for a JPEG end followed by a MP4 header. That way you'll be able to throw either sort of file at the same program, or even a batch of mixed MVIMG and Motion Photo.

@alex-phillips
Copy link

@joemck I think I've finally split some files based on an end jpeg marker and a beginning mp4 marker, but ffprobe is saying that my resulting video file is missing its moov atom. Any thoughts?

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