import { VideoStreamingPlaylistType } from '../../../../shared/models/videos/video-streaming-playlist.type'
import { join } from 'path'
import { DEFAULT_AUDIO_RESOLUTION } from '../../../initializers/constants'
-import { getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution, audio, getVideoFileSize } from '@server/helpers/ffmpeg-utils'
+import { getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution, audio, getVideoStreamSize } from '@server/helpers/ffmpeg-utils'
const expect = chai.expect
it('Should upload a video and transcode it', async function () {
this.timeout(120000)
- const resUpload = await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'audio only'})
+ const resUpload = await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'audio only' })
videoUUID = resUpload.body.video.uuid
await waitJobs(servers)
expect(audioStream[ 'codec_name' ]).to.be.equal('aac')
expect(audioStream[ 'bit_rate' ]).to.be.at.most(384 * 8000)
- const size = await getVideoFileSize(path)
+ const size = await getVideoStreamSize(path)
expect(size.height).to.equal(0)
expect(size.width).to.equal(0)
}