From 21c917b38bcb2eb3e541f745a0a6d8456e3d57b1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 9 Apr 2021 15:51:15 +0200 Subject: Fix print transcode command script --- server/tests/cli/print-transcode-command.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 () { const command = await execCLI(`npm run print-transcode-command -- ${fixturePath} -r ${resolution}`) const targetBitrate = Math.min(getTargetBitrate(resolution, fps, VIDEO_TRANSCODING_FPS), bitrate) - expect(command).to.includes(`-y -acodec aac -vcodec libx264 -filter:v scale=w=trunc(oh*a/2)*2:h=${resolution}`) + expect(command).to.includes(`-vf scale=w=-2:h=${resolution}`) + expect(command).to.includes(`-y -acodec aac -vcodec libx264`) expect(command).to.includes('-f mp4') expect(command).to.includes('-movflags faststart') expect(command).to.includes('-b:a 256k') -- cgit v1.2.3