I'm trying to make an api call to express which calls ffmpeg outputing a stream to icecast.
I can do this with child_process
, but have found fluent-ffmpeg
for nodejs.
If I add
.save('icecast://source:hackme@localhost:8000/test')
I get an invalid argument error, and if I use
.output('icecast://source:hackme@localhost:8000/test')
I get no error, a correct response to the calling web page , but no ffmpeg
process.
Does anyone know if fluent-ffmpeg
outputs to icecast
.
var ffmpeg = require('fluent-ffmpeg');
app.get('/ffmpeg', function(req, res) {
var ffmpegPath = '/usr/bin/ffmpeg';
proc = new ffmpeg('/home/russ/radio_audio/fore/BaBeL74.wav')
.output('icecast://source:hackme@localhost:8000/test');
proc.setFfmpegPath(ffmpegPath);
res.send('ok');
});