tnfe / FFCreator

A fast video processing library based on node.js (一个基于node.js的高速视频制作库)
http://tnfe.github.io/FFCreator/
MIT License
2.84k stars 403 forks source link

Cannot read properties of null (reading 'streams') #378

Open shoestrong opened 1 year ago

shoestrong commented 1 year ago
Cannot read properties of null (reading 'streams')
[FF] Creator production error. FFEvent {
  type: 'error',
  pos: 'preProcessing',
  error: "Cannot read properties of null (reading 'streams')"
}
node:events:491
      throw er; // Unhandled 'error' event

When using FFVideo, such an error occurs, how should I solve it.

I use the example in https://github.com/tnfe/FFCreator/blob/master/examples/video.js is also such an error

node: v14.20.0 ffmpeg version 5.1-tessus Copyright (c) 2000-2022 the FFmpeg developers built with Apple clang version 11.0.0 (clang-1100.0.33.17) mac: macOS Monterey 12.4 / Intel

jhreis commented 1 year ago

I ran into this and it was because the path video1 was incorrect:

  const fvideo = new FFVideo({
    path: video1,

Make sure this is a path that starts with your project's root.