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/video-transcoding.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/video-transcoding.ts')
-rw-r--r-- | server/lib/video-transcoding.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts index 7af7a481c..c4b3425d1 100644 --- a/server/lib/video-transcoding.ts +++ b/server/lib/video-transcoding.ts | |||
@@ -14,7 +14,7 @@ import { VideoFileModel } from '../models/video/video-file' | |||
14 | import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist' | 14 | import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist' |
15 | import { updateMasterHLSPlaylist, updateSha256VODSegments } from './hls' | 15 | import { updateMasterHLSPlaylist, updateSha256VODSegments } from './hls' |
16 | import { generateVideoStreamingPlaylistName, getVideoFilename, getVideoFilePath } from './video-paths' | 16 | import { generateVideoStreamingPlaylistName, getVideoFilename, getVideoFilePath } from './video-paths' |
17 | import { availableEncoders } from './video-transcoding-profiles' | 17 | import { VideoTranscodingProfilesManager } from './video-transcoding-profiles' |
18 | 18 | ||
19 | /** | 19 | /** |
20 | * | 20 | * |
@@ -41,7 +41,7 @@ async function optimizeOriginalVideofile (video: MVideoWithFile, inputVideoFile: | |||
41 | inputPath: videoInputPath, | 41 | inputPath: videoInputPath, |
42 | outputPath: videoTranscodedPath, | 42 | outputPath: videoTranscodedPath, |
43 | 43 | ||
44 | availableEncoders, | 44 | availableEncoders: VideoTranscodingProfilesManager.Instance.getAvailableEncoders(), |
45 | profile: 'default', | 45 | profile: 'default', |
46 | 46 | ||
47 | resolution: inputVideoFile.resolution, | 47 | resolution: inputVideoFile.resolution, |
@@ -95,7 +95,7 @@ async function transcodeNewWebTorrentResolution (video: MVideoWithFile, resoluti | |||
95 | inputPath: videoInputPath, | 95 | inputPath: videoInputPath, |
96 | outputPath: videoTranscodedPath, | 96 | outputPath: videoTranscodedPath, |
97 | 97 | ||
98 | availableEncoders, | 98 | availableEncoders: VideoTranscodingProfilesManager.Instance.getAvailableEncoders(), |
99 | profile: 'default', | 99 | profile: 'default', |
100 | 100 | ||
101 | resolution, | 101 | resolution, |
@@ -107,7 +107,7 @@ async function transcodeNewWebTorrentResolution (video: MVideoWithFile, resoluti | |||
107 | inputPath: videoInputPath, | 107 | inputPath: videoInputPath, |
108 | outputPath: videoTranscodedPath, | 108 | outputPath: videoTranscodedPath, |
109 | 109 | ||
110 | availableEncoders, | 110 | availableEncoders: VideoTranscodingProfilesManager.Instance.getAvailableEncoders(), |
111 | profile: 'default', | 111 | profile: 'default', |
112 | 112 | ||
113 | resolution, | 113 | resolution, |
@@ -142,7 +142,7 @@ async function mergeAudioVideofile (video: MVideoWithAllFiles, resolution: Video | |||
142 | inputPath: tmpPreviewPath, | 142 | inputPath: tmpPreviewPath, |
143 | outputPath: videoTranscodedPath, | 143 | outputPath: videoTranscodedPath, |
144 | 144 | ||
145 | availableEncoders, | 145 | availableEncoders: VideoTranscodingProfilesManager.Instance.getAvailableEncoders(), |
146 | profile: 'default', | 146 | profile: 'default', |
147 | 147 | ||
148 | audioPath: audioInputPath, | 148 | audioPath: audioInputPath, |
@@ -283,7 +283,7 @@ async function generateHlsPlaylistCommon (options: { | |||
283 | inputPath, | 283 | inputPath, |
284 | outputPath, | 284 | outputPath, |
285 | 285 | ||
286 | availableEncoders, | 286 | availableEncoders: VideoTranscodingProfilesManager.Instance.getAvailableEncoders(), |
287 | profile: 'default', | 287 | profile: 'default', |
288 | 288 | ||
289 | resolution, | 289 | resolution, |