是否可以在PHP中将WAV文件转换为AIFF,反之亦然? [关闭]

是否可以在PHP中将WAV文件转换为AIFF,反之亦然?  [关闭]

问题描述:

I know it's possible to covert from AIFF and WAV to MP3, but in my project I need to have available all three formats (AIFF, WAV and MP3) from AIFF and WAV inputs. Is it possible?

我知道可以从AIFF和WAV转换为MP3,但在我的项目中我需要全部三个 来自AIFF和WAV输入的格式(AIFF,WAV和MP3)。 有可能吗? p> div>

<?php
    exec("ffmpeg -i file.wav -f aiff -ab 128000 -ar 44100 file.aif");
?>

Not elegant, but you can use underlying system tools to do it via shell_exec()