Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top