aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/live-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/live-manager.ts')
-rw-r--r--server/lib/live-manager.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/lib/live-manager.ts b/server/lib/live-manager.ts
index b9e5d4561..ee0e4de37 100644
--- a/server/lib/live-manager.ts
+++ b/server/lib/live-manager.ts
@@ -22,6 +22,7 @@ import { JobQueue } from './job-queue'
22import { PeerTubeSocket } from './peertube-socket' 22import { PeerTubeSocket } from './peertube-socket'
23import { isAbleToUploadVideo } from './user' 23import { isAbleToUploadVideo } from './user'
24import { getHLSDirectory } from './video-paths' 24import { getHLSDirectory } from './video-paths'
25import { availableEncoders } from './video-transcoding-profiles'
25 26
26import memoizee = require('memoizee') 27import memoizee = require('memoizee')
27const NodeRtmpServer = require('node-media-server/node_rtmp_server') 28const NodeRtmpServer = require('node-media-server/node_rtmp_server')
@@ -264,7 +265,16 @@ class LiveManager {
264 const deleteSegments = videoLive.saveReplay === false 265 const deleteSegments = videoLive.saveReplay === false
265 266
266 const ffmpegExec = CONFIG.LIVE.TRANSCODING.ENABLED 267 const ffmpegExec = CONFIG.LIVE.TRANSCODING.ENABLED
267 ? getLiveTranscodingCommand(rtmpUrl, outPath, allResolutions, fps, deleteSegments) 268 ? await getLiveTranscodingCommand({
269 rtmpUrl,
270 outPath,
271 resolutions:
272 allResolutions,
273 fps,
274 deleteSegments,
275 availableEncoders,
276 profile: 'default'
277 })
268 : getLiveMuxingCommand(rtmpUrl, outPath, deleteSegments) 278 : getLiveMuxingCommand(rtmpUrl, outPath, deleteSegments)
269 279
270 logger.info('Running live muxing/transcoding for %s.', videoUUID) 280 logger.info('Running live muxing/transcoding for %s.', videoUUID)