Fix video import transcoding

pull/4696/head
Chocobozzz 2021-12-23 13:40:47 +01:00
parent dbd9fb44dd
commit 5354af75b3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ async function processFile (downloader: () => Promise<string>, videoImport: MVid
const probe = await ffprobePromise(tempVideoPath) const probe = await ffprobePromise(tempVideoPath)
const { resolution } = await isAudioFile(tempVideoPath, probe) 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 fps = await getVideoFileFPS(tempVideoPath, probe)
const duration = await getDurationFromVideoFile(tempVideoPath, probe) const duration = await getDurationFromVideoFile(tempVideoPath, probe)