aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-29 16:54:03 +0100
committerChocobozzz <me@florianbigard.com>2020-01-29 16:54:52 +0100
commitc7f36e4f485d92191b9d04c6a880724b02fa220b (patch)
treeaccf79acae92c274d10c1e248ef1706e961979eb /server/tests
parent14aa85562cb83559d20105b4ddb4bf8b2340578a (diff)
downloadPeerTube-c7f36e4f485d92191b9d04c6a880724b02fa220b.tar.gz
PeerTube-c7f36e4f485d92191b9d04c6a880724b02fa220b.tar.zst
PeerTube-c7f36e4f485d92191b9d04c6a880724b02fa220b.zip
Fix transcoding
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/videos/video-transcoder.ts16
1 files changed, 12 insertions, 4 deletions
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 () {
423 let tempFixturePath: string 423 let tempFixturePath: string
424 424
425 { 425 {
426 tempFixturePath = await generateVideoWithFramerate() 426 tempFixturePath = await generateVideoWithFramerate(59)
427 427
428 const fps = await getVideoFileFPS(tempFixturePath) 428 const fps = await getVideoFileFPS(tempFixturePath)
429 expect(fps).to.be.equal(59) 429 expect(fps).to.be.equal(59)
@@ -443,10 +443,18 @@ describe('Test video transcoding', function () {
443 const res = await getVideosList(server.url) 443 const res = await getVideosList(server.url)
444 444
445 const video = res.body.data.find(v => v.name === videoAttributes.name) 445 const video = res.body.data.find(v => v.name === videoAttributes.name)
446 const path = join(root(), 'test' + servers[1].internalServerNumber, 'videos', video.uuid + '-240.mp4')
447 const fps = await getVideoFileFPS(path)
448 446
449 expect(fps).to.be.equal(25) 447 {
448 const path = join(root(), 'test' + servers[ 1 ].internalServerNumber, 'videos', video.uuid + '-240.mp4')
449 const fps = await getVideoFileFPS(path)
450 expect(fps).to.be.equal(25)
451 }
452
453 {
454 const path = join(root(), 'test' + servers[ 1 ].internalServerNumber, 'videos', video.uuid + '-720.mp4')
455 const fps = await getVideoFileFPS(path)
456 expect(fps).to.be.equal(59)
457 }
450 } 458 }
451 }) 459 })
452 460