“错误:未找到FFMPEG”,但应安装FFMPEG-Discord Bot

时间:2019-07-12 22:22:21

标签: javascript node.js ffmpeg discord

所以我一直在研究Discord Music机器人,我需要FFMPEG,但我似乎找不到合适的版本。

我已经尝试通过npm,choco,git安装它,并且我使用了ffmpeg网站上的安装程序。这些都不起作用。

这是我的错误:

Error: FFMPEG not found
    at Function.selectFfmpegCommand (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\prism-media\src\transcoders\ffmpeg\Ffmpeg.js:46:13)
    at new FfmpegTranscoder (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\prism-media\src\transcoders\ffmpeg\Ffmpeg.js:7:37)
    at new MediaTranscoder (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\prism-media\src\transcoders\MediaTranscoder.js:10:19)
    at new Prism (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\prism-media\src\Prism.js:5:23)
    at new VoiceConnection (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\discord.js\src\client\voice\VoiceConnection.js:46:18)
    at Promise (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\discord.js\src\client\voice\ClientVoiceManager.js:63:22)
    at new Promise (<anonymous>)
    at ClientVoiceManager.joinChannel (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\discord.js\src\client\voice\ClientVoiceManager.js:45:12)
    at VoiceChannel.join (C:\Users\MauSc\Desktop\CrafterMusic - JS\node_modules\discord.js\src\structures\VoiceChannel.js:130:30)
    at Client.bot.on (C:\Users\MauSc\Desktop\CrafterMusic - JS\index.js:50:76)

编辑:我可能应该指出,我是一个绝对的初学者,很难独自发现错误。

1 个答案:

答案 0 :(得分:0)

本教程帮助了我https://youtu.be/prSOkqHXwg0

它基本上是通过控制台设置PATH的,最终对我有用。