From a2b6ec7c3f6176ac7028b1f23899ebec3217c8cd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Apr 2020 14:06:31 +0200 Subject: Fix video codec in HLS playlist --- server/helpers/ffmpeg-utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index e0e408ea0..9dac4448e 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts @@ -125,7 +125,8 @@ async function getVideoStreamCodec (path: string) { baseProfile = baseProfileMatrix['High'] // Fallback } - const level = videoStream.level.toString(16) + let level = videoStream.level.toString(16) + if (level.length === 1) level = `0${level}` return `${videoCodec}.${baseProfile}${level}` } -- cgit v1.2.3