So I was trying to pipe the video from fluent-ffmpeg to response(client-side) without saving it as a file. Here is my code:
.seekInput(06)
.setDuration(5)
.on('end', function(err, data) {
if (!err) {
console.log('conversion Done');
}
})
.on('error', function(err) {
console.log('wahala' + err);
})
.pipe(res, { end: true })```
I get this error:
Error: ffmpeg exited with code 1: pipe:1: Invalid argument