Skip to content

Commit 4f70eef

Browse files
committed
Move seek arg to post-encode (#14)
1 parent 9885a29 commit 4f70eef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/voice/streams/FFmpegOggTransformer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = function(options = {}) {
1010
options.frameDuration = 60;
1111
}
1212
let inputArgs = [
13+
"-i", options.input || "-",
1314
"-analyzeduration", "0",
1415
"-loglevel", "24"
1516
].concat(options.inputArgs || []);
@@ -21,7 +22,6 @@ module.exports = function(options = {}) {
2122
);
2223
}
2324
inputArgs = inputArgs.concat(
24-
"-i", options.input || "-",
2525
"-vn"
2626
);
2727
const outputArgs = [

lib/voice/streams/OggOpusPassthroughTransformer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = function(options = {}) {
1010
options.frameDuration = 60;
1111
}
1212
let inputArgs = [
13+
"-i", options.input || "-",
1314
"-loglevel", "24"
1415
].concat(options.inputArgs || []);
1516
if(options.format === "pcm") {
@@ -20,7 +21,6 @@ module.exports = function(options = {}) {
2021
);
2122
}
2223
inputArgs = inputArgs.concat(
23-
"-i", options.input || "-",
2424
"-vn"
2525
);
2626
const outputArgs = [

0 commit comments

Comments
 (0)