python – discord.player ffmpeg process 15000 successfully terminated with return code of 4294967295

Ive tried all the solutions i could find, but my bot just joins the vc and spews that code before not playing any audio. ive tried M4A files, and MP3 files

Heres my code:

async def play(ctx, url: str):
    global VC_Channel, que
    author = ctx.author
    if ctx.channel.id != 1169505345991872573:
        return
    if author.voice is None:
        await ctx.reply("Be in a vc!")
        return
    await ctx.reply(f"downloading video..\nThis may take a minute!")

    yt = YouTube(url)
    ys = yt.streams.get_audio_only()
    ys.download(output_path="C:/Users/name/Desktop/scripts/songs", filename="song.mp3")

    FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5','options': '-vn -filter:a "volume=0.25"'}
    source = discord.FFmpegPCMAudio(source="C:/Users/name/Desktop/scripts/songs/song.mp3", executable="C:/Users/name/Desktop/scripts/ffmpeg", **FFMPEG_OPTIONS)
    vc = await author.voice.channel.connect()
    while not vc.is_connected():
        time.sleep()
    VC_Channel = vc
    time.sleep(1)
    await ctx.reply(f"playing...")
    vc.play(source)

Read more here: Source link