From 8607a2449cb4c3db1149397c7b1f1de0f8f3ce3a Mon Sep 17 00:00:00 2001 From: Aaron Scherer Date: Tue, 9 Feb 2016 09:38:48 -0800 Subject: [PATCH] Allow seeking for FFmpeg --- src/Voice/AudioEncoder.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Voice/AudioEncoder.js b/src/Voice/AudioEncoder.js index 6c74d7423..0ec6202aa 100644 --- a/src/Voice/AudioEncoder.js +++ b/src/Voice/AudioEncoder.js @@ -66,6 +66,7 @@ export default class AudioEncoder { '-f', 's16le', '-ar', '48000', '-af', 'volume=' + (options.volume || 1), + '-ss', (options.seek || 0), '-ac', 2, 'pipe:1' ], {stdio: ['pipe', 'pipe', 'ignore']}); @@ -100,6 +101,7 @@ export default class AudioEncoder { '-f', 's16le', '-ar', '48000', '-af', 'volume=' + (options.volume || 1), + '-ss', (options.seek || 0), '-ac', 2, 'pipe:1' ], { stdio: ['pipe', 'pipe', 'ignore'] });