Tuesday, June 20, 2017

How to convert webm files to mp3


Bash script:

   FFMPEG_PATH="ffmpeg"
for FILE in *.webm; do
    echo -e "Processing video $FILE";
    ${FFMPEG_PATH} -i "${FILE}" -vn -ab 128k -ar 44100 -y "${FILE%.webm}.mp3";
done;

No comments:

Post a Comment