Fix transcoding

This commit is contained in:
Chocobozzz 2020-01-29 16:54:03 +01:00
parent 14aa85562c
commit c7f36e4f48
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 20 additions and 12 deletions

View file

@ -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)
}
}
})