FFmpeg Aac to Mp3

Quick and dirty one liner to encode (Multiple) AAC files to MP3 via FFmpeg

IFS=$'\n';  for item in $(find . -iname '*.aac'); do enditem="" ; enditem=`echo $item | sed 's/.aac/.mp3/'`; ffmpeg -i $item $enditem ; done  

If your using zsh you can use in-line parameter expansion

IFS=$'\n';  for item in $(find . -iname '*.aac'); do ffmpeg -i $item ${item/\.aac/\.mp3/}; done  

I recently started using streamripper to rip my favourite audio stream, and after a week i finally had a great collection of songs, and then I realised that it was aac and for some reason android doesn't like aac. DOH!

Oneliners to the rescue!

Tim Coombs

Administrator of Slowb.ro and world leader of my own mind, the only place our ideas and thoughts are our own in a world gone mad

In a terminal https://slowb.ro

Subscribe to Slowb.ro's Blog

Get the latest posts delivered right to your inbox.

or subscribe via RSS