aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-02 11:19:46 +0100
committerChocobozzz <me@florianbigard.com>2021-02-02 11:19:46 +0100
commitd8ba4921191ee2b3dda976c3c3d5cf4b9dd17619 (patch)
treead6fe4a94ad1393b467bff17af100c034212e320
parent2666fd7c753c8afdcba1907a5900ccb143df23c4 (diff)
downloadPeerTube-d8ba4921191ee2b3dda976c3c3d5cf4b9dd17619.tar.gz
PeerTube-d8ba4921191ee2b3dda976c3c3d5cf4b9dd17619.tar.zst
PeerTube-d8ba4921191ee2b3dda976c3c3d5cf4b9dd17619.zip
Fix broken HLS playback with some audio streams
-rw-r--r--server/helpers/ffprobe-utils.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/helpers/ffprobe-utils.ts b/server/helpers/ffprobe-utils.ts
index fefed25ae..d2476606e 100644
--- a/server/helpers/ffprobe-utils.ts
+++ b/server/helpers/ffprobe-utils.ts
@@ -262,6 +262,10 @@ async function canDoQuickAudioTranscode (path: string, probe?: ffmpeg.FfprobeDat
262 const maxAudioBitrate = getMaxAudioBitrate('aac', audioBitrate) 262 const maxAudioBitrate = getMaxAudioBitrate('aac', audioBitrate)
263 if (maxAudioBitrate !== -1 && audioBitrate > maxAudioBitrate) return false 263 if (maxAudioBitrate !== -1 && audioBitrate > maxAudioBitrate) return false
264 264
265 const channelLayout = parsedAudio.audioStream['channel_layout']
266 // Causes playback issues with Chrome
267 if (!channelLayout || channelLayout === 'unknown') return false
268
265 return true 269 return true
266} 270}
267 271