]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix video import transcoding
authorChocobozzz <me@florianbigard.com>
Thu, 23 Dec 2021 12:40:47 +0000 (13:40 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 23 Dec 2021 12:40:47 +0000 (13:40 +0100)
server/lib/job-queue/handlers/video-import.ts

index 11ccd47edd6cbbe51cb971e807cbd236386bb976..beb78b4a61316af86ed12bfdd1f1aebbd67c17a1 100644 (file)
@@ -118,8 +118,8 @@ async function processFile (downloader: () => Promise<string>, 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)