question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[minor] FFmpeg blocks node from exiting

See original GitHub issue

It 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amishshahcommented, Mar 25, 2021

I’m available on Discord 😃 - hydrabolt#0001

0reactions
OnkelTemcommented, Mar 25, 2021

Cool!

Amish, unrelated. Do you hang out somewhere like Discord/Gitter/Slack whatever? Would be great to have an auxiliary communication channel with you! 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found