From 87fca86b679227c0c7eff811148f167aaf3ba5c8 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Wed, 22 Sep 2021 17:40:46 -0700 Subject: [PATCH] Fix missing thumbnail for some videos Resolves #239. --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index 7b92508..0c08f54 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -542,7 +542,7 @@ function videoDimensions($file_location) { $dimensions = ''; $exit_status = 1; - exec("ffprobe -hide_banner -loglevel error -of csv=p=0 -show_entries stream=width,height $file_location", $dimensions, $exit_status); + exec("ffprobe -hide_banner -loglevel error -of csv=p=0 -select_streams v -show_entries stream=width,height $file_location", $dimensions, $exit_status); if ($exit_status != 0) { return array(0, 0); }