Created
March 15, 2012 21:12
-
-
Save vicapow/2046973 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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