I want to get the duration of a movie, using ffprobe (part of ffmpeg). The command line I'm using is this:
ffprobe -v error -show_entries format=duration -of
default=noprint_wrappers=1:nokey=1
path/to/video.mov
It works perfectly in the shell, gives me a result of 4.5554 (seconds).
However, if I call this command via exec on my local machine, I get an empty result.
var_dump( exec("ffprobe -v .......") );
returns string(0) ""
Now comes the burner: It works perfectly on the production machine, though!!
These are my configurations:
Local machine: Mac OS 10.9.5, PHP 5.6.11 ffmpeg 2.7.1
Production machine: Mac OS Server 10.6 PHP 5.3.1 ffmpeg 2.7.2
Is this kind of a bug in PHP 5.6 or something??? Thanks, Matt