Convert audio files to mp3 using ffmpeg

后端 未结 11 2064
太阳男子
太阳男子 2020-12-22 15:09

I need to convert audio files to mp3 using ffmpeg.

When I write the command as ffmpeg -i audio.ogg -acodec mp3 newfile.mp3, I get the error:

<         


        
11条回答
  •  轮回少年
    2020-12-22 15:22

    For batch processing files in folder:

    for i in *.wav; do ffmpeg -i "$i" -f mp3 "${i%}.mp3"; done
    

    This script converts all "wav" files in folder to mp3 files and adds mp3 extension

    ffmpeg have to be installed. (See other answers)

提交回复
热议问题