From ce0b22157373b3914fd8211e0850c65ef2280755 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 25 Feb 2015 01:41:34 +0100 Subject: [PATCH] avconv required -f image2 not -f mjpeg at least on my server --- 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 3cdf07478e..2bbc06d738 100644 --- a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php +++ b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php @@ -58,7 +58,7 @@ class VideoThumbnailsPlugin extends Plugin // Let's save our frame to a temporary file. If we fail, remove it. $imgPath = tempnam(sys_get_temp_dir(), 'socialthumb-'); - $result = exec('avconv -i '.escapeshellarg($file->getPath()).' -vcodec mjpeg -vframes 1 -f mjpeg -an '.escapeshellarg($imgPath)); + $result = exec('avconv -i '.escapeshellarg($file->getPath()).' -vcodec mjpeg -vframes 1 -f image2 -an '.escapeshellarg($imgPath)); if (!getimagesize($imgPath)) { common_debug('exec of "avconv" produced a bad/nonexisting image it seems'); -- 2.39.5