Skip to content

Instantly share code, notes, and snippets.

@pkruithof
Created November 18, 2013 18:58
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 pkruithof/7533305 to your computer and use it in GitHub Desktop.
Save pkruithof/7533305 to your computer and use it in GitHub Desktop.
Extracts sounds out of a swf, using swfextract
#!/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