rt3x.de NoPaste

Convert M4A to MP3

This is a nopaste service, powered by Flying Paste.

Author: Malte Bublitz
Language/File type: Bash script

Description

Convert all .m4a files in the current folder to MP3 using 190 kbit/s VBR.

For other Audio quality settings refer to https://trac.ffmpeg.org/wiki/Encode/MP3

Code

1
2
3
4
5
6
7
for a in *.m4a
do
	ffmpeg -i "$a" \
		-vn -c:a libmp3lame \
		-q:a 2 \
		"${a%.*}.mp3"
done