mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-13 00:06:30 +01:00
Update server/objects/Stream.js
This commit is contained in:
parent
4352989242
commit
7c9631c1b0
@ -341,7 +341,7 @@ class Stream extends EventEmitter {
|
|||||||
|
|
||||||
// Temporary workaround for https://github.com/advplyr/audiobookshelf/issues/172 and https://github.com/advplyr/audiobookshelf/issues/2157
|
// Temporary workaround for https://github.com/advplyr/audiobookshelf/issues/172 and https://github.com/advplyr/audiobookshelf/issues/2157
|
||||||
const aacErrorMsg = 'ffmpeg exited with code 1:'
|
const aacErrorMsg = 'ffmpeg exited with code 1:'
|
||||||
if (audioCodec === 'copy' && this.isAACEncodable && err.message && err.message.startsWith(aacErrorMsg)) {
|
if (audioCodec === 'copy' && this.isAACEncodable && err.message?.startsWith(aacErrorMsg)) {
|
||||||
Logger.info(`[Stream] Re-attempting stream with AAC encode`)
|
Logger.info(`[Stream] Re-attempting stream with AAC encode`)
|
||||||
this.transcodeOptions.forceAAC = true
|
this.transcodeOptions.forceAAC = true
|
||||||
this.reset(this.startTime)
|
this.reset(this.startTime)
|
||||||
|
Loading…
Reference in New Issue
Block a user