Created
November 18, 2013 18:58
-
-
Save pkruithof/7533305 to your computer and use it in GitHub Desktop.
Extracts sounds out of a swf, using swfextract
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 | |
basename=`basename $1` | |
dir=${basename%.*} | |
mkdir -p "$dir" | |
output=`swfextract "$1" | grep "Sounds:"` | |
echo "${output:23}" | tr "," "\n" | while read word; do | |
swfextract -s $word "$1" -o "$dir/$word.mp3" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment