[FFmpeg-user] ffmpeg convert mp3 to opus codec (contained in ogg format)?

Ted Park kumowoon1025 at gmail.com
Thu Jul 18 15:56:02 EEST 2019


> ffmpeg -i filename.mp3 c:a libopus newfilename.ogg

Seems fine to me, you might want to add some encoding options and obviously wrap it in a shell exec function or backticks(?) to do it in PHP. Sorry I’m not up to speed on PHP, but that notwithstanding you didn’t even mention which version of PHP you were using.

By the way, did you try this first and have problems? Trial and error is sometimes a good strategy.


More information about the ffmpeg-user mailing list