voice
voice copied to clipboard
Player Idle for custom ffmpeg stream
Please describe the problem you are having in as much detail as possible:
- player goes Idle for custom ffmpeg stream. While ffmpeg command runs successfully. Include a reproducible code sample here, if possible:
getAudio() {
return new prism.FFmpeg({
args: [
'-analyzeduration', '0',
'-loglevel', '0',
'-f', 'pulse',
'-i', 'alsa_output.platform-snd_aloop.0.analog-stereo.monitor',
'-acodec', 'libopus',
'-f', 'opus',
'-ar', '48000',
'-ac', '2',
],
})
}
player.play(createAudioResource(getAudio(), { inputType: StreamType.OggOpus }))
// Player goes Idle as soon as invoke play function
// This works - ffmpeg -analyzeduration 0 -f pulse -i alsa_output.platform-snd_aloop.0.analog-stereo.monitor -acodec libopus -f opus -ar 48000 -ac 2 output.ogg
Further details:
- @discordjs/voice version: ^13.1.0
- Node.js version: v16.10.0
- Operating system: Debian 11
- Priority this issue should have – please be realistic and elaborate if possible:
Relevant client options:
- partials: none
- gateway intents: none
- other: none