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)