ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix video import transcoding
Chocobozzz5354af75b372
diff --git a/server/lib/job-queue/handlers/video-import.ts b/server/lib/job-queue/handlers/video-import.tsindex 11ccd47edd..beb78b4a61 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<string>, videoImport: MVidconst 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)