Giter Club home page Giter Club logo

gomopho's Introduction

GoMoPho

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/

Running the zip release

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

Compilation

dotnet build src\GoogleMotionImage.sln

Windows: Run Build-Test-Zip.bat file to compile and test the program.

Testing in windows

Build-Test-Zip.bat

Running

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.

Result

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

gomopho's People

Contributors

cliveontoast avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.