1

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?

phaberest
  • 3,140
  • 3
  • 32
  • 40
  • See this page [how-can-i-use-php-ffmpeg-in-laravel](https://stackoverflow.com/questions/26838135/how-can-i-use-php-ffmpeg-in-laravel-4) – paranoid Feb 02 '16 at 14:48
  • How did you set the cronjob? Check `www-data` permissions and try setting the cron with `crontab -u www-data -e` – phaberest Feb 02 '16 at 15:55

0 Answers0