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

Player Idle for custom ffmpeg stream #214

@darshan-genea

Description

@darshan-genea

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions