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

Getting error related to ffmpeg #30

Open
aeperaltan opened this issue Apr 18, 2020 · 1 comment
Open

Getting error related to ffmpeg #30

aeperaltan opened this issue Apr 18, 2020 · 1 comment

Comments

@aeperaltan
Copy link

Hello, using the latest code we get the following sequence of errors:

ERROR (node:7) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

INFO Executing... undefined -r 10 -f image2 -s 640x480 -i /tmp/53680642-frame-%03d.jpg -vcodec libx264 -crf 25 -pix_fmt yuv420p /tmp/_1587230228128.mkv

INFO Error with command: undefined -r 10 -f image2 -s 640x480 -i /tmp/53680642-frame-%03d.jpg -vcodec libx264 -crf 25 -pix_fmt yuv420p /tmp/_1587230228128.mkv { Error: Command failed: undefined -r 10 -f image2 -s 640x480 -i /tmp/53680642-frame-%03d.jpg -vcodec libx264 -crf 25 -pix_fmt yuv420p /tmp/_1587230228128.mkv
/bin/sh: undefined: command not found

It looks that ffmpeg cannot be found. Please advise. Would appreciate any help, Thanks!

@Manikandan85
Copy link

Manikandan85 commented May 1, 2020

@aeperaltan for undefined error in ffmeg.js file, you need to add require to get the installer path.
const ffmpegPath = process.env.local ? require("@ffmpeg-installer/ffmpeg").path : require("./@ffmpeg-installer/ffmpeg").path;

for deprecation warning, use Buffer.from() instead of new Buffer in frameconverter.js

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