diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-23 13:40:47 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-23 13:40:47 +0100 |
commit | 5354af75b372cf079384d44592a58f1db96982f6 (patch) | |
tree | dbcc9297c40621aeed6b1b6e846eeb2a8d0fc67a /server | |
parent | dbd9fb44ddd880622265097bd7baf4dd71ea0861 (diff) | |
download | PeerTube-5354af75b372cf079384d44592a58f1db96982f6.tar.gz PeerTube-5354af75b372cf079384d44592a58f1db96982f6.tar.zst PeerTube-5354af75b372cf079384d44592a58f1db96982f6.zip |
Fix video import transcoding
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/job-queue/handlers/video-import.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<string>, videoImport: MVid | |||
118 | const probe = await ffprobePromise(tempVideoPath) | 118 | const probe = await ffprobePromise(tempVideoPath) |
119 | 119 | ||
120 | const { resolution } = await isAudioFile(tempVideoPath, probe) | 120 | const { resolution } = await isAudioFile(tempVideoPath, probe) |
121 | ? await getVideoFileResolution(tempVideoPath) | 121 | ? { resolution: VideoResolution.H_NOVIDEO } |
122 | : { resolution: VideoResolution.H_NOVIDEO } | 122 | : await getVideoFileResolution(tempVideoPath) |
123 | 123 | ||
124 | const fps = await getVideoFileFPS(tempVideoPath, probe) | 124 | const fps = await getVideoFileFPS(tempVideoPath, probe) |
125 | const duration = await getDurationFromVideoFile(tempVideoPath, probe) | 125 | const duration = await getDurationFromVideoFile(tempVideoPath, probe) |