I'm having problems regarding conversion of video to flv format. Below is my command for conversion, but it seems to convert the video to flv but the file size remains 0 KB, what could be the problem, please suggest. My command:
exec("/usr/bin/ffmpeg -i $inputFile -ar 22050 -b 300000 -ab 128 -f flv -r 25 -s 320x240 - | /usr/bin/flvtool2 -U stdin $outputFile", $output);
I tried to do:
exec("which ffmpeg");
And it showed me /usr/bin/ffmpeg, So what could be the problem. Is is that the flvtool2 is not working properly, or the path the flvtool2 is wrong (if yes then how can i check the path) Help needed