Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
12862b4f85 | |||
16d5e834a5 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -103,3 +103,5 @@ config/config.json5
|
|||||||
distribution/
|
distribution/
|
||||||
.env
|
.env
|
||||||
test/*.js*
|
test/*.js*
|
||||||
|
output.wav
|
||||||
|
output.mp3
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "morning-report",
|
"name": "morning-report",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "morning-report",
|
"name": "morning-report",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"json5": "2.2.3",
|
"json5": "2.2.3",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "morning-report",
|
"name": "morning-report",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"description": "Procedurally generates a radio weather report",
|
"description": "Procedurally generates a radio weather report",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"weather",
|
"weather",
|
||||||
|
@@ -26,7 +26,7 @@ async function Stitcher(files: string[]) {
|
|||||||
const args: string[] = [];
|
const args: string[] = [];
|
||||||
files.forEach(f => args.push('-i', f));
|
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('-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);
|
await ffmpeg(args, files.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -41,7 +41,8 @@ describe('stitcher', () => {
|
|||||||
'2',
|
'2',
|
||||||
'-c:a',
|
'-c:a',
|
||||||
'pcm_s16le',
|
'pcm_s16le',
|
||||||
'output.wav'
|
'output.wav',
|
||||||
|
'-y'
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -62,7 +63,8 @@ describe('stitcher', () => {
|
|||||||
'2',
|
'2',
|
||||||
'-c:a',
|
'-c:a',
|
||||||
'pcm_s16le',
|
'pcm_s16le',
|
||||||
'output.wav'
|
'output.wav',
|
||||||
|
'-y'
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -81,7 +83,8 @@ describe('stitcher', () => {
|
|||||||
'2',
|
'2',
|
||||||
'-c:a',
|
'-c:a',
|
||||||
'pcm_s16le',
|
'pcm_s16le',
|
||||||
'output.wav'
|
'output.wav',
|
||||||
|
'-y'
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
});
|
});
|
Reference in New Issue
Block a user