Fixed multiple ffmpeg/avconv processes being alive

This commit is contained in:
Amish Shah
2015-12-12 18:04:48 +00:00
parent d66b765933
commit 4d43867206
4 changed files with 10 additions and 29 deletions

View File

@@ -88,16 +88,6 @@ export default class AudioEncoder {
'-af', '"volume=' + (options.volume || 1)+'"'
], { stdio: ['pipe', 'pipe', 'ignore'] });
console.log([
'-loglevel', '0',
'-i', file,
'-f', 's16le',
'-ar', '48000',
'-af', '"volume=' + (options.volume || 1) + '"',
'-ac', 2,
'pipe:1',
].join(" "));
enc.stdout.once("readable", function () {
resolve({
proc: enc,