diff options
Diffstat (limited to 'shared/core-utils')
-rw-r--r-- | shared/core-utils/videos/bitrate.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/core-utils/videos/bitrate.ts b/shared/core-utils/videos/bitrate.ts index a6712f8a4..18c6e2f6c 100644 --- a/shared/core-utils/videos/bitrate.ts +++ b/shared/core-utils/videos/bitrate.ts | |||
@@ -6,6 +6,7 @@ type BitPerPixel = { [ id in VideoResolution ]: number } | |||
6 | 6 | ||
7 | const averageBitPerPixel: BitPerPixel = { | 7 | const averageBitPerPixel: BitPerPixel = { |
8 | [VideoResolution.H_NOVIDEO]: 0, | 8 | [VideoResolution.H_NOVIDEO]: 0, |
9 | [VideoResolution.H_144P]: 0.19, | ||
9 | [VideoResolution.H_240P]: 0.17, | 10 | [VideoResolution.H_240P]: 0.17, |
10 | [VideoResolution.H_360P]: 0.15, | 11 | [VideoResolution.H_360P]: 0.15, |
11 | [VideoResolution.H_480P]: 0.12, | 12 | [VideoResolution.H_480P]: 0.12, |
@@ -17,6 +18,7 @@ const averageBitPerPixel: BitPerPixel = { | |||
17 | 18 | ||
18 | const maxBitPerPixel: BitPerPixel = { | 19 | const maxBitPerPixel: BitPerPixel = { |
19 | [VideoResolution.H_NOVIDEO]: 0, | 20 | [VideoResolution.H_NOVIDEO]: 0, |
21 | [VideoResolution.H_144P]: 0.32, | ||
20 | [VideoResolution.H_240P]: 0.29, | 22 | [VideoResolution.H_240P]: 0.29, |
21 | [VideoResolution.H_360P]: 0.26, | 23 | [VideoResolution.H_360P]: 0.26, |
22 | [VideoResolution.H_480P]: 0.22, | 24 | [VideoResolution.H_480P]: 0.22, |
@@ -73,6 +75,7 @@ function calculateBitrate (options: { | |||
73 | VideoResolution.H_480P, | 75 | VideoResolution.H_480P, |
74 | VideoResolution.H_360P, | 76 | VideoResolution.H_360P, |
75 | VideoResolution.H_240P, | 77 | VideoResolution.H_240P, |
78 | VideoResolution.H_144P, | ||
76 | VideoResolution.H_NOVIDEO | 79 | VideoResolution.H_NOVIDEO |
77 | ] | 80 | ] |
78 | 81 | ||