From 763d8810e3fcff9b8e16ff4a6769654a9e0541d3 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 8 Nov 2025 17:08:43 -0600 Subject: [PATCH] Update Stream ac3/eac3 check --- server/objects/Stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/objects/Stream.js b/server/objects/Stream.js index b3582329..5aa013e8 100644 --- a/server/objects/Stream.js +++ b/server/objects/Stream.js @@ -275,7 +275,7 @@ class Stream extends EventEmitter { const codecOptions = [`-loglevel ${logLevel}`, '-map 0:a'] - if (this.codecsToForceAAC.slice(1, 3).includes(this.tracksCodec) && this.tracks.length > 0 && this.tracks[0].bitRate && this.tracks[0].channels) { + if (['ac3', 'eac3'].includes(this.tracksCodec) && this.tracks.length > 0 && this.tracks[0].bitRate && this.tracks[0].channels) { // In case for ac3/eac3 it needs to be passed the bitrate and channels to avoid ffmpeg errors codecOptions.push(`-c:a ${audioCodec}`, `-b:a ${this.tracks[0].bitRate}`, `-ac ${this.tracks[0].channels}`) } else {