destreamer icon indicating copy to clipboard operation
destreamer copied to clipboard

ffmpeg not being picked up from current working directory

Open majinzero opened this issue 4 years ago • 13 comments

hello, I have the error that he cannot find the ffmpeg file on macos. I have already copied them to every conceivable place, unfortunately none. Unfortunately, the same error message always appears.

I use Macos 10.15.4 latest ffmpeg version.

FFmpeg is missing! Destreamer requires a fairly recent release of FFmpeg to download videos

majinzero avatar May 27 '20 07:05 majinzero

Copy to destreamer/ directory and make sure it's executable (chmod +x ffmpeg)

snobu avatar May 27 '20 12:05 snobu

Untitled

majinzero avatar May 27 '20 12:05 majinzero

Hmm, that should have worked, i need to take a look at our code and check why it doesn't pick up ffmpeg binaries from project root. Meanwhile try to symlink to /usr/local/bin/ffmpeg or any other location that is in your $PATH. If you type ffmpeg at your command prompt you should get the ffmpeg usage screen. If that happens then destreamer should run fine.

image

snobu avatar May 27 '20 13:05 snobu

it works with the simlink thx

majinzero avatar May 27 '20 13:05 majinzero

Amended title to reflect the underlying problem. New problem definition: we're not trying to run ffmpeg from current working folder. We should try current folder then fall back to $PATH.

snobu avatar May 27 '20 14:05 snobu

This issue is not present on Windows 10 (and I will take a guess and say also the previous Windows, since execSync uses cmd) Can't help anymore, I don't have acces to a macOS system

lukaarma avatar Jun 18 '20 22:06 lukaarma

One workaround I found is to copy the file into one of the folders in $PATH. For example, sudo cp path_of_ffmpeg_file /usr/local/bin. I tried adding the ffmpeg folder into $PATH, but it kept failing for me.

Mennaruuk avatar Jul 03 '20 18:07 Mennaruuk

brew install ffmpeg

It's faster but of course you need brew installed.

snobu avatar Jul 16 '20 19:07 snobu

This bug it's replicable on windows using git-bash

lukaarma avatar Sep 23 '20 09:09 lukaarma

On *nix we could try to search the local folder for the exe and set a flag if so Or do the same both time we need to execute ffmpeg/aria2c

lukaarma avatar Sep 30 '20 23:09 lukaarma

I am experiencing this, Win10. I'm not the greatest with npm so I did not get this resolved.

I simply dropped ffmpeg binary into the folder - - this application worked wonders after that.

daarong avatar Dec 17 '20 20:12 daarong

Hi @lukaarma , New Here Thanks for the help,

I get different error , tried all suggested actions above, still get the same error, regardless of how I install ffmpeg and of the terminal I use

[FATAL ERROR] The FFmpeg version currently installed is too old! Destreamer requires a fairly recent release of FFmpeg to download videos

image

Any ideas please?

amnotabot avatar Dec 28 '22 00:12 amnotabot

Put ffmpeg.exe in your PATH, Run -> sysdm.cpl -> Advanced System Settings -> Advanced.

You can check by typing ffmpeg in your terminal from any directory.

Also don't use that MINGW64 terminal host as it's going to bring you trouble. Use cmd.exe or Windows Terminal.

snobu avatar Dec 28 '22 08:12 snobu