Google motion photos video extractor.
History: Android backups to Google Drive did not upload the video. Read https://www.bitquabit.com/post/moving-and-backing-up-google-moving-images/ why.
Google Drive should now support backing up the video portion. https://www.guidingtech.com/share-motion-photos-google/
Choose the zip file for your computer and unzip it to a new location. Native is compiled for the operating system, while CrossPlatform runs on all platforms via the dotnet runtime https://www.microsoft.com/net/download
- Windows (native) - GoMoPho.WindowsFramework
- GNU/Linux (native) - GoMoPho.GNULinux
- macOS (native) - GoMoPho.macOS
- Ubuntu (native) - GoMoPho.Ubuntu
- any operating system - choose GoMoPho.CrossPlatform if you have/download .NET Core
My windows build process does not support unix permissions. The native compiled GNU/Linux versions require unzipping and then applying execute permissions. The CrossPlatform version does not. The following bash commandline will unzip and apply the execute permission to the GoMoPhoCoreConsole file
unzip -d ./GoMoPho GoMoPho.GNULinux.x.x.zip && cd ./GoMoPho && source grant_perms.sh
dotnet build src\GoogleMotionImage.sln
Windows: Run Build-Test-Zip.bat file to compile and test the program.
Build-Test-Zip.bat
When running any of the options below, you can either pass in a directory with your MVIMG files as an argument, or run it with no argument, then type or paste in the location of the directory with your MVIMG files.
Windows .NET framework
.\bin\Windows\GoMoPhoConsole.exe
or
GoMoPhoConsole.exe "C:\Users\Clive\OneDrive\Documents\Pictures\Camera Roll"
.NET Core runtime on GNU/Linux MacOS or Windows Use the dotnet runtime https://www.microsoft.com/net/download to execute ./bin/CrossPlatform/GoMoPhoCoreConsole.dll
dotnet bin/CrossPlatform/GoMoPhoCoreConsole.dll test-image
This has been tested on Windows and macOS.
.NET core natively compiled Windows
bin\WindowsCore\GoMoPhoCoreConsole.exe test-image\
.NET core natively compiled GNU/Linux
bin/GNULinux/GoMoPhoCoreConsole test-image
This has not been tried, feedback on this guide would be great
.NET core natively compiled GNU/Linux Ubuntu-x64
bin/Ubuntu/GoMoPhoCoreConsole test-image
This has not been tried, feedback on this guide would be great
.NET core natively compiled MacOS
bin/macOS/GoMoPhoCoreConsole test-image
This has been tested, when executed the OS warns that it is not signed. There are no plans for this to be signed, so an exception is required.
On completion, new video.mp4 files will be created for any motion photo found. This will not create the wiz-bang google AI versions.. https://ai.googleblog.com/2018/03/behind-motion-photos-technology-in.html Just the originals.
No directory given to process
First argument is the folder i.e. "c:\somewhere with spaces\"
Second optional agument is the search pattern, i.e. default of *MVIMG_*.jpg
Third optional agument is the search pattern for video file, where file ends with i.e. default of .mp4
You can 1) type (or paste) in a folder now - without quotes and press <ENTER>
2) press <ENTER> to exit
Example typed text, afterwards pressing <ENTER>
>c:\somewhere with spaces
> C:\temp\New folder (2)
Found the following number of google motion photos: 5
Searching C:\temp\New folder (2)\MVIMG_20180906_092408.jpg Found the video
Searching C:\temp\New folder (2)\MVIMG_20180906_102344.jpg Found the video
Searching C:\temp\New folder (2)\MVIMG_20180906_102350.jpg Found the video
Searching C:\temp\New folder (2)\MVIMG_20180906_102352.jpg Found the video
Searching C:\temp\New folder (2)\MVIMG_20180906_104633.jpg Found the video
Finished. Processed 5 videos for 5 images files.
Press any key to exit