Comments (4)
info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]start: [email protected]
6 info lifecycle [email protected]
7 verbose lifecycle [email protected]start: unsafe-perm in lifecycle truestart: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/thomas/web/node/ffcreate/node_modules/.bin:/Users/thomas/ffmpeg:/Users/thomas/.docker/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/thomas/ffmpeg:/Users/thomas/.docker/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/thomas/go_item/bin:GOROOT/bin:/Users/thomas/go_item/bin:GOROOT/bin
8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]start: CWD: /Users/thomas/web/node/ffcreatestart: Args: [ '-c', 'node bin/www' ]
10 silly lifecycle [email protected]
11 silly lifecycle [email protected]start: Returned: code: 1 signal: nullstart: Failed to exec start script
12 info lifecycle [email protected]
13 verbose stack Error: [email protected] start: node bin/www
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1048:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/thomas/web/node/ffcreate
16 verbose Darwin 21.6.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v14.16.0
19 verbose npm v6.14.11
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: node bin/www
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
感谢回复🙏
from ffcreator.
我的代码
go```
FFCreatorCenter.createTemplate(template_id, ({ text, num }) => {
console.log("开始合成视频--------------------")
// console.log(text)
const font1 = path.join(__dirname, './source/font/font1.ttf');
const audio = path.join(__dirname, './bar.m4a');
console.log(num)
const creator = new FFCreator({
cacheDir: path.join(__dirname, "./cache"),
// outputDir: path.join(__dirname, "../output/voice_user"),
outputDir: path.join(__dirname, "./output"),
// output:"thomas.mp4",
width: width,
height: height,
log: false,
fps: 30, // fps
threads: 4, // 多线程(伪造)并行渲染
});
const scene1 = new FFScene();
const video = new FFVideo({
path: path.join(__dirname,"./source/video/2.mp4"),
audio: false,
x: width/2,
y: height/2,
width: width,
height: height
});
console.log("视频高度------1----------")
scene1.addChild(video);
scene1.addAudio({path:audio});
let subtitle = new FFSubtitle({
comma: true, // 是否逗号分割
backgroundColor: '#00219C',
color: '#fff',
fontSize: 24,
x: width / 2,
y: height / 2 + 300,
// 1. srt方式
// path:,
});
subtitle.setText(text);
subtitle.setFont(font1);
subtitle.setSpeech(audio);
subtitle.frameBuffer = 24;
scene1.setDuration(20);
scene1.addChild(subtitle);
creator.addChild(scene1);
creator.start();
creator.openLog();
creator.on("error", (e) => {
console.log(`err-----------:: \n ${e.error}`);
});
creator.on("progress", (e) => {
console.log(
colors.yellow(`合成进度: ${(e.percent * 100) >> 0}%`)
);
});
creator.on("complete", (e) => {
console.log(
colors.yellow(`合成完成:\n ${e.output}`)
);
});
return creator;
})
from ffcreator.
我也遇到了 怎么解决
from ffcreator.
mark
from ffcreator.
Related Issues (20)
- 使用图片元素的时候,部分图片元素没有合成进去 HOT 4
- 透明通道的视频设置失效 HOT 2
- FFchart生成的图表背景是黑色的, 代码如下,请问怎么弄成透明背景 HOT 1
- 不支持显示 webp 类型的图片
- Creating outputDir with the FFCreator instance HOT 3
- FFVideo实例的setLoop方法调用之后,永远不会触发FFCreator实例的complete事件 HOT 1
- 只要合成时有gif,当次合成能成功,之后任何合成都失败,重启后继续这样... HOT 4
- 求问addAnimate方法中rotate属性的单位 HOT 1
- FFImage的path不能加载中文路径的图片 HOT 1
- Windows字体加载出错 HOT 1
- 你好,能不能帮忙更新下lottie的版本,我看现在用的lottie-canvas是5.5.101版本的,而这个版本是4年前发布的 HOT 2
- 能否对FFNode的子类,比如FFImage,用glsl做效果? HOT 2
- 能加一些shader效果吗? HOT 1
- ffvideo如何导入一个透明视频 HOT 1
- 为什么我使用新增字体无效,你们有没有遇到呢 HOT 1
- FFSubtitle 的 srt 方式,字幕与配音不同步 HOT 2
- RTL Direction
- FFCreator实例调用destroy,出现ffmpeg was killed with signal SIGKILL导致服务被kill HOT 4
- 字体乱码是怎么回事? HOT 5
- lottie 文字动画 如果不嵌入graph, 就无法渲染, HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffcreator.