-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Handle "moving photo" video files #180
Comments
Hm, interesting but looking into how it's structured, i don't think it will be easy and clean to search for their jsons etc also, their extension don't point directly to being a video: https://file.org/extension/mp |
I should have mentioned that the JSON does not include any information about the .MP file. |
Soo, you think we can close this for now? Or you think those |
That's good question. On the one hand .mp is a non-standard extension and that's a bad thing. One could argue to not support it. On the other hand they are valuable, since the takeout is a complete backup and gpth should handle it completely. Otherwise potentially data is lost. Tough call. |
taking everything into account, i think that it's not worth it :/ 99.99% of people won't care about this (do you?) but feel free to re-open if anyone really wants this |
@wicked-head also had a problem with mp4 files from iphone 🤔 altough their case is that it is moved, because its mp4 not |
hey @michaelkebe, i think i know why they are |
Help. On iOS a photo via Google Photos produces 3 things: ImageX.HEIC But the JSON seems to only merge with the HEIC, not the Live Photo mp4 How can I merge it to both the photo and the live photo (video)? |
Hi ,
can you paste here the contents of such a json file ?
Thanks
Télécharger TypeApp pour Android
Le 8 juin 2023 à 03:32, à 03:32, eligibleshield ***@***.***> a écrit:
…Help.
On iOS a photo via Google Photos produces 3 things:
ImageX.HEIC
ImageX.HEIC.json
ImageX.mp4
But the JSON seems to only merge with the HEIC, not the Live Photo mp4
How can I merge it to both the photo and the live photo (video)?
--
Reply to this email directly or view it on GitHub:
#180 (comment)
You are receiving this because you are subscribed to this thread.
Message ID:
***@***.***>
|
It makes no reference to the video inside the JSON... |
I really want the metadata applying to the videos too... |
if you say so then it looks like it... doesn't surprise me tho
Currently, gpth doesn't really do anything about metadata, besides setting correct But no worries! Besides json and photo exif, |
@michaelkebe i have pixel with gcam too, and top shot photos seem to be named like: there is this maybe google photos also exports you the extra |
Hi guys! So i've looked at this, and I think i want to do this as good as possible - just as albums - they took long, but now are basically as good as they possible can be implemented 🔥 @BobTheSoftwareDeveloper and @andrewchen5678 - your work and reaserch in #224 is very helpful! But so far it covers only detecting, setting right date and moving the files... I'm thinking of such situations:User has most photos from iphone, and is now:moving iphone+icloudi need to know how Apple users would manually upload photos to iCloud, and how they could do this to include live photo? As far as i've seen, their livephotos are literally two separate files, jpg and mp4, pointing to each other?? I've seen some libraries for this (https://github.com/LimitPoint/LivePhoto), and they seem to be ment to be used inside the iphone apps... and, this seems to be main way to add any photos to users library... What i want to say is that it might be impossible for us to prepare the files nicely in the output folder so that when user drag-and-drops them into some apple web app (idk if something like this exists) and sees live-photos nice in-place 👀 but i may be wrong - maybe we just need to upload the image+video pair at once? What I need
moving to other gphotos / basically any android/non-apple photo solutionI think we could allow ourselves to do such an invasive but convinient thing of converting those live photos to motion photo standard that 99% of modern android phones understand - this one is better documented, has some libraries (https://github.com/googleinterns/libmphoto), and ends up with a single jpg file - making less mess https://medium.com/android-news/working-with-motion-photos-da0aa49b50c (Yeah including the above library would require including OR - maybe platforms like Synology recognize this jpg+mp4 pair too? Since it's apple, and it's common... let me know if anyone knows User has most photos from android and is now:Moving to icloud, for some reasonIf the format of motions in the takeout is standard (just single jpg), we could extract it with the above library and then try to prepare our DIY apple-motion-photo (two files) - again, i would need some apple person to tell me if it's possible If it's separate, then maybe it's ready to be imported straight to icloud?? I think this is it. Now i need your help :) @michaelkebe @eligibleshield @aidan-gibson @BobTheSoftwareDeveloper @andrewchen5678 @wicked-head |
Hi @TheLastGimbus - I'm currently planning a migration from Google Photos to iCloud. I've recently ran I think these may be from Live Photos? And I may need to wait for #224. I'm going to test the nightly build and see if it makes any difference 🙂 Anyways... regarding your question:
The easiest way based on my research (although, this is dependent on having a Mac) is using the Photos app on Mac. Once I've used
|
thanks for the reaserch!
could you try to match them with their og photos, and upload the two of them at once? Will the Photos app figure out and preseve them as live photo 👀 ?? |
I imported the |
This is awesome!!! Knowing this I'm happy to announce that I officially plan full blown live photos support here - not just dates but also going from android to iphone and iphone to android - i want to do this right Although I have no idea when i will have time to "do it right", so the nightly in the PR must be enough for early adopters for now 😁😁 |
If you need help testing, I am able to test on MacOS / Iphone from an android devices (Pixel 5) with moving photos. |
@rienkvr thanks! I still don't know when i will sit by this, so if possible, please keep your Takeout zip somewhere to test it in the future In general - it would help me if you guys would submit here a zips of small subsets of your takeouts that would contain those live photos - both from iphones and androidsIf you don't want your zips laying publicly in here, but do trust me to have them - you can email them here: [email protected] |
I've made a little Python script here. It works such that whenever an You need to run this first to correct file names: Then run the script:
|
Thank you @validatedev your script works perfectly for me. I did a small change to get it to look recursively through the albums folders that Google Takeout creates. Here's the updated version:
|
@lorenzopicoli thanks for your updated script. I had to add |
For others in a similar situation... My partner had an iPhone that wasn't backing up to iCloud (didn't want to pay for the extra storage), so I set up Google Photos on her iPhone. The iPhone died, and she wanted to get her photos back onto her new iPhone. There were years worth of photos from several iPhones. In the end, it was as simple as using the Apple Photos app on a Mac to import the Google Takeout folders. The photos app automatically imported live photos, even though many were separated. There were some things I noticed in the process that might be useful for this issue (I don't think I'm the first to point this all out, but I'll risk repeating what others said just in case)
I attached some Python scripts that use ffprobe and exiftools to extract meta data and then sort which pairs of files are live photos. They're pretty rough scripts, but hopefully helpful. |
I just spent hours dealing with manual prepping (thanks for the scripts above) for my live photos. Would be great if you added this as a native feature. I sent a donation by PayPal btw as a thank you for this tool that really helps save time in this process. |
Just tested gpth with a takeout. I have a Google Pixel 6a. It has a "Top Shot" feature, which records a video instead of making a single photo.
It looks like in the takeout these top shots are stored as follows:
Currently these
.MP
files are ignored by gpth and are kept in the input folder.I have no concrete idea how to deal with these files. Any discussions are welcome.
The
.MP
file is a MPEG-4. Here is the output of mediainfo:More information is available here:
https://support.google.com/googlecamera/answer/9937175?hl=en
https://support.google.com/photos/thread/139943915/open-or-convert-mp-file?hl=en
The text was updated successfully, but these errors were encountered: