Converting WAV to MP3 in the Linux’s command line

This is the command I use to convert wav file to mp3, but before running this command you need to remove the space from filename https://acassis.wordpress.com/2015/03/02/removing-space-from-filenames/.

$ for i in $(ls *.wav); do lame --abr 128 $i $(basename $i .wav).mp3; done

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s