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:
77e0851
)
Improve 4k resolution bitrate
author
Chocobozzz
<me@florianbigard.com>
Thu, 5 Dec 2019 14:12:58 +0000
(15:12 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Thu, 5 Dec 2019 14:12:58 +0000
(15:12 +0100)
shared/models/videos/video-resolution.enum.ts
patch
|
blob
|
history
diff --git
a/shared/models/videos/video-resolution.enum.ts
b/shared/models/videos/video-resolution.enum.ts
index 98ab3eed2466370c21ae1e82782d5e8c05192e60..06e0779617f908386d839c6c8b9e7ed2246fc651 100644
(file)
--- a/
shared/models/videos/video-resolution.enum.ts
+++ b/
shared/models/videos/video-resolution.enum.ts
@@
-46,12
+46,12
@@
function getBaseBitrate (resolution: VideoResolution) {
case VideoResolution.H_1080P:
// quality according to Google Live Encoder: 3000 - 6000 Kbps
// Quality according to YouTube Video Info: 5081 Kbps
- return 5
8
00 * 1000
+ return 5
2
00 * 1000
case VideoResolution.H_4K: // fallthrough
default:
// quality according to Google Live Encoder: 13000 - 34000 Kbps
- return
15
000 * 1000
+ return
22
000 * 1000
}
}