h2non / audioconcat

Tiny node.js module to concat multiple audio files using ffmpeg
45 stars 12 forks source link

TypeError: audioconcat(...).output is not a function #3

Closed qawemlilo closed 8 years ago

qawemlilo commented 8 years ago

Hi @h2non , the example in the docs seems to contain errors.

var videoshow = require('audioconcat')

var songs = [
  'beatles.mp3',
  'greenday.mp3',
  'u2.mp3'
]

audioconcat(songs)
  .output('all.mp3')
  .on('start', function (command) {
    console.log('ffmpeg process started:', command)
  })
  .on('error', function (err, stdout, stderr) {
    console.error('Error:', err)
    console.error('ffmpeg stderr:', stderr)
  })
  .on('end', function (output) {
    console.error('Audio created in:', output)
  });
  1. audioconcat is undefined - I think this is just a typo on the first line.
  2. the method output is not available, when I took a look at the code I noticed that the output is checked for in the options.
qawemlilo commented 8 years ago

The example doesn't seem to be working at all - I'm trying out v0.1.2.

h2non commented 8 years ago

Fixed. Take a look and try it again.

qawemlilo commented 8 years ago

Thanks, working fine now.

attilavago commented 7 years ago

This is still not fixed. And why am I calling audioconcat in a videoshow variable?!?

LE: @h2non found the issue. Here you still have the old code. You might want to update that. :)

algendy commented 7 years ago

Hey guys, still getting TypeError: audioconcat(...).output is not a function, any workaround for it?