For the life of me I cannot figure out to translate:
-i foo.mp3 -filter_complex aformat=channel_layouts=mono,showwavespic=s=4000x1000 -frames:v 1 foo.png
Into a fluent-ffmpeg command. Can anyone help me out?
I have tried with the most basic command:
var inputStream = fs.createReadStream('C:/Somewhere/foo.mp3')
var outputStream = fs.createWriteStream('C:/Somehere/foo.png')
var proc = ffmpeg()
.input(inputStream)
.complexFilter([
'showwavespic'
])
.on('error', function(err) {
console.log('an error happened: ' + err.message);
})
.save(outputStream);
I get the error thrown from the handler: an error happened: ffmpeg exited with code 1: Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_showwavespic_1