ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Exit from Node without terminating process

Open
#220 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
C
Stars
17.8k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
The two ways to stop ffmpeg from running in Node are either `ffmpeg.exit()` or `process.exit()`, both of which immediately terminate the Node process and prevent further work from being done.

**Describe the solution you'd like**
Have `ffmpeg.exit()` terminate the long-running Node process without terminating the overall process.

**Describe alternatives you've considered**
Passing in an optional error code into `exit`. While needed so it doesn't always throw an error, in and of itself it won't resolve the ability for this to be able to be integrated into other tools.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.