HI,
I am trying to convert an audio file that is in wav format to mp3 format. I have installed apache and I am using windows 8. I downloaded the files for ffmpeg and tried to run the php script and convert the file but no success. What I am doing is in the exec command I am giving the path to ffmpeg.exe and calling the convert command. Here is my code.
$ffmpeg = $_SERVER['DOCUMENT_ROOT'].'/ffmpeg_test/bin/ffmpeg.exe';
exec($ffmpeg.' -i 10001_pre.wav file.mp3',$out,$return);
Now when I try to print the out variable it does not show me any thing. Can any one tell me what I am doing wrong. I think what I am missing is I need to get the ffmpeg package open through php.ini. If that is the case can anyone tell me how can I add the extension to my php.ini.
Thanks in advance.