aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-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