dongzhang7382
dongzhang7382
2009-12-16 00:31

如何使用PHP将flv文件转换为mp3文件? [重复]

已采纳

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?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • dongsong4418 dongsong4418 12年前

    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

    点赞 评论 复制链接分享
  • dsrjs86444 dsrjs86444 12年前

    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

    点赞 评论 复制链接分享