Skip to content

Instantly share code, notes, and snippets.

/extract.sh Secret

Created February 1, 2015 05:22
Show Gist options
  • Save anonymous/0aa5eb94c3fc306e3ff3 to your computer and use it in GitHub Desktop.
Save anonymous/0aa5eb94c3fc306e3ff3 to your computer and use it in GitHub Desktop.
input="$1"
output="$2"
ids=`swfextract "$input" | egrep -o 'Sounds:.*' | egrep -o '[0-9]+'`
concat="concat:"
for i in $ids
do
swfextract -s $i -o $i.mp3 "$input"
concat+="$i.mp3|"
done
avconv -i "$concat" -acodec copy "$output"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment