X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Flive%2Fshared%2Fmuxing-session.ts;h=709d6c61549faa61d2cd87fedae97ea29da7454e;hb=421ff4618da64f0849353383f690a014024c40da;hp=eb2007b298db17d14a88e998a766947d978510f0;hpb=e466544fb942992bbf9c455ad2168dc1b9111d97;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/live/shared/muxing-session.ts b/server/lib/live/shared/muxing-session.ts index eb2007b29..709d6c615 100644 --- a/server/lib/live/shared/muxing-session.ts +++ b/server/lib/live/shared/muxing-session.ts @@ -102,8 +102,6 @@ class MuxingSession extends EventEmitter { this.saveReplay = this.videoLive.saveReplay this.lTags = loggerTagsFactory('live', this.sessionId, this.videoUUID) - - this.toto = Buffer.alloc(1_000_000_000) } async runMuxing () { @@ -114,13 +112,16 @@ class MuxingSession extends EventEmitter { this.ffmpegCommand = CONFIG.LIVE.TRANSCODING.ENABLED ? await getLiveTranscodingCommand({ rtmpUrl: this.rtmpUrl, + outPath, + masterPlaylistName: this.streamingPlaylist.playlistFilename, + resolutions: this.allResolutions, fps: this.fps, availableEncoders: VideoTranscodingProfilesManager.Instance.getAvailableEncoders(), profile: CONFIG.LIVE.TRANSCODING.PROFILE }) - : getLiveMuxingCommand(this.rtmpUrl, outPath) + : getLiveMuxingCommand(this.rtmpUrl, outPath, this.streamingPlaylist.playlistFilename) logger.info('Running live muxing/transcoding for %s.', this.videoUUID, this.lTags) @@ -184,7 +185,7 @@ class MuxingSession extends EventEmitter { } private watchMasterFile (outPath: string) { - this.masterWatcher = chokidar.watch(outPath + '/master.m3u8') + this.masterWatcher = chokidar.watch(outPath + '/' + this.streamingPlaylist.playlistFilename) this.masterWatcher.on('add', async () => { this.emit('master-playlist-created', { videoId: this.videoId })