Skip to content

Instantly share code, notes, and snippets.

View aivus's full-sized avatar
🇺🇦

Illia Antypenko aivus

🇺🇦
View GitHub Profile
@aivus
aivus / process.sh
Created April 10, 2023 20:08
Remove video from Google Pixel MP (Motion Photos) files
#!/usr/bin/env bash
# Based on:
# https://mjanja.ch/2021/10/stripping-embedded-mp4s-out-of-android-12-motion-photos/
# https://gist.github.com/alanorth/371696685ebf65ac5e04536870916e82
shopt -s globstar
for file in ./**/PXL_*.MP.jpg ./**/MVIMG_*.jpg; do
# Don't crash when there are no files matching the glob