ffmpeg convert m4a to mp3 code example
Example 1: ffmpeg m4a to mp3
ffmpeg -i input.m4a -c:a libmp3lame -q:a 8 output.mp3
Example 2: ffmpeg change audio codec from m4a to mp3
$ mkdir newfiles
$ for f in *.m4a; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 newfiles/"${f%.m4a}.mp3"; done
Example 3: ffmpeg change audio codec from m4a to mp3
ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 newfiles/"${f%.m4a}.mp3";