- const { videoFileResolution } = await getVideoFileResolution(tempVideoPath)
- const fps = await getVideoFileFPS(tempVideoPath)
- const duration = await getDurationFromVideoFile(tempVideoPath)
+ const probe = await ffprobePromise(tempVideoPath)
+
+ const { resolution } = await isAudioFile(tempVideoPath, probe)
+ ? { resolution: VideoResolution.H_NOVIDEO }
+ : await getVideoFileResolution(tempVideoPath)
+
+ const fps = await getVideoFileFPS(tempVideoPath, probe)
+ const duration = await getDurationFromVideoFile(tempVideoPath, probe)