aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/ffmpeg-utils.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-03 14:06:31 +0200
committerChocobozzz <me@florianbigard.com>2020-04-03 14:07:00 +0200
commita2b6ec7c3f6176ac7028b1f23899ebec3217c8cd (patch)
tree5cbb9192c93301688a7bf8df7c4b3f8aec91fdb5 /server/helpers/ffmpeg-utils.ts
parent6a4c30de0e2ff82b8df1fc8ab4172ef63bd25566 (diff)
downloadPeerTube-a2b6ec7c3f6176ac7028b1f23899ebec3217c8cd.tar.gz
PeerTube-a2b6ec7c3f6176ac7028b1f23899ebec3217c8cd.tar.zst
PeerTube-a2b6ec7c3f6176ac7028b1f23899ebec3217c8cd.zip
Fix video codec in HLS playlist
Diffstat (limited to 'server/helpers/ffmpeg-utils.ts')
-rw-r--r--server/helpers/ffmpeg-utils.ts3
1 files changed, 2 insertions, 1 deletions
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) {
125 baseProfile = baseProfileMatrix['High'] // Fallback 125 baseProfile = baseProfileMatrix['High'] // Fallback
126 } 126 }
127 127
128 const level = videoStream.level.toString(16) 128 let level = videoStream.level.toString(16)
129 if (level.length === 1) level = `0${level}`
129 130
130 return `${videoCodec}.${baseProfile}${level}` 131 return `${videoCodec}.${baseProfile}${level}`
131} 132}