Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix video codec in HLS playlist

Chocobozzza2b6ec7c3f61
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index e0e408ea02..9dac4448ec 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}`
}