How to setup ffmpeg for discord.py on windows 10

谁说我不能喝 提交于 2020-06-28 04:02:00

问题


I'm creating a discord.py bot that will play music and I'm having trouble using FFMPEG. The FFMPEG download is in my project folders but its still saying that it cant be found. The problem is probably that I havent added it to PATH but I dont know how to do that so if anyone could help me get it working that would be brilliant!


回答1:


To add FFMPEG to path, you're going to want to:

  • Copy the path to \bin in the folder that FFMPEG was downloaded to.
  • Open the start menu and search for "Edit environment varaibles".
  • Click Path in the User Variables section:


  • Click Edit...:


  • Click New:


  • Paste in the path (might be slightly different, depends where you saved it - just make sure it ends with \bin):


  • Now click OK in both menus to save your changes, and you should be good to go!


来源:https://stackoverflow.com/questions/61818353/how-to-setup-ffmpeg-for-discord-py-on-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!