0
The following code works at the prompt but not 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);
Works perfectly in Windows Prompt, but in PHP does not run and gets this error in Apache
'$ffmpeg' is not recognized as an Internal or External command, operable program or batch file.
Use double quotes on
$cmd
– Augusto
@Augusto and no select=gt... I leave with apostrofe or leave without ?
– Leo Letto