diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-29 08:43:53 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-29 08:44:36 +0100 |
commit | b3eafc5fc5ffbb12089845ffe5da0329adb70093 (patch) | |
tree | 358771007db153671e14d3714449fa82b0b832d5 /server/tests/plugins/plugin-transcoding.ts | |
parent | 149e4cc597777f2fcf9a62639afeeb0e168cedb2 (diff) | |
download | PeerTube-b3eafc5fc5ffbb12089845ffe5da0329adb70093.tar.gz PeerTube-b3eafc5fc5ffbb12089845ffe5da0329adb70093.tar.zst PeerTube-b3eafc5fc5ffbb12089845ffe5da0329adb70093.zip |
Reduce transcoding overhead by disabling resolutions
Diffstat (limited to 'server/tests/plugins/plugin-transcoding.ts')
-rw-r--r-- | server/tests/plugins/plugin-transcoding.ts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/server/tests/plugins/plugin-transcoding.ts b/server/tests/plugins/plugin-transcoding.ts index 96ff4c2fe..90ef01b92 100644 --- a/server/tests/plugins/plugin-transcoding.ts +++ b/server/tests/plugins/plugin-transcoding.ts | |||
@@ -44,12 +44,24 @@ function updateConf (server: ServerInfo, vodProfile: string, liveProfile: string | |||
44 | }, | 44 | }, |
45 | webtorrent: { | 45 | webtorrent: { |
46 | enabled: true | 46 | enabled: true |
47 | }, | ||
48 | resolutions: { | ||
49 | '240p': true, | ||
50 | '360p': false, | ||
51 | '480p': false, | ||
52 | '720p': true | ||
47 | } | 53 | } |
48 | }, | 54 | }, |
49 | live: { | 55 | live: { |
50 | transcoding: { | 56 | transcoding: { |
51 | profile: liveProfile, | 57 | profile: liveProfile, |
52 | enabled: true | 58 | enabled: true, |
59 | resolutions: { | ||
60 | '240p': true, | ||
61 | '360p': false, | ||
62 | '480p': false, | ||
63 | '720p': true | ||
64 | } | ||
53 | } | 65 | } |
54 | } | 66 | } |
55 | }) | 67 | }) |