Skip to content

Instantly share code, notes, and snippets.

@psilva261
Last active August 29, 2015 14:13
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 psilva261/417393caa723012ff9b9 to your computer and use it in GitHub Desktop.
Save psilva261/417393caa723012ff9b9 to your computer and use it in GitHub Desktop.
Processing audio file from http with ffmpeg on node
var ffmpeg = require('fluent-ffmpeg');
var request = require('request');
var httpStream = request('http://www.acme.com/input.mp3');
var proc = new ffmpeg({source: httpStream})
.inputFormat('mp3')
/* insert processing steps from
https://github.com/fluent-ffmpeg/node-fluent-ffmpeg here */
.save('output.mp3');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment