aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/video-resolution.enum.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-08 17:47:19 +0200
committerChocobozzz <me@florianbigard.com>2018-10-08 17:47:19 +0200
commitc1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac (patch)
treed11cc73c8943c3261c04442a7eed5caf68e86e14 /shared/models/videos/video-resolution.enum.ts
parent9f1ddd249652c1e35b45db33885a00a005f9b059 (diff)
downloadPeerTube-c1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac.tar.gz
PeerTube-c1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac.tar.zst
PeerTube-c1c86c1599acf8aad71fb7d7f312c43d6d1fa5ac.zip
Try to cache video_high_bitrate_1080p in travis
Diffstat (limited to 'shared/models/videos/video-resolution.enum.ts')
-rw-r--r--shared/models/videos/video-resolution.enum.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/shared/models/videos/video-resolution.enum.ts b/shared/models/videos/video-resolution.enum.ts
index 3c52bbf98..e40e5b58b 100644
--- a/shared/models/videos/video-resolution.enum.ts
+++ b/shared/models/videos/video-resolution.enum.ts
@@ -34,22 +34,22 @@ export function getTargetBitrate (resolution: VideoResolution, fps: number,
34 // quality according to Google Live Encoder: 2,250 - 6,000 Kbps 34 // quality according to Google Live Encoder: 2,250 - 6,000 Kbps
35 // Quality according to YouTube Video Info: 2634 Kbps 35 // Quality according to YouTube Video Info: 2634 Kbps
36 return 2600 * 1000 36 return 2600 * 1000
37 } else {
38 // quality according to Google Live Encoder: 1,500 - 4,000 Kbps
39 // Quality according to YouTube Video Info: 1752 Kbps
40 return 1750 * 1000
41 } 37 }
38
39 // quality according to Google Live Encoder: 1,500 - 4,000 Kbps
40 // Quality according to YouTube Video Info: 1752 Kbps
41 return 1750 * 1000
42 case VideoResolution.H_1080P: // fallthrough 42 case VideoResolution.H_1080P: // fallthrough
43 default: 43 default:
44 if (fps === fpsTranscodingConstants.MAX) { 44 if (fps === fpsTranscodingConstants.MAX) {
45 // quality according to Google Live Encoder: 3000 - 6000 Kbps 45 // quality according to Google Live Encoder: 3000 - 6000 Kbps
46 // Quality according to YouTube Video Info: 4387 Kbps 46 // Quality according to YouTube Video Info: 4387 Kbps
47 return 4400 * 1000 47 return 4400 * 1000
48 } else {
49 // quality according to Google Live Encoder: 3000 - 6000 Kbps
50 // Quality according to YouTube Video Info: 3277 Kbps
51 return 3300 * 1000
52 } 48 }
49
50 // quality according to Google Live Encoder: 3000 - 6000 Kbps
51 // Quality according to YouTube Video Info: 3277 Kbps
52 return 3300 * 1000
53 } 53 }
54} 54}
55 55