How to convert all audio formats to mp3 in php? [closed]

你离开我真会死。 提交于 2019-11-28 06:56:16

问题


How to convert all audio formats to mp3 in php


回答1:


Using ffmpeg can be helpful. For details http://ffmpeg.org/




回答2:


at first you install ffmpeg on your system. (it is free), then in PHP you can call the ffmpeg to convert any audio file to mp3 using the system command like this:

<?php
$output = system("ffmpeg parameters...");
echo $output;
?>

see the ffmpeg documentation for examples how to call ffmpeg.



来源:https://stackoverflow.com/questions/11840650/how-to-convert-all-audio-formats-to-mp3-in-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!