aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/live/live-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/live/live-manager.ts')
-rw-r--r--server/lib/live/live-manager.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts
index 41f89a2a4..bd47b01f9 100644
--- a/server/lib/live/live-manager.ts
+++ b/server/lib/live/live-manager.ts
@@ -29,6 +29,7 @@ import { PeerTubeSocket } from '../peertube-socket'
29import { LiveQuotaStore } from './live-quota-store' 29import { LiveQuotaStore } from './live-quota-store'
30import { cleanupPermanentLive } from './live-utils' 30import { cleanupPermanentLive } from './live-utils'
31import { MuxingSession } from './shared' 31import { MuxingSession } from './shared'
32import { Hooks } from '../plugins/hooks'
32 33
33const NodeRtmpSession = require('node-media-server/src/node_rtmp_session') 34const NodeRtmpSession = require('node-media-server/src/node_rtmp_session')
34const context = require('node-media-server/src/node_core_ctx') 35const context = require('node-media-server/src/node_core_ctx')
@@ -242,7 +243,11 @@ class LiveManager {
242 inputUrl, Date.now() - now, bitrate, fps, resolution, lTags(sessionId, video.uuid) 243 inputUrl, Date.now() - now, bitrate, fps, resolution, lTags(sessionId, video.uuid)
243 ) 244 )
244 245
245 const allResolutions = this.buildAllResolutionsToTranscode(resolution) 246 const allResolutions = await Hooks.wrapObject(
247 this.buildAllResolutionsToTranscode(resolution),
248 'filter:transcoding.auto.lower-resolutions-to-transcode.result',
249 { video }
250 )
246 251
247 logger.info( 252 logger.info(
248 'Will mux/transcode live video of original resolution %d.', resolution, 253 'Will mux/transcode live video of original resolution %d.', resolution,