Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concat cutting audio length #6

Open
MrShakes opened this issue Jan 22, 2018 · 0 comments
Open

Concat cutting audio length #6

MrShakes opened this issue Jan 22, 2018 · 0 comments

Comments

@MrShakes
Copy link

I have 2 audio files: audio1.ogg and audio2.ogg and then I run

audioconcat(songArr)
    .concat(storyName + '.ogg')
    .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)
      res.send({message: "Error"});
    })
    .on('end', function (output) {
      console.error('Audio created in:', output)
      makeVid(body, res);
    })

songArr has both audios in there and in the log I can see

ffmpeg process started: ffmpeg -i concat:audio1.ogg|audio2.ogg -y -acodec copy storyName.ogg

However when I play the finished audio, the second audio has been cut in half from about 16 seconds to just 8.

audioconcat version: ^0.1.3
node version: 6.10.2
npm version: 3.10.10
ffmpeg version 3.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant