diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/transcoding/default-transcoding-profiles.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/lib/transcoding/default-transcoding-profiles.ts b/server/lib/transcoding/default-transcoding-profiles.ts index 8f01f57a5..f47718819 100644 --- a/server/lib/transcoding/default-transcoding-profiles.ts +++ b/server/lib/transcoding/default-transcoding-profiles.ts | |||
@@ -76,11 +76,14 @@ const defaultAACOptionsBuilder: EncoderOptionsBuilder = async ({ input, streamNu | |||
76 | 76 | ||
77 | logger.debug('Calculating audio bitrate of %s by AAC encoder.', input, { bitrate: parsedAudio.bitrate, audioCodecName }) | 77 | logger.debug('Calculating audio bitrate of %s by AAC encoder.', input, { bitrate: parsedAudio.bitrate, audioCodecName }) |
78 | 78 | ||
79 | // Force stereo as it causes some issues with HLS playback in Chrome | ||
80 | const base = [ '-channel_layout', 'stereo' ] | ||
81 | |||
79 | if (bitrate !== -1) { | 82 | if (bitrate !== -1) { |
80 | return { outputOptions: [ buildStreamSuffix('-b:a', streamNum), bitrate + 'k' ] } | 83 | return { outputOptions: base.concat([ buildStreamSuffix('-b:a', streamNum), bitrate + 'k' ]) } |
81 | } | 84 | } |
82 | 85 | ||
83 | return { outputOptions: [ ] } | 86 | return { outputOptions: base } |
84 | } | 87 | } |
85 | 88 | ||
86 | const defaultLibFDKAACVODOptionsBuilder: EncoderOptionsBuilder = ({ streamNum }) => { | 89 | const defaultLibFDKAACVODOptionsBuilder: EncoderOptionsBuilder = ({ streamNum }) => { |