Skip to content
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

Extract JPG #2

Open
wsoyka opened this issue Mar 31, 2019 · 2 comments
Open

Extract JPG #2

wsoyka opened this issue Mar 31, 2019 · 2 comments

Comments

@wsoyka
Copy link

wsoyka commented Mar 31, 2019

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!

@keith-turner
Copy link
Owner

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.

@aivus
Copy link

aivus commented Apr 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants