Streaming Using fluent-ffmpeg

suggest change

You can also use flent-ffmpeg to convert .mp4 files to .flv files, or other types:

res.contentType(‘flv’);

var pathToMovie = './public/' + req.params.filename;

var proc = ffmpeg(pathToMovie)

    .preset('flashvideo')

    .on('end', function () {

        console.log('Stream Done');

    })

    .on('error', function (err) {

        console.log('an error happened: ' + err.message);

        res.send(err.message);

    })

    .pipe(res, { end: true });

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Sending a file stream to client:
* Streaming Using fluent-ffmpeg

Table Of Contents
1 npm
41 cli
43 grunt
59 Hack
64 ES6
66 Sending a file stream to client
67 Redis
69 MongoDB
86 MongoDB
87 Lodash
91 CORS
105 N-API
108 Require