Skip to content

Ffmpeg return Broken pipe on Windows platform #1501

@cytsai1008

Description

@cytsai1008

Summary

Ffmpeg return Broken pipe on Windows platform

Reproduction Steps

  1. Bot join a voice channel
  2. Let bot play something (ex. mp3)

Minimal Reproducible Code

voice_file = discord.FFmpegOpusAudio(f"tts_temp/{guild_id}.mp3")
ctx.voice_client.play(voice_file)

Expected Results

Bot plays music
stay in vc and waiting for next play command

Actual Results

Played nothing and sudden disconnected
Below error printed after I killed the bot

av_interleaved_write_frame(): Broken pipe
Error writing trailer of pipe:1: Broken pipe
Error closing file pipe:1: Broken pipe

Intents

discord.Intents.all()

System Information

  • Python v3.10.5-final
  • py-cord v2.0.0-final
  • aiohttp v3.8.1
  • system info: Windows 10 10.0.19044

BTW, my ffmpeg version: ffmpeg version 5.0.1-essentials_build-www.gyan.dev

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

I've tested it works perfectly on Ubuntu 22.04 and after some Google I think it was because of Windows or powershell's pipe was different with Linux
And it doesn't happened on py-cord v1.7.3
And discord.FFmpegPCMAudio(f"tts_temp/{guild_id}.mp3") also return the same problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions