mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Merge branch 'master' of https://github.com/advplyr/audiobookshelf
This commit is contained in:
		
						commit
						5ccf0df308
					
				| @ -339,9 +339,9 @@ class Stream extends EventEmitter { | |||||||
|       } else { |       } else { | ||||||
|         Logger.error('Ffmpeg Err', '"' + err.message + '"') |         Logger.error('Ffmpeg Err', '"' + err.message + '"') | ||||||
| 
 | 
 | ||||||
|         // Temporary workaround for https://github.com/advplyr/audiobookshelf/issues/172
 |         // 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: Could not write header for output file #0 (incorrect codec parameters ?)' |         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) | ||||||
| @ -435,4 +435,4 @@ class Stream extends EventEmitter { | |||||||
|     return newAudioTrack |     return newAudioTrack | ||||||
|   } |   } | ||||||
| } | } | ||||||
| module.exports = Stream | module.exports = Stream | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user