From: Mikael Nordfeldth Date: Wed, 20 Jul 2016 20:51:38 +0000 (+0200) Subject: Easier debugging of VideoThumbnails plugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fc440ba7e767803fb57644fc9af53c14706055de;p=quix0rs-gnu-social.git Easier debugging of VideoThumbnails plugin --- diff --git a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php index e8cf7e31f2..fc3925375f 100644 --- a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php +++ b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php @@ -67,7 +67,9 @@ class VideoThumbnailsPlugin extends Plugin common_log(LOG_ERR, 'Neither ffmpeg nor avconv was found in your PATH. Cannot create video thumbnail.'); return true; } - $result = exec($cmd.' -y -i '.escapeshellarg($file->getPath()).' -vcodec mjpeg -vframes 1 -f image2 -an '.escapeshellarg($tmp_imgPath)); + $fullcmd = $cmd.' -y -i '.escapeshellarg($file->getPath()).' -vcodec mjpeg -vframes 1 -f image2 -an '.escapeshellarg($tmp_imgPath); + common_debug(__METHOD__ . ' executing: '._ve($fullcmd)); + $result = exec($fullcmd); if (!getimagesize($tmp_imgPath)) { common_debug('exec of "avconv" produced a bad/nonexisting image it seems');