Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Player Idle for custom ffmpeg stream #214

Open
darshan-genea opened this issue Oct 7, 2021 · 0 comments
Open

Player Idle for custom ffmpeg stream #214

darshan-genea opened this issue Oct 7, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@darshan-genea
Copy link

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
@darshan-genea darshan-genea added the bug Something isn't working label Oct 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant