From 1ce4256a6577d0607320a320d9c5d328bdd162f7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 28 Sep 2022 10:23:03 +0200 Subject: Correctly handle RTMP streams without audio --- server/lib/live/shared/muxing-session.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/lib/live/shared') diff --git a/server/lib/live/shared/muxing-session.ts b/server/lib/live/shared/muxing-session.ts index 310a7026d..505717dce 100644 --- a/server/lib/live/shared/muxing-session.ts +++ b/server/lib/live/shared/muxing-session.ts @@ -59,6 +59,8 @@ class MuxingSession extends EventEmitter { private readonly bitrate: number private readonly ratio: number + private readonly hasAudio: boolean + private readonly videoId: number private readonly videoUUID: string private readonly saveReplay: boolean @@ -94,6 +96,7 @@ class MuxingSession extends EventEmitter { bitrate: number ratio: number allResolutions: number[] + hasAudio: boolean }) { super() @@ -108,6 +111,8 @@ class MuxingSession extends EventEmitter { this.bitrate = options.bitrate this.ratio = options.ratio + this.hasAudio = options.hasAudio + this.allResolutions = options.allResolutions this.videoId = this.videoLive.Video.id @@ -140,6 +145,8 @@ class MuxingSession extends EventEmitter { bitrate: this.bitrate, ratio: this.ratio, + hasAudio: this.hasAudio, + availableEncoders: VideoTranscodingProfilesManager.Instance.getAvailableEncoders(), profile: CONFIG.LIVE.TRANSCODING.PROFILE }) -- cgit v1.2.3