Skip to content

Instantly share code, notes, and snippets.

@vicapow
Created March 15, 2012 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vicapow/2046973 to your computer and use it in GitHub Desktop.
Save vicapow/2046973 to your computer and use it in GitHub Desktop.
var stream = request('http://example.com/video.mp4'); // doesnt work
var stream = fs.createReadStream(__dirname +'/video.mp4'); // works
var proc = new ffmpeg(stream);
.usingPreset('flashvideo')
.writeToStream(res, function(retcode, err){
if(err) throw err;
console.log('file has been converted succesfully');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment