fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.64k stars 874 forks source link

Streaming events #549

Open nirklinger opened 8 years ago

nirklinger commented 8 years ago

is there any way to stop capturing when no more data comes from udp stream?

njoyard commented 8 years ago

I guess you could call command.kill() in your stream end handler. But since it's an UDP stream, is there really an end ? You may want to use a kill timer that you reset in the stream data handler, so that the kill happens when you haven't had any data for some time.