Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work in Node Docker container #76

Open
Gmanicus opened this issue Sep 30, 2023 · 2 comments
Open

Does not work in Node Docker container #76

Gmanicus opened this issue Sep 30, 2023 · 2 comments

Comments

@Gmanicus
Copy link

Gmanicus commented Sep 30, 2023

Installing fluent-ffmpeg, ffmpeg-installer, and ffprobe-installer in an Docker container running a Node 18 image does not work. It immediately throws an error, ffmpeg was killed with signal SIGSEGV, when running any ffmpeg command.

The ffmpeg script I used:

const ffmpeg = require('fluent-ffmpeg')
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffprobePath = require('@ffprobe-installer/ffprobe').path;

ffmpeg.setFfmpegPath(ffmpegPath);
ffmpeg.setFfprobePath(ffprobePath);

Works great locally.

@mithiridi
Copy link

@Gmanicus were you able to fix this issue ? Please do let me know i am also facing the same issue

@Gmanicus
Copy link
Author

Gmanicus commented Jun 5, 2024

Hey @mithiridi! Yes, indeed I was. Turns out, ffmpeg is available via package managers. I was able to add a command to the dockerfile as such to install it on the system:
RUN apt-get install ffmpeg -y

If you are also using fluent-ffmpeg, it should pick up the installation automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants