diff --git a/server/models/video/video.ts b/server/models/video/video.ts index f6a21814c..1b9d68073 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -1138,10 +1138,10 @@ export class VideoModel extends Model { outputPath: videoOutputPath } - try { - // Could be very long! - await transcode(transcodeOptions) + // Could be very long! + await transcode(transcodeOptions) + try { await unlinkPromise(videoInputPath) // Important to do this before getVideoFilename() to take in account the new file extension