Giter Site home page Giter Site logo

motion-photos's Introduction

Motion Photos Script

The Google Pixel 2 creates files like MVIMG_20180625_163537.jpg that contain video in addition to an image. This git repo contains a bash script that extracts the video into a separate file.

motion-photos's People

Contributors

jgoerzen avatar keith-turner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

motion-photos's Issues

script nog working?

Hi, I tried the script with terminal on my mac. In the folder I added a few motion photos that I downloaded from my Google Photo's account.
After using this command: sh mvimg_jpg_extract.sh *.jpg
The script started to search for JPG's and tries to extract but I get the following error

Not processing MVIMG_20190922_143525.jpg because the string 'ftypmp42' did not occur exactly once in file

Now I am not sure if this is the problem of the script or the download I got from Google Photo's? On there they all are motion photos

Extract JPG

Hi Keith, just wanted to let you know this also works the other way around to get the JPG part only from the MVIMG.
I was looking to remove the video of a few hundred accidental MVIMG's and your script helped out a lot!

In case you'd like to add jpg extraction as an option:
I just changed tail to head to get the part before "ftypmp42" and applied the new filename via local newFile=${file:2}

According to jpeginfo -c *.jpg the in this way extract jpgs are valid!

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.