aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-05 15:12:58 +0100
committerChocobozzz <me@florianbigard.com>2019-12-05 15:12:58 +0100
commitf56ebb3616606e678b25d8064696c75655dcd2ed (patch)
tree0de54103e32b27a46267b853f64724872fde03de /shared/models/videos
parent77e0851758595de2642b405cff8960f02ced60eb (diff)
downloadPeerTube-f56ebb3616606e678b25d8064696c75655dcd2ed.tar.gz
PeerTube-f56ebb3616606e678b25d8064696c75655dcd2ed.tar.zst
PeerTube-f56ebb3616606e678b25d8064696c75655dcd2ed.zip
Improve 4k resolution bitrate
Diffstat (limited to 'shared/models/videos')
-rw-r--r--shared/models/videos/video-resolution.enum.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/models/videos/video-resolution.enum.ts b/shared/models/videos/video-resolution.enum.ts
index 98ab3eed2..06e077961 100644
--- a/shared/models/videos/video-resolution.enum.ts
+++ b/shared/models/videos/video-resolution.enum.ts
@@ -46,12 +46,12 @@ function getBaseBitrate (resolution: VideoResolution) {
46 case VideoResolution.H_1080P: 46 case VideoResolution.H_1080P:
47 // quality according to Google Live Encoder: 3000 - 6000 Kbps 47 // quality according to Google Live Encoder: 3000 - 6000 Kbps
48 // Quality according to YouTube Video Info: 5081 Kbps 48 // Quality according to YouTube Video Info: 5081 Kbps
49 return 5800 * 1000 49 return 5200 * 1000
50 50
51 case VideoResolution.H_4K: // fallthrough 51 case VideoResolution.H_4K: // fallthrough
52 default: 52 default:
53 // quality according to Google Live Encoder: 13000 - 34000 Kbps 53 // quality according to Google Live Encoder: 13000 - 34000 Kbps
54 return 15000 * 1000 54 return 22000 * 1000
55 } 55 }
56} 56}
57 57