This should get you started
find -name '*.mp3' | while read ip
do
file "$ip" | grep -q '2.4.0.*III' && continue
ib=${ip%.*}
ffmpeg -i "$ip" -q:a 0 "$ib"-iii.mp3
done
Noticed I have not used
-print0
, might be a good idea.-q:a 0
will maintain the quality.FFmpeg defaults to Layer III codec when you use output extension
.mp3
FFmpeg writes 2.4.0 metadata by default