[minor] FFmpeg blocks node from exiting
See original GitHub issueIt seems like basic creation of a prism.FFmpeg
stream makes node to think it should wait.
// ...
const transcoderStream = new prism.FFmpeg({
args: ['-i', '-', '-f', 's16le', '-ar', '16000', '-channel_layout', 'mono'],
});
// ...
When launched, it’s continuing to wait upon finishing everything else.
Running it with wtfnode:
$ wtfnode script.js
results to:
...
[WTF Node?] open handles:
- File descriptors: (note: stdio always exists)
- fd 2 (tty) (stdio)
- fd 1 (tty) (stdio)
- Child processes
- PID 24331
- Entry point: /projects/custom/ts-zello/node_modules/prism-media/src/core/FFmpeg.js:156
- STDIO file descriptors: 22, 24, 26
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
ffmpeg Documentation
As an input option, blocks all video streams of a file from being filtered or being automatically selected or mapped for any output....
Read more >ffmpeg install within existing Node.js docker image
I'm very new to Docker, and would like to know how to command Docker to install ffmpeg when creating the image. DockerFile. FROM...
Read more >hokiedsp/node-kiss-ffmpeg: A minimalistic NodeJS ... - GitHub
When an output stream object is specified instead of url string, kiss.ffmpeg automatically closes the stream when FFmpeg process exits. Specifing keepopen ...
Read more >Node.js multithreading with worker threads series - Snyk
Node.js provides a single-threaded JavaScript run-time surface that prevents code from running multiple operations in parallel.
Read more >ffmpeg video converter - manpages.ubuntu!
If pix_fmt is prefixed by a "+", ffmpeg will exit with an error if the ... -an (input/output) As an input option, blocks...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m available on Discord 😃 - hydrabolt#0001
Cool!
Amish, unrelated. Do you hang out somewhere like Discord/Gitter/Slack whatever? Would be great to have an auxiliary communication channel with you! 😃