Skip to content

Instantly share code, notes, and snippets.

Created November 5, 2012 12:59
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 anonymous/4017081 to your computer and use it in GitHub Desktop.
Save anonymous/4017081 to your computer and use it in GitHub Desktop.
stdin
#!/bin/sh
for X in "$@"; do
ffmpeg -i "$X" -f sox - |\
sox -t sox - -n \
spectrogram -o "$X-120s.png" -t "$X (0-120)" -S 0:00 -d 2:00 \
spectrogram -o "$X-2s.png" -t "$X (59-61)" -S 0:59 -d 0:02
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment