Skip to content

Instantly share code, notes, and snippets.

@jasonsnell
Last active January 18, 2022 22:17
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonsnell/1b728736c636272bc5da to your computer and use it in GitHub Desktop.
Save jasonsnell/1b728736c636272bc5da to your computer and use it in GitHub Desktop.
Use this in an Automator action set to accept file input from the command line
for i in "$@" ; do /Users/jsnell/ffmpeg -i "$i" -map 0:0 -acodec pcm_s16le -ac 1 -out_sample_rate 44100 "${i%.*}.wav" ; done
@jasonsnell
Copy link
Author

If you try to send it things that don't have audio in them, or folders, it will eat you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment