开发者

How to convert .wav to .mp3 file in php

开发者 https://www.devze.com 2023-02-17 19:07 出处:网络
I am currently developing a w开发者_StackOverflow中文版ebsite using the CodeIgniter framework and in one of the Process I need to download a .wav music file and convert it to .mp3 file.

I am currently developing a w开发者_StackOverflow中文版ebsite using the CodeIgniter framework and in one of the Process I need to download a .wav music file and convert it to .mp3 file. All the coding needs to be done only in PHP and I cannot use Ruby or java to do so.

And I am currently hosting on a shared env i.e. Dreamhost.

So please let me know how to work out this problem.


Use FFMPEG. There is a PHP extension for it, but I've found better success just calling exec(). Most hosts I have used (even shared hosting) will install it if it isn't already available.

Edit: Dreamhost provides this for you. See this: http://wiki.dreamhost.com/FFmpeg

And this: http://wiki.dreamhost.com/Php-ffmpeg

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号