aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/checker-after-init.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-18 14:53:20 +0200
committerChocobozzz <me@florianbigard.com>2022-07-18 14:53:20 +0200
commit1efad362ef0b65118d1d79d802ffc928994c0ef6 (patch)
tree585401748d45ad4f9da8f3a032021625c1162b8c /server/initializers/checker-after-init.ts
parent1cc9774668827c1255e4cd0775cb781c7f73051c (diff)
downloadPeerTube-1efad362ef0b65118d1d79d802ffc928994c0ef6.tar.gz
PeerTube-1efad362ef0b65118d1d79d802ffc928994c0ef6.tar.zst
PeerTube-1efad362ef0b65118d1d79d802ffc928994c0ef6.zip
Display a warning if using ffmpeg 4.4.0
Diffstat (limited to 'server/initializers/checker-after-init.ts')
-rw-r--r--server/initializers/checker-after-init.ts8
1 files changed, 6 insertions, 2 deletions
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 () {
78 78
79async function checkFFmpegVersion () { 79async function checkFFmpegVersion () {
80 const version = await getFFmpegVersion() 80 const version = await getFFmpegVersion()
81 const { major, minor } = parseSemVersion(version) 81 const { major, minor, patch } = parseSemVersion(version)
82 82
83 if (major < 4 || (major === 4 && minor < 1)) { 83 if (major < 4 || (major === 4 && minor < 1)) {
84 logger.warn('Your ffmpeg version (%s) is outdated. PeerTube supports ffmpeg >= 4.1. Please upgrade.', version) 84 logger.warn('Your ffmpeg version (%s) is outdated. PeerTube supports ffmpeg >= 4.1. Please upgrade ffmpeg.', version)
85 }
86
87 if (major === 4 && minor === 4 && patch === 0) {
88 logger.warn('There is a bug in ffmpeg 4.4.0 with HLS videos. Please upgrade ffmpeg.')
85 } 89 }
86} 90}
87 91