🎥 Make videos programmatically with React
make tests cover forSeamlessAacConcatenation=false, fix separate audio description
Jonny Burger8942fa736a43
diff --git a/packages/renderer/src/options/separate-audio.tsx b/packages/renderer/src/options/separate-audio.tsxindex a35ed3278c..dc64880108 100644--- a/packages/renderer/src/options/separate-audio.tsx+++ b/packages/renderer/src/options/separate-audio.tsx@@ -6,11 +6,8 @@ const cliFlag = 'separate-audio-to';export const separateAudioOption = {cliFlag,- description:- () => `If set, the audio will not be included in the main output but rendered- as a separate file at the location you pass. It is recommended to use an- absolute path. If a relative path is passed, it is relative to the- Remotion Root.`,+ description: () =>+ `If set, the audio will not be included in the main output but rendered as a separate file at the location you pass. It is recommended to use an absolute path. If a relative path is passed, it is relative to the Remotion Root.`,docLink: 'https://remotion.dev/docs/renderer/render-media',getValue: ({commandLine}) => {if (commandLine[cliFlag]) {diff --git a/packages/renderer/src/test/ffmpeg-filters.test.ts b/packages/renderer/src/test/ffmpeg-filters.test.tsindex acd3868aca..6511295fc4 100644--- a/packages/renderer/src/test/ffmpeg-filters.test.ts+++ b/packages/renderer/src/test/ffmpeg-filters.test.ts@@ -88,12 +88,12 @@ test('Should add padding if audio is too short', () => {durationInFrames: 100,channels: 1,assetDuration: 1,- forSeamlessAacConcatenation: true,+ forSeamlessAacConcatenation: false,}),).toEqual({filter:- '[0:a]aformat=sample_fmts=s32:sample_rates=48000,atrim=298666.6666666666us:1000000us[a0]',- pad_end: 'apad=pad_len=126336',+ '[0:a]aformat=sample_fmts=s32:sample_rates=48000,atrim=333333.3333333333us:1000000us[a0]',+ pad_end: 'apad=pad_len=128000',pad_start: null,});});