简体   繁体   English

错误:使用node-fluent-ffmpeg生成EACCES

[英]Error: spawn EACCES using node-fluent-ffmpeg

I'm using node-fluent-ffmpeg in my backend but I cant get it to set up correctly. 我在后端使用node-fluent-ffmpeg ,但我无法正确设置它。 I set the PATHS as it instructed: 我按照指示设置了PATHS:

process.env['FFMPEG_PATH'] = '/var/task/node_modules/fluent-ffmpeg/node_modules/ffmpeg';
process.env['FFPROBE_PATH'] = '/var/task/node_modules/fluent-ffmpeg/node_modules/ffprobe';

But now its throwing this error: 但现在它抛出这个错误: 在此输入图像描述

What does this mean? 这是什么意思? I've read that its related to the permissions of the file, but i don't understand what file its talking about. 我已经读过它与文件的权限有关,但我不明白它在说什么文件。

this may help you https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/372 这可能对你有所帮助https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/372

all you have to do is : fs.chmod('777', function...... and it will work 你所要做的就是:fs.chmod('777',函数......它会起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Windows上使用node-fluent-ffmpeg与ffmpeg进行转码不起作用 - using node-fluent-ffmpeg to transcode with ffmpeg on windows not working ffmpeg将视频持续时间发送到客户端(使用node-fluent-ffmpeg) - Ffmpeg send duration of video to client (using node-fluent-ffmpeg) 使用node-fluent-ffmpeg进行场景检测 - scene detection with node-fluent-ffmpeg 如何在node-fluent-ffmpeg上获取stderr - How to obtain the stderr on node-fluent-ffmpeg 在 linux 上运行节点(ffmpeg)产生错误:spawn EACCES - Running node (ffmpeg) on linux produces Error: spawn EACCES 生成typescript的代码问题(node-fluent-ffmpeg模块) - The problem of code that generated typescript (node-fluent-ffmpeg module) 如何测试运行node-fluent-ffmpeg的自定义模块(异步模块)? - How to test a custom module running node-fluent-ffmpeg (an async module)? 如何通过node-fluent-ffmpeg获取视频时长? - How can I get a video durations via node-fluent-ffmpeg? 给定特定大小时,node-fluent-ffmpeg 无法正确调整视频大小 - node-fluent-ffmpeg doesn't resize videos correctly when given specific size 如何在特定视频秒的视频文件中添加背景音乐? 在 node-fluent-ffmpeg 中 - How to add background music to a video file on a specific video second? In node-fluent-ffmpeg
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM