aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-05 10:53:04 +0200
committerChocobozzz <chocobozzz@cpy.re>2023-05-09 08:57:34 +0200
commite7d8e2b245491c0a8e008fb570037506d729ff04 (patch)
treed850a7f82cc02946f2e87b306d0b281cef5eb73d /shared/core-utils
parentdd3f99434cc3cb7226d33ffcd888c91d0ce150a9 (diff)
downloadPeerTube-e7d8e2b245491c0a8e008fb570037506d729ff04.tar.gz
PeerTube-e7d8e2b245491c0a8e008fb570037506d729ff04.tar.zst
PeerTube-e7d8e2b245491c0a8e008fb570037506d729ff04.zip
Fix audio transcoding copy
Diffstat (limited to 'shared/core-utils')
-rw-r--r--shared/core-utils/videos/bitrate.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/shared/core-utils/videos/bitrate.ts b/shared/core-utils/videos/bitrate.ts
index 30d22df09..6be027826 100644
--- a/shared/core-utils/videos/bitrate.ts
+++ b/shared/core-utils/videos/bitrate.ts
@@ -40,7 +40,7 @@ const maxBitPerPixel: BitPerPixel = {
40 [VideoResolution.H_4K]: 0.14 40 [VideoResolution.H_4K]: 0.14
41} 41}
42 42
43function getAverageBitrate (options: { 43function getAverageTheoreticalBitrate (options: {
44 resolution: VideoResolution 44 resolution: VideoResolution
45 ratio: number 45 ratio: number
46 fps: number 46 fps: number
@@ -51,7 +51,7 @@ function getAverageBitrate (options: {
51 return targetBitrate 51 return targetBitrate
52} 52}
53 53
54function getMaxBitrate (options: { 54function getMaxTheoreticalBitrate (options: {
55 resolution: VideoResolution 55 resolution: VideoResolution
56 ratio: number 56 ratio: number
57 fps: number 57 fps: number
@@ -62,7 +62,7 @@ function getMaxBitrate (options: {
62 return targetBitrate 62 return targetBitrate
63} 63}
64 64
65function getMinLimitBitrate (options: { 65function getMinTheoreticalBitrate (options: {
66 resolution: VideoResolution 66 resolution: VideoResolution
67 ratio: number 67 ratio: number
68 fps: number 68 fps: number
@@ -76,9 +76,9 @@ function getMinLimitBitrate (options: {
76// --------------------------------------------------------------------------- 76// ---------------------------------------------------------------------------
77 77
78export { 78export {
79 getAverageBitrate, 79 getAverageTheoreticalBitrate,
80 getMaxBitrate, 80 getMaxTheoreticalBitrate,
81 getMinLimitBitrate 81 getMinTheoreticalBitrate
82} 82}
83 83
84// --------------------------------------------------------------------------- 84// ---------------------------------------------------------------------------