My goal is to convert .mp3
to .ogg
, i googled it and i realized that ffmpeg is suitable for this kind of process in php. Well the question is how to run ffmpeg :
I've downloaded the file from here. The problem is how to use this.
This library is really old (10 years!), I would not recommend it.
You can call process via exec()
to convert given file - for example:
exec("ffmpeg -i $inputPath $outputPath")
Of course, you need to have ffmpeg
package installed on your server.
This is not safe solution and you shouldn't publish this for everyone.