Closed radiorz closed 3 years ago
const command = ffmpeg(inputPath).inputOptions('-re').inputOptions('-stream_loop -1').noVideo().format('flv') command .output(outputPath, { end: true }) .run() setTimeout(() => { command.on('error', () => { console.log('Ffmpeg has been killed') }) command.kill() console.log(1) }, 10 * 1000)
(note: if the problem only happens with some inputs, include a link to such an input file)
the ffmpeg process is killed
the ffmpeg is still running
there is a way to kill the process:
command.ffmpegProc.stdin.write('q');
Version information
Code to reproduce
(note: if the problem only happens with some inputs, include a link to such an input file)
Expected results
the ffmpeg process is killed
Observed results
the ffmpeg is still running
Checklist