From: Chocobozzz Date: Thu, 17 Jan 2019 13:03:32 +0000 (+0100) Subject: Prefer avg_frame_rate to fetch video FPS X-Git-Tag: v1.2.0-rc.1~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ef04ae20fe4155f516ab41959e312de093f98d0e;p=oweals%2Fpeertube.git Prefer avg_frame_rate to fetch video FPS --- diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index c7296054d..132f4690e 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts @@ -41,7 +41,7 @@ async function getVideoFileResolution (path: string) { async function getVideoFileFPS (path: string) { const videoStream = await getVideoFileStream(path) - for (const key of [ 'r_frame_rate' , 'avg_frame_rate' ]) { + for (const key of [ 'avg_frame_rate', 'r_frame_rate' ]) { const valuesText: string = videoStream[key] if (!valuesText) continue