Convert audio files to mp3 using ffmpeg

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

    Try FFmpeg Static Build Link

    Documentation: https://www.johnvansickle.com/ffmpeg/

    Host the static build on your server in same directory

    $ffmpeg = dirname(__FILE__).'/ffmpeg';
    
    $command = $ffmpeg.'ffmpeg -i audio.ogg -acodec libmp3lame audio.mp3';
    
    shell_exec($command);
    

提交回复
热议问题