aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-01-17 14:03:32 +0100
committerChocobozzz <me@florianbigard.com>2019-01-17 14:03:32 +0100
commitef04ae20fe4155f516ab41959e312de093f98d0e (patch)
treea10f158e6ef01ecf0ad035f3513ae13eb8adcfd8
parentaa87909287c4f4d38696244e32828265b040c7d5 (diff)
downloadPeerTube-ef04ae20fe4155f516ab41959e312de093f98d0e.tar.gz
PeerTube-ef04ae20fe4155f516ab41959e312de093f98d0e.tar.zst
PeerTube-ef04ae20fe4155f516ab41959e312de093f98d0e.zip
Prefer avg_frame_rate to fetch video FPS
-rw-r--r--server/helpers/ffmpeg-utils.ts2
1 files changed, 1 insertions, 1 deletions
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) {
41async function getVideoFileFPS (path: string) { 41async function getVideoFileFPS (path: string) {
42 const videoStream = await getVideoFileStream(path) 42 const videoStream = await getVideoFileStream(path)
43 43
44 for (const key of [ 'r_frame_rate' , 'avg_frame_rate' ]) { 44 for (const key of [ 'avg_frame_rate', 'r_frame_rate' ]) {
45 const valuesText: string = videoStream[key] 45 const valuesText: string = videoStream[key]
46 if (!valuesText) continue 46 if (!valuesText) continue
47 47