motion-photos icon indicating copy to clipboard operation
motion-photos copied to clipboard

Extract JPG

Open wsoyka opened this issue 5 years ago • 2 comments

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!

wsoyka avatar Mar 31 '19 16:03 wsoyka

I just changed tail to head to get the part before "ftypmp42" and applied the new filename via local newFile=${file:2}

That's neat, I had not thought of that.

keith-turner avatar Apr 01 '19 13:04 keith-turner

As for the new PXL_*MP*.jpg files you need to catch ftypisom additionally.

See https://mjanja.ch/2021/10/stripping-embedded-mp4s-out-of-android-12-motion-photos/

I created a gist with a script to recursively remove video from all MP files in directory https://gist.github.com/aivus/dec3aaa0b1a9175d340ffb7b1294c9e4

aivus avatar Apr 10 '23 19:04 aivus