diff --git a/package-lock.json b/package-lock.json index d9411ad..97a1a7e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "morning-report", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "morning-report", - "version": "0.0.1", + "version": "0.0.2", "license": "MIT", "dependencies": { "json5": "2.2.3", diff --git a/package.json b/package.json index 3e660be..e1f6f5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "morning-report", - "version": "0.0.1", + "version": "0.0.2", "description": "Procedurally generates a radio weather report", "keywords": [ "weather", diff --git a/src/stitcher.ts b/src/stitcher.ts index 744a82a..56d9cf3 100644 --- a/src/stitcher.ts +++ b/src/stitcher.ts @@ -26,7 +26,7 @@ async function Stitcher(files: string[]) { const args: string[] = []; files.forEach(f => args.push('-i', f)); args.push('-filter_complex', `[0:a][1:a][2:a]concat=n=${files.length}:v=0:a=1[out]`); - args.push('-map', '[out]', '-ar', '44100', '-ac', '2', '-c:a', 'pcm_s16le', 'output.wav'); + args.push('-map', '[out]', '-ar', '44100', '-ac', '2', '-c:a', 'pcm_s16le', 'output.wav', '-y'); await ffmpeg(args, files.length); } diff --git a/test/stitcher.test.ts b/test/stitcher.test.ts index 069283f..f9d6d2d 100644 --- a/test/stitcher.test.ts +++ b/test/stitcher.test.ts @@ -41,7 +41,8 @@ describe('stitcher', () => { '2', '-c:a', 'pcm_s16le', - 'output.wav' + 'output.wav', + '-y' ]); }); @@ -62,7 +63,8 @@ describe('stitcher', () => { '2', '-c:a', 'pcm_s16le', - 'output.wav' + 'output.wav', + '-y' ]); }); @@ -81,7 +83,8 @@ describe('stitcher', () => { '2', '-c:a', 'pcm_s16le', - 'output.wav' + 'output.wav', + '-y' ]); }); }); \ No newline at end of file