Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@jasonsnell jasonsnell commented Sep 30, 2014

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