From 58e852f7f7bfe65cdf1fef49ab1cda2b87da1d93 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 7 Feb 2016 01:59:21 +0100 Subject: [PATCH] Use the -y parameter for ffmpeg/avconv to be non-interactive --- plugins/VideoThumbnails/VideoThumbnailsPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php index c6a69a97a6..e8cf7e31f2 100644 --- a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php +++ b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php @@ -67,7 +67,7 @@ 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.' -i '.escapeshellarg($file->getPath()).' -vcodec mjpeg -vframes 1 -f image2 -an '.escapeshellarg($tmp_imgPath)); + $result = exec($cmd.' -y -i '.escapeshellarg($file->getPath()).' -vcodec mjpeg -vframes 1 -f image2 -an '.escapeshellarg($tmp_imgPath)); if (!getimagesize($tmp_imgPath)) { common_debug('exec of "avconv" produced a bad/nonexisting image it seems'); -- 2.39.5