I have been coding with PHP for a while now and have used things like FFMPEG on Windows XAMPP without any problems. Now however i have been trying to run the FFMPEG commandline on my Godaddy hosting account with PHP as i wanted to make a web based project but cannot get it working.
On windows with ffmpeg.exe and sound.wav in the same directory this works:
WavToMP3.php
<?php
exec("ffmpeg.exe -i sound.wav -ar 44100 -ac 2 -c:a libmp3lame -b:a 320k sound.mp3");
?>
Yet it does not run on Godaddy, i know they use linux though so i tried this:
I downloaded:
Then in the script i changed "ffmpeg.exe" to just "ffmpeg" but it still did not work.
I have no idea about running linux commandlines as i have only ever used Windows in the past.
What are the instructions needed that can get the above PHP code or a modified version to generate a .mp3 file using my Godaddy hosting account?