diff options
Diffstat (limited to 'shared/models/videos/video-resolution.enum.ts')
-rw-r--r-- | shared/models/videos/video-resolution.enum.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/models/videos/video-resolution.enum.ts b/shared/models/videos/video-resolution.enum.ts index 571ab5d8f..dcd55dad8 100644 --- a/shared/models/videos/video-resolution.enum.ts +++ b/shared/models/videos/video-resolution.enum.ts | |||
@@ -81,7 +81,7 @@ export function getTargetBitrate (resolution: number, fps: number, fpsTranscodin | |||
81 | // Example outputs: | 81 | // Example outputs: |
82 | // 1080p10: 2420 kbps, 1080p30: 3300 kbps, 1080p60: 4620 kbps | 82 | // 1080p10: 2420 kbps, 1080p30: 3300 kbps, 1080p60: 4620 kbps |
83 | // 720p10: 1283 kbps, 720p30: 1750 kbps, 720p60: 2450 kbps | 83 | // 720p10: 1283 kbps, 720p30: 1750 kbps, 720p60: 2450 kbps |
84 | return baseBitrate + (fps - fpsTranscodingConstants.AVERAGE) * (maxBitrateDifference / maxFpsDifference) | 84 | return Math.floor(baseBitrate + (fps - fpsTranscodingConstants.AVERAGE) * (maxBitrateDifference / maxFpsDifference)) |
85 | } | 85 | } |
86 | 86 | ||
87 | /** | 87 | /** |