diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-26 16:25:36 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-26 16:25:36 +0100 |
commit | 52201311e1973a12960466232d4dec861e8258ee (patch) | |
tree | 9203bfec042a3e5d46e67170433b079e31239e8a /server/tests/api/videos/audio-only.ts | |
parent | 08eb3dca8257ad121ad74b180dc19c75466e221d (diff) | |
download | PeerTube-52201311e1973a12960466232d4dec861e8258ee.tar.gz PeerTube-52201311e1973a12960466232d4dec861e8258ee.tar.zst PeerTube-52201311e1973a12960466232d4dec861e8258ee.zip |
Add codec information in HLS playlist
Diffstat (limited to 'server/tests/api/videos/audio-only.ts')
-rw-r--r-- | server/tests/api/videos/audio-only.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/videos/audio-only.ts b/server/tests/api/videos/audio-only.ts index f5b6a26e5..f12d730cc 100644 --- a/server/tests/api/videos/audio-only.ts +++ b/server/tests/api/videos/audio-only.ts | |||
@@ -22,7 +22,7 @@ import { VideoDetails } from '../../../../shared/models/videos' | |||
22 | import { VideoStreamingPlaylistType } from '../../../../shared/models/videos/video-streaming-playlist.type' | 22 | import { VideoStreamingPlaylistType } from '../../../../shared/models/videos/video-streaming-playlist.type' |
23 | import { join } from 'path' | 23 | import { join } from 'path' |
24 | import { DEFAULT_AUDIO_RESOLUTION } from '../../../initializers/constants' | 24 | import { DEFAULT_AUDIO_RESOLUTION } from '../../../initializers/constants' |
25 | import { getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution, audio, getVideoFileSize } from '@server/helpers/ffmpeg-utils' | 25 | import { getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution, audio, getVideoStreamSize } from '@server/helpers/ffmpeg-utils' |
26 | 26 | ||
27 | const expect = chai.expect | 27 | const expect = chai.expect |
28 | 28 | ||
@@ -96,7 +96,7 @@ describe('Test audio only video transcoding', function () { | |||
96 | expect(audioStream[ 'codec_name' ]).to.be.equal('aac') | 96 | expect(audioStream[ 'codec_name' ]).to.be.equal('aac') |
97 | expect(audioStream[ 'bit_rate' ]).to.be.at.most(384 * 8000) | 97 | expect(audioStream[ 'bit_rate' ]).to.be.at.most(384 * 8000) |
98 | 98 | ||
99 | const size = await getVideoFileSize(path) | 99 | const size = await getVideoStreamSize(path) |
100 | expect(size.height).to.equal(0) | 100 | expect(size.height).to.equal(0) |
101 | expect(size.width).to.equal(0) | 101 | expect(size.width).to.equal(0) |
102 | } | 102 | } |