开发者

How can I convert flv file to a mp3 file by using php? [duplicate]

This question already has answers here: 开发者_开发问答 Closed 10 years ago.

Possible Duplicate:

How to convert a FLV file recorded with Red5 / FMS to MP3?

How can I convert flv file to a mp3 file by using php?


I would suggest using ffmpeg to do the actual conversion.

So you could use the system() function to call an ffmpeg command such as:

ffmpeg -i input.flv -acodec copy output.mp3

Alternatively, this might help: http://www.phpclasses.org/browse/package/3747.html


This is not possible in plain php. At least I don't know of any library that would support this transformation. What you can do is call ffmpeg using system() or exec() and execute the desired tranformation (requires ffmpeg to be installed on the host system).

Best wishes,
Fabian

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜