From 1efad362ef0b65118d1d79d802ffc928994c0ef6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 18 Jul 2022 14:53:20 +0200 Subject: Display a warning if using ffmpeg 4.4.0 --- server/initializers/checker-after-init.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts index e542a5395..f0f16d9bd 100644 --- a/server/initializers/checker-after-init.ts +++ b/server/initializers/checker-after-init.ts @@ -78,10 +78,14 @@ async function applicationExist () { async function checkFFmpegVersion () { const version = await getFFmpegVersion() - const { major, minor } = parseSemVersion(version) + const { major, minor, patch } = parseSemVersion(version) if (major < 4 || (major === 4 && minor < 1)) { - logger.warn('Your ffmpeg version (%s) is outdated. PeerTube supports ffmpeg >= 4.1. Please upgrade.', version) + logger.warn('Your ffmpeg version (%s) is outdated. PeerTube supports ffmpeg >= 4.1. Please upgrade ffmpeg.', version) + } + + if (major === 4 && minor === 4 && patch === 0) { + logger.warn('There is a bug in ffmpeg 4.4.0 with HLS videos. Please upgrade ffmpeg.') } } -- cgit v1.2.3