The following code works at the prompt but does not work in php, why?
$ffmpeg = 'C:/ffmpeg/bin/ffmpeg.exe';
$video = 'C:/absolute-path-para-o-video';
$output = 'C:/minha-pasta/thumbnail.jpg';
$cmd = '$ffmpeg -ss 3 -i $video -vf "select=gt(scene\,0.4)" -frames:v 5 -vsync vfr -vf fps=fps=1/600 $output &';
exec($cmd);
It works perfectly in Windows Prompt, however in PHP it does not run and it has this error in Apache
'$ ffmpeg' is not recognized as an internal or external command, operable program or batch file.