diff options
Diffstat (limited to 'server/lib/live')
-rw-r--r-- | server/lib/live/live-manager.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts index c78cf82eb..6d51f4de7 100644 --- a/server/lib/live/live-manager.ts +++ b/server/lib/live/live-manager.ts | |||
@@ -6,6 +6,7 @@ import { logger, loggerTagsFactory } from '@server/helpers/logger' | |||
6 | import { CONFIG, registerConfigChangedHandler } from '@server/initializers/config' | 6 | import { CONFIG, registerConfigChangedHandler } from '@server/initializers/config' |
7 | import { VIDEO_LIVE } from '@server/initializers/constants' | 7 | import { VIDEO_LIVE } from '@server/initializers/constants' |
8 | import { sequelizeTypescript } from '@server/initializers/database' | 8 | import { sequelizeTypescript } from '@server/initializers/database' |
9 | import { RunnerJobModel } from '@server/models/runner/runner-job' | ||
9 | import { UserModel } from '@server/models/user/user' | 10 | import { UserModel } from '@server/models/user/user' |
10 | import { VideoModel } from '@server/models/video/video' | 11 | import { VideoModel } from '@server/models/video/video' |
11 | import { VideoLiveModel } from '@server/models/video/video-live' | 12 | import { VideoLiveModel } from '@server/models/video/video-live' |
@@ -25,7 +26,6 @@ import { computeResolutionsToTranscode } from '../transcoding/transcoding-resolu | |||
25 | import { LiveQuotaStore } from './live-quota-store' | 26 | import { LiveQuotaStore } from './live-quota-store' |
26 | import { cleanupAndDestroyPermanentLive, getLiveSegmentTime } from './live-utils' | 27 | import { cleanupAndDestroyPermanentLive, getLiveSegmentTime } from './live-utils' |
27 | import { MuxingSession } from './shared' | 28 | import { MuxingSession } from './shared' |
28 | import { RunnerJobModel } from '@server/models/runner/runner-job' | ||
29 | 29 | ||
30 | const NodeRtmpSession = require('node-media-server/src/node_rtmp_session') | 30 | const NodeRtmpSession = require('node-media-server/src/node_rtmp_session') |
31 | const context = require('node-media-server/src/node_core_ctx') | 31 | const context = require('node-media-server/src/node_core_ctx') |
@@ -80,6 +80,9 @@ class LiveManager { | |||
80 | 80 | ||
81 | events.on('donePublish', sessionId => { | 81 | events.on('donePublish', sessionId => { |
82 | logger.info('Live session ended.', { sessionId, ...lTags(sessionId) }) | 82 | logger.info('Live session ended.', { sessionId, ...lTags(sessionId) }) |
83 | |||
84 | // Force session aborting, so we kill ffmpeg even if it still has data to process (slow CPU) | ||
85 | setTimeout(() => this.abortSession(sessionId), 2000) | ||
83 | }) | 86 | }) |
84 | 87 | ||
85 | registerConfigChangedHandler(() => { | 88 | registerConfigChangedHandler(() => { |