From c7f36e4f485d92191b9d04c6a880724b02fa220b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 29 Jan 2020 16:54:03 +0100 Subject: Fix transcoding --- server/tests/api/videos/video-transcoder.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'server/tests/api/videos/video-transcoder.ts') diff --git a/server/tests/api/videos/video-transcoder.ts b/server/tests/api/videos/video-transcoder.ts index 0104c94fc..55eb76b3b 100644 --- a/server/tests/api/videos/video-transcoder.ts +++ b/server/tests/api/videos/video-transcoder.ts @@ -423,7 +423,7 @@ describe('Test video transcoding', function () { let tempFixturePath: string { - tempFixturePath = await generateVideoWithFramerate() + tempFixturePath = await generateVideoWithFramerate(59) const fps = await getVideoFileFPS(tempFixturePath) expect(fps).to.be.equal(59) @@ -443,10 +443,18 @@ describe('Test video transcoding', function () { const res = await getVideosList(server.url) const video = res.body.data.find(v => v.name === videoAttributes.name) - const path = join(root(), 'test' + servers[1].internalServerNumber, 'videos', video.uuid + '-240.mp4') - const fps = await getVideoFileFPS(path) - expect(fps).to.be.equal(25) + { + const path = join(root(), 'test' + servers[ 1 ].internalServerNumber, 'videos', video.uuid + '-240.mp4') + const fps = await getVideoFileFPS(path) + expect(fps).to.be.equal(25) + } + + { + const path = join(root(), 'test' + servers[ 1 ].internalServerNumber, 'videos', video.uuid + '-720.mp4') + const fps = await getVideoFileFPS(path) + expect(fps).to.be.equal(59) + } } }) -- cgit v1.2.3