Skip to content

Commit

Permalink
Move seek arg to post-encode (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brainicism authored Apr 29, 2024
1 parent 2225e1e commit 3747e9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/voice/streams/FFmpegOggTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = function(options = {}) {
options.frameDuration = 60;
}
let inputArgs = [
"-i", options.input || "-",
"-analyzeduration", "0",
"-loglevel", "24"
].concat(options.inputArgs || []);
Expand All @@ -21,7 +22,6 @@ module.exports = function(options = {}) {
);
}
inputArgs = inputArgs.concat(
"-i", options.input || "-",
"-vn"
);
const outputArgs = [
Expand Down
2 changes: 1 addition & 1 deletion lib/voice/streams/OggOpusPassthroughTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand All @@ -20,7 +21,6 @@ module.exports = function(options = {}) {
);
}
inputArgs = inputArgs.concat(
"-i", options.input || "-",
"-vn"
);
const outputArgs = [
Expand Down

0 comments on commit 3747e9f

Please sign in to comment.