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

prevent fluent-ffmpeg exception when killing process #124

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

dank074
Copy link
Owner

@dank074 dank074 commented Nov 26, 2024

When killing the ffmpeg process I was getting the following exception:

TypeError: Cannot read properties of undefined (reading 'get') at endCB fluent-ffmpeg\lib\processor.js:543:37)

It seems to be a fluent-ffmpeg bug: fluent-ffmpeg/node-fluent-ffmpeg#861

It stopped throwing the exception when I moved the .output line in the ffmpeg command builder after the lines attaching event listeners with .on

@longnguyen2004
Copy link
Collaborator

Interesting that this happened at all, but if it works then sure

@longnguyen2004 longnguyen2004 merged commit 455d872 into master Nov 27, 2024
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

Successfully merging this pull request may close these issues.

2 participants