projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa87909
)
Prefer avg_frame_rate to fetch video FPS
author
Chocobozzz
<me@florianbigard.com>
Thu, 17 Jan 2019 13:03:32 +0000
(14:03 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Thu, 17 Jan 2019 13:03:32 +0000
(14:03 +0100)
server/helpers/ffmpeg-utils.ts
patch
|
blob
|
history
diff --git
a/server/helpers/ffmpeg-utils.ts
b/server/helpers/ffmpeg-utils.ts
index c7296054daa6c365af98f2f287322921203b8d9b..132f4690ec715063fa1abcdd56e0450a553cbe2c 100644
(file)
--- 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