From: Chocobozzz Date: Thu, 23 Dec 2021 12:40:47 +0000 (+0100) Subject: Fix video import transcoding X-Git-Tag: v4.1.0-rc.1~260 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=5354af75b372cf079384d44592a58f1db96982f6;p=github%2FChocobozzz%2FPeerTube.git Fix video import transcoding --- diff --git a/server/lib/job-queue/handlers/video-import.ts b/server/lib/job-queue/handlers/video-import.ts index 11ccd47ed..beb78b4a6 100644 --- a/server/lib/job-queue/handlers/video-import.ts +++ b/server/lib/job-queue/handlers/video-import.ts @@ -118,8 +118,8 @@ async function processFile (downloader: () => Promise, videoImport: MVid const probe = await ffprobePromise(tempVideoPath) const { resolution } = await isAudioFile(tempVideoPath, probe) - ? await getVideoFileResolution(tempVideoPath) - : { resolution: VideoResolution.H_NOVIDEO } + ? { resolution: VideoResolution.H_NOVIDEO } + : await getVideoFileResolution(tempVideoPath) const fps = await getVideoFileFPS(tempVideoPath, probe) const duration = await getDurationFromVideoFile(tempVideoPath, probe)