diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-28 09:37:26 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-28 15:55:39 +0100 |
commit | 529b37527cff5203a0689a15ce73dcee6e1eece2 (patch) | |
tree | 8ca9cbb725b59a8dfadf70526a0e470349c1c720 /server/lib/live-manager.ts | |
parent | 923d3d5ad53cd23bf8107e936408e321f6175517 (diff) | |
download | PeerTube-529b37527cff5203a0689a15ce73dcee6e1eece2.tar.gz PeerTube-529b37527cff5203a0689a15ce73dcee6e1eece2.tar.zst PeerTube-529b37527cff5203a0689a15ce73dcee6e1eece2.zip |
Use a profile manager for transcoding
Diffstat (limited to 'server/lib/live-manager.ts')
-rw-r--r-- | server/lib/live-manager.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/live-manager.ts b/server/lib/live-manager.ts index d968f05da..c8e5bcb77 100644 --- a/server/lib/live-manager.ts +++ b/server/lib/live-manager.ts | |||
@@ -25,7 +25,7 @@ import { cleanupLive } from './job-queue/handlers/video-live-ending' | |||
25 | import { PeerTubeSocket } from './peertube-socket' | 25 | import { PeerTubeSocket } from './peertube-socket' |
26 | import { isAbleToUploadVideo } from './user' | 26 | import { isAbleToUploadVideo } from './user' |
27 | import { getHLSDirectory } from './video-paths' | 27 | import { getHLSDirectory } from './video-paths' |
28 | import { availableEncoders } from './video-transcoding-profiles' | 28 | import { VideoTranscodingProfilesManager } from './video-transcoding-profiles' |
29 | 29 | ||
30 | import memoizee = require('memoizee') | 30 | import memoizee = require('memoizee') |
31 | const NodeRtmpSession = require('node-media-server/node_rtmp_session') | 31 | const NodeRtmpSession = require('node-media-server/node_rtmp_session') |
@@ -337,7 +337,7 @@ class LiveManager { | |||
337 | outPath, | 337 | outPath, |
338 | resolutions: allResolutions, | 338 | resolutions: allResolutions, |
339 | fps, | 339 | fps, |
340 | availableEncoders, | 340 | availableEncoders: VideoTranscodingProfilesManager.Instance.getAvailableEncoders(), |
341 | profile: 'default' | 341 | profile: 'default' |
342 | }) | 342 | }) |
343 | : getLiveMuxingCommand(rtmpUrl, outPath) | 343 | : getLiveMuxingCommand(rtmpUrl, outPath) |