From 9129b7694d577322327ee79e9b9aa64deee92765 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 8 Feb 2021 10:51:10 +0100 Subject: Allow to specify transcoding and import jobs concurrency --- server/lib/video-transcoding.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'server/lib/video-transcoding.ts') 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: { const { type, video, inputPath, resolution, copyCodecs, isPortraitMode, isAAC, job } = options const transcodeDirectory = CONFIG.STORAGE.TMP_DIR - const videoTranscodedBasePath = join(transcodeDirectory, type, video.uuid) + const videoTranscodedBasePath = join(transcodeDirectory, type) await ensureDir(videoTranscodedBasePath) const videoFilename = generateVideoStreamingPlaylistName(video.uuid, resolution) @@ -337,8 +337,6 @@ async function generateHlsPlaylistCommon (options: { await move(playlistFileTranscodePath, playlistPath, { overwrite: true }) // Move video file await move(join(videoTranscodedBasePath, videoFilename), videoFilePath, { overwrite: true }) - // Cleanup directory - await remove(videoTranscodedBasePath) const stats = await stat(videoFilePath) -- cgit v1.2.3