0
$command = "ffmpeg -i '" . $img_full_name . "' -vf scale=200:200 '" . $img_thumb_name . "'" ;

    $output=shell_exec($command);   
    echo $output;
    die;

I am using this code to execute command in php but it gives me blank out put. Same command works if I Directly execute it on ssh.

Jaspreet Chhabra
  • 1,431
  • 15
  • 23
  • Check the (relative) path to the file, try to answer what the processes current directory is. – arkascha Jun 27 '15 at 18:39
  • Any error messages in the log files? Does the command terminate? How long does it run? – Joe Jun 27 '15 at 18:41
  • Another thing: are you sure `ffmpeg` can output to stdout? When looking through its man page it looks like it requires an output file to write the result to... – arkascha Jun 27 '15 at 18:41

0 Answers0