diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-08 10:51:10 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-02-08 15:38:45 +0100 |
commit | 9129b7694d577322327ee79e9b9aa64deee92765 (patch) | |
tree | eb23b7a952048c3725f29109d38c36368976dec0 /server/lib/video-transcoding.ts | |
parent | 81b46cbc3417c46263c210c61b51a84a457abaaa (diff) | |
download | PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.gz PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.zst PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.zip |
Allow to specify transcoding and import jobs concurrency
Diffstat (limited to 'server/lib/video-transcoding.ts')
-rw-r--r-- | server/lib/video-transcoding.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts index 88a6e0673..a58c9dd20 100644 --- a/server/lib/video-transcoding.ts +++ b/server/lib/video-transcoding.ts | |||
@@ -272,7 +272,7 @@ async function generateHlsPlaylistCommon (options: { | |||
272 | const { type, video, inputPath, resolution, copyCodecs, isPortraitMode, isAAC, job } = options | 272 | const { type, video, inputPath, resolution, copyCodecs, isPortraitMode, isAAC, job } = options |
273 | const transcodeDirectory = CONFIG.STORAGE.TMP_DIR | 273 | const transcodeDirectory = CONFIG.STORAGE.TMP_DIR |
274 | 274 | ||
275 | const videoTranscodedBasePath = join(transcodeDirectory, type, video.uuid) | 275 | const videoTranscodedBasePath = join(transcodeDirectory, type) |
276 | await ensureDir(videoTranscodedBasePath) | 276 | await ensureDir(videoTranscodedBasePath) |
277 | 277 | ||
278 | const videoFilename = generateVideoStreamingPlaylistName(video.uuid, resolution) | 278 | const videoFilename = generateVideoStreamingPlaylistName(video.uuid, resolution) |
@@ -337,8 +337,6 @@ async function generateHlsPlaylistCommon (options: { | |||
337 | await move(playlistFileTranscodePath, playlistPath, { overwrite: true }) | 337 | await move(playlistFileTranscodePath, playlistPath, { overwrite: true }) |
338 | // Move video file | 338 | // Move video file |
339 | await move(join(videoTranscodedBasePath, videoFilename), videoFilePath, { overwrite: true }) | 339 | await move(join(videoTranscodedBasePath, videoFilename), videoFilePath, { overwrite: true }) |
340 | // Cleanup directory | ||
341 | await remove(videoTranscodedBasePath) | ||
342 | 340 | ||
343 | const stats = await stat(videoFilePath) | 341 | const stats = await stat(videoFilePath) |
344 | 342 | ||