I have a laravel command that generates summary jpeg file (contact sheet) from a video file, using exec('ffmpeg ...')
.
When I call it from command-line (like this: php artisan file:generate
or su - nginx -s /bin/sh -c 'php artisan file:generate'
) it works, but if I have it in the crontab, it doesn't work.
Any ideas?