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:
ffmpeg -i audio.ogg -acodec mp3 newfile.mp3
<
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);