Skip to content

Instantly share code, notes, and snippets.

@Nezteb
Created March 19, 2017 00:40
Show Gist options
  • Save Nezteb/7fc3828b61a6a3b533770851a4321ace to your computer and use it in GitHub Desktop.
Save Nezteb/7fc3828b61a6a3b533770851a4321ace to your computer and use it in GitHub Desktop.
Convert m4a files to mp3 files. Requires ffmpeg.
#!/bin/bash
// cd into a directory with m4a files
for f in *.m4a; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 "${f%.m4a}.mp3"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment