aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/plugins')
-rw-r--r--server/tests/plugins/plugin-transcoding.ts40
1 files changed, 38 insertions, 2 deletions
diff --git a/server/tests/plugins/plugin-transcoding.ts b/server/tests/plugins/plugin-transcoding.ts
index ecea21e69..415705ca1 100644
--- a/server/tests/plugins/plugin-transcoding.ts
+++ b/server/tests/plugins/plugin-transcoding.ts
@@ -119,8 +119,8 @@ describe('Test transcoding plugins', function () {
119 const res = await getConfig(server.url) 119 const res = await getConfig(server.url)
120 const config = res.body as ServerConfig 120 const config = res.body as ServerConfig
121 121
122 expect(config.transcoding.availableProfiles).to.have.members([ 'default', 'low-vod' ]) 122 expect(config.transcoding.availableProfiles).to.have.members([ 'default', 'low-vod', 'video-filters-vod', 'input-options-vod' ])
123 expect(config.live.transcoding.availableProfiles).to.have.members([ 'default', 'low-live' ]) 123 expect(config.live.transcoding.availableProfiles).to.have.members([ 'default', 'low-live', 'input-options-live' ])
124 }) 124 })
125 125
126 it('Should not use the plugin profile if not chosen by the admin', async function () { 126 it('Should not use the plugin profile if not chosen by the admin', async function () {
@@ -143,6 +143,28 @@ describe('Test transcoding plugins', function () {
143 await checkVideoFPS(videoUUID, 'below', 12) 143 await checkVideoFPS(videoUUID, 'below', 12)
144 }) 144 })
145 145
146 it('Should apply video filters in vod profile', async function () {
147 this.timeout(120000)
148
149 await updateConf(server, 'video-filters-vod', 'default')
150
151 const videoUUID = (await uploadVideoAndGetId({ server, videoName: 'video' })).uuid
152 await waitJobs([ server ])
153
154 await checkVideoFPS(videoUUID, 'below', 12)
155 })
156
157 it('Should apply input options in vod profile', async function () {
158 this.timeout(120000)
159
160 await updateConf(server, 'input-options-vod', 'default')
161
162 const videoUUID = (await uploadVideoAndGetId({ server, videoName: 'video' })).uuid
163 await waitJobs([ server ])
164
165 await checkVideoFPS(videoUUID, 'below', 6)
166 })
167
146 it('Should not use the plugin profile if not chosen by the admin', async function () { 168 it('Should not use the plugin profile if not chosen by the admin', async function () {
147 this.timeout(120000) 169 this.timeout(120000)
148 170
@@ -169,6 +191,20 @@ describe('Test transcoding plugins', function () {
169 await checkLiveFPS(liveVideoId, 'below', 12) 191 await checkLiveFPS(liveVideoId, 'below', 12)
170 }) 192 })
171 193
194 it('Should apply the input options on live profile', async function () {
195 this.timeout(120000)
196
197 await updateConf(server, 'low-vod', 'input-options-live')
198
199 const liveVideoId = await createLiveWrapper(server)
200
201 await sendRTMPStreamInVideo(server.url, server.accessToken, liveVideoId, 'video_short2.webm')
202 await waitUntilLivePublished(server.url, server.accessToken, liveVideoId)
203 await waitJobs([ server ])
204
205 await checkLiveFPS(liveVideoId, 'below', 6)
206 })
207
172 it('Should default to the default profile if the specified profile does not exist', async function () { 208 it('Should default to the default profile if the specified profile does not exist', async function () {
173 this.timeout(120000) 209 this.timeout(120000)
174 210