From e4286632f55f14a9ff55653e662b035890f7b0db Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 19 Aug 2018 18:22:49 -0500 Subject: [PATCH] Fix #3826: Upload error: Could not parse output from FFProbe --- app/logical/upload_service/utils.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/logical/upload_service/utils.rb b/app/logical/upload_service/utils.rb index 91cac70e6..9e4a86c62 100644 --- a/app/logical/upload_service/utils.rb +++ b/app/logical/upload_service/utils.rb @@ -185,8 +185,9 @@ class UploadService end def is_video_with_audio?(upload, file) + return false if !upload.is_video? # avoid ffprobe'ing the file if it's not a video (issue #3826) video = FFMPEG::Movie.new(file.path) - upload.is_video? && video.audio_channels.present? + video.audio_channels.present? end def automatic_tags(upload, file)