X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fcli%2Fprint-transcode-command.ts;h=2d7255db7a281cc4b47ca58cae029d91e96bd224;hb=e54bd458c1eec9a23730b3cc3c926568f3b02186;hp=4a7988d4deaa4ecf823b485269fdbe784ad39753;hpb=7185dab3ff509cec9f03a15d826625b5a1bd0ada;p=github%2FChocobozzz%2FPeerTube.git 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')