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

ffmpeg segment node : TypeError [ERR_INVALID_ARG_TYPE]: The "cb" argument must be of type function #21

Open
bmarolleau opened this issue Sep 11, 2023 · 1 comment

Comments

@bmarolleau
Copy link

Hi,

I'm trying to split a WAV file into multiple smaller files using the ffmpeg segment node , and I'm getting this error with either a buffer or URL as msg.payload input, and msg.times = [1,3,5] for example. The output files and csv are generated and it crashes before sending any output buffers.
Any ideas ? thx.

 [error] TypeError [ERR_INVALID_ARG_TYPE]: The "cb" argument must be of type function. Received undefined
    at makeCallback (node:fs:198:3)
    at Object.unlink (node:fs:1867:14)
    at .node-red/node_modules/node-red-contrib-media-utils/ffmpeg-segment/ffmpeg-segment.js:112:14
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

node -v
v18.17.1
ffmpeg --version
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)
@chughts
Copy link
Member

chughts commented Sep 12, 2023

Do you have a sample flow so that the error can be recreated?

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