mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 22:51:32 +00:00
Allow seeking for FFmpeg
This commit is contained in:
parent
417fd32721
commit
8607a2449c
1 changed files with 2 additions and 0 deletions
|
|
@ -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'] });
|
||||
|
|
|
|||
Loading…
Reference in a new issue