Skip to content

Instantly share code, notes, and snippets.

@loisaidasam
Forked from bwhitman/picblast.sh
Last active August 2, 2019 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loisaidasam/4b07c59fe88c3360af54aff33ee79a12 to your computer and use it in GitHub Desktop.
Save loisaidasam/4b07c59fe88c3360af54aff33ee79a12 to your computer and use it in GitHub Desktop.
Make an audio collage out of your live photos
#!/bin/bash
mkdir /tmp/picblast
cd ~/Pictures/Photos\ Library.photoslibrary
for i in $(find . | grep jpegvideocompl)
do
ffmpeg -i $i /tmp/picblast/${i:(-8)}.wav
done
cd /tmp/picblast
ffmpeg -safe 0 -f concat -i <( for f in *.wav; do echo "file '$(pwd)/$f'"; done ) ~/Desktop/picblast.wav
rm -rf /tmp/picblast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment