aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-09 15:51:15 +0200
committerChocobozzz <chocobozzz@cpy.re>2021-04-09 15:53:18 +0200
commit21c917b38bcb2eb3e541f745a0a6d8456e3d57b1 (patch)
tree1a98a598cdcdc1e714821d5ce362f62212d45700
parenta60696ab185406700a5277edae54016b0add7b89 (diff)
downloadPeerTube-21c917b38bcb2eb3e541f745a0a6d8456e3d57b1.tar.gz
PeerTube-21c917b38bcb2eb3e541f745a0a6d8456e3d57b1.tar.zst
PeerTube-21c917b38bcb2eb3e541f745a0a6d8456e3d57b1.zip
Fix print transcode command script
-rw-r--r--server/tests/cli/print-transcode-command.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/tests/cli/print-transcode-command.ts b/server/tests/cli/print-transcode-command.ts
index 4a7988d4d..2d7255db7 100644
--- a/server/tests/cli/print-transcode-command.ts
+++ b/server/tests/cli/print-transcode-command.ts
@@ -22,7 +22,8 @@ describe('Test create transcoding jobs', function () {
22 const command = await execCLI(`npm run print-transcode-command -- ${fixturePath} -r ${resolution}`) 22 const command = await execCLI(`npm run print-transcode-command -- ${fixturePath} -r ${resolution}`)
23 const targetBitrate = Math.min(getTargetBitrate(resolution, fps, VIDEO_TRANSCODING_FPS), bitrate) 23 const targetBitrate = Math.min(getTargetBitrate(resolution, fps, VIDEO_TRANSCODING_FPS), bitrate)
24 24
25 expect(command).to.includes(`-y -acodec aac -vcodec libx264 -filter:v scale=w=trunc(oh*a/2)*2:h=${resolution}`) 25 expect(command).to.includes(`-vf scale=w=-2:h=${resolution}`)
26 expect(command).to.includes(`-y -acodec aac -vcodec libx264`)
26 expect(command).to.includes('-f mp4') 27 expect(command).to.includes('-f mp4')
27 expect(command).to.includes('-movflags faststart') 28 expect(command).to.includes('-movflags faststart')
28 expect(command).to.includes('-b:a 256k') 29 expect(command).to.includes('-b:a 256k')