diff --git a/lib/voice/streams/FFmpegOggTransformer.js b/lib/voice/streams/FFmpegOggTransformer.js index e42a8130a..6db40b68f 100644 --- a/lib/voice/streams/FFmpegOggTransformer.js +++ b/lib/voice/streams/FFmpegOggTransformer.js @@ -10,6 +10,7 @@ module.exports = function(options = {}) { options.frameDuration = 60; } let inputArgs = [ + "-i", options.input || "-", "-analyzeduration", "0", "-loglevel", "24" ].concat(options.inputArgs || []); @@ -21,7 +22,6 @@ module.exports = function(options = {}) { ); } inputArgs = inputArgs.concat( - "-i", options.input || "-", "-vn" ); const outputArgs = [ diff --git a/lib/voice/streams/OggOpusPassthroughTransformer.js b/lib/voice/streams/OggOpusPassthroughTransformer.js index 6a50eb897..0df2f6286 100644 --- a/lib/voice/streams/OggOpusPassthroughTransformer.js +++ b/lib/voice/streams/OggOpusPassthroughTransformer.js @@ -10,6 +10,7 @@ module.exports = function(options = {}) { options.frameDuration = 60; } let inputArgs = [ + "-i", options.input || "-", "-loglevel", "24" ].concat(options.inputArgs || []); if(options.format === "pcm") { @@ -20,7 +21,6 @@ module.exports = function(options = {}) { ); } inputArgs = inputArgs.concat( - "-i", options.input || "-", "-vn" ); const outputArgs = [