I have a basic php script which converts an avi using ffmpeg:
<?php
if (exec("/usr/bin/ffmpeg -i testvideo.avi -sameq -ar 22050 convertvideo.mp4 2> logfile.log")){
echo "Success";
}else{
echo "Error";
}
?>
now as an extension to this I would like to use php to check if the file is still being converted if not an email should be sent can anyone advise how I can achieve this?
Also despite using the code above and the file being converted successfully, the output I always get is "Error", can anyone help with this as well?
Thanks