Last active
January 18, 2022 22:17
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in "$@" ; do /Users/jsnell/ffmpeg -i "$i" -map 0:0 -acodec pcm_s16le -ac 1 -out_sample_rate 44100 "${i%.*}.wav" ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you try to send it things that don't have audio in them, or folders, it will eat you.