diff options
author | zotlabs <mike@macgirvin.com> | 2017-12-25 16:06:24 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-12-25 16:06:24 -0800 |
commit | 32dfa4e86879f70d0c0070e28661194c0997d106 (patch) | |
tree | 7d449eac2107f506b507be3b59665755947a3e56 /Zotlabs/Thumbs/Video.php | |
parent | b507ac1f98e135d9eb85cba4297f02b10ccc3217 (diff) | |
download | volse-hubzilla-32dfa4e86879f70d0c0070e28661194c0997d106.tar.gz volse-hubzilla-32dfa4e86879f70d0c0070e28661194c0997d106.tar.bz2 volse-hubzilla-32dfa4e86879f70d0c0070e28661194c0997d106.zip |
document that imagick calls/execs ffmpeg for mp4 video thumbnails
Diffstat (limited to 'Zotlabs/Thumbs/Video.php')
-rw-r--r-- | Zotlabs/Thumbs/Video.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Thumbs/Video.php b/Zotlabs/Thumbs/Video.php index 5e09ef9a3..d0f72bcdd 100644 --- a/Zotlabs/Thumbs/Video.php +++ b/Zotlabs/Thumbs/Video.php @@ -32,12 +32,18 @@ class Video { fclose($ostream); } + /* + * Note: imagick convert may try to call 'ffmpeg' (or other conversion utilities) under + * the covers for this particular operation. If this is not installed or not in the path + * for the web server user, errors may be reported in the web server logs. + */ + $imagick_path = get_config('system','imagick_convert_path'); if($imagick_path && @file_exists($imagick_path)) { $cmd = $imagick_path . ' ' . escapeshellarg(PROJECT_BASE . '/' . $tmpfile . '[0]') . ' -thumbnail ' . $width . 'x' . $height . ' ' . escapeshellarg(PROJECT_BASE . '/' . $outfile); // logger('imagick thumbnail command: ' . $cmd); - exec($cmd); + @exec($cmd); if(! file_exists($outfile)) { logger('imagick scale failed.'); |