Convert audio files to mp3 using ffmpeg

后端 未结 11 2080
太阳男子
太阳男子 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:32

    If you have a folder and sub-folder full of wav's you want to convert, put below command in a file, save it in a .bat file in the root of the folder where you wan to convert, and then run the bat file

    for /R %%g in (*.wav) do start /b /wait "" "C:\ffmpeg-4.0.1-win64-static\bin\ffmpeg" -threads 16 -i "%%g" -acodec libmp3lame "%%~dpng.mp3" && del "%%g"
    

提交回复
热议问题