I'm trying to run ffmpeg via shell_exec on windows. My function isn't working (it doesn't execute, doesn't output a file, and doesn't output any results from shell_exec)
function convertFile($audio, $image)
{
$output = str_replace(".mp3", ".mp4", $audio);
$shellOutput = shell_exec("ffmpeg -loop 1 -r 2 -i \"$image\" -i \"$audio\" -shortest -c:v libx264 -preset medium -tune stillimage -crf 28 -c:a copy $output");
echo $shellOutput;
}
Apologies if this is something obvious. Thanks for any help!