AlenVelocity / spotifydl-core

Spotify Fetcher and Downloader for Node
https://alenvelocity.github.io/spotifydl-core/
MIT License
56 stars 28 forks source link

cannot find ffmpeg error #10

Open domdewom opened 1 year ago

domdewom commented 1 year ago

Trying to download a track or podcast from Spotify using spotifydl-core via pipedream but keep on getting an error: "Cannot find ffmpeg"

What can I do? Also why does it actually need the ffmpeg package in the first place? Is it downloading the track/episode from youtube?

domdewom commented 1 year ago

Looks like by setting a path to ffmpeg you can avoid above problem...

import ffmpeg from "fluent-ffmpeg"; import ffmpegInstaller from "@ffmpeg-installer/ffmpeg"; ffmpeg.setFfmpegPath(ffmpegInstaller.path, {timeout: 60000});

mrtampan commented 1 year ago

in ubuntu sudo apt-get install ffmpeg

in windows with chocolately choco install ffmpeg

ffmpeg not in package node, ffmpeg in Operating System (OS).