-
-
Save loisaidasam/4b07c59fe88c3360af54aff33ee79a12 to your computer and use it in GitHub Desktop.
Make an audio collage out of your live photos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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