Answer the question
In order to leave comments, you need to log in
How to compress all mp3 files in a directory using ffmpeg?
To compress one file I use this command:
ffmpeg -i ~/Music/file.mp3 -q:a 9 ~/Music_compress/file.mp3
Answer the question
In order to leave comments, you need to log in
cd ~/Music ;
mkdir -p Music_compress ;
find -maxdepth 1 -iname "*.mp3" -type f -exec ffmpeg -i {} -q:a 9 Music_compress/{} \;
for f in *.mp3; do ffmpeg -i "$f" -q:a 9 "Music_compress/${f%.*}.mp3"; done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question