Skip to content

Instantly share code, notes, and snippets.

@leeprobert
Created October 20, 2019 20:46
Show Gist options
  • Save leeprobert/c77b6e85fa823d04ae5116a817016496 to your computer and use it in GitHub Desktop.
Save leeprobert/c77b6e85fa823d04ae5116a817016496 to your computer and use it in GitHub Desktop.
// this is a terminal command to run in the same folder as a bunch of MP3 you want to convert so they work with Alexa. Requires that FFMpeg is installed.
printf "%s\0" * | xargs -0 -I {} ffmpeg -y -i {} -ac 2 -codec:a libmp3lame -b:a 48k -ar 16000 converted_{}
// it prepends the string "converted_" to the output files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment