pycord icon indicating copy to clipboard operation
pycord copied to clipboard

Ffmpeg return Broken pipe on Windows platform

Open cytsai1008 opened this issue 2 years ago • 1 comments

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

  • [X] I have searched the open issues for duplicates.
  • [X] I have shown the entire traceback, if possible.
  • [X] 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

cytsai1008 avatar Jul 14 '22 06:07 cytsai1008

Status Update please @Pycord-Development/maintainers

Lulalaby avatar Sep 23 '22 00:09 Lulalaby