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

Error: ffmpeg exited with code 1: Conversion failed! #1009

Open
2 of 3 tasks
romualdo-ah opened this issue May 3, 2020 · 0 comments
Open
2 of 3 tasks

Error: ffmpeg exited with code 1: Conversion failed! #1009

romualdo-ah opened this issue May 3, 2020 · 0 comments

Comments

@romualdo-ah
Copy link

romualdo-ah commented May 3, 2020

Version information

  • fluent-ffmpeg version: 2.0.1
  • ffmpeg version: 3.4.6
  • OS: Ubuntu 18.04.1

Code to reproduce

 const glob = require('glob');

function start(){

    const path = './videos/*.mp4'
    const videos = glob.sync(path);
    const output = `./output.mp4`;

 await withFluentFfmpeg();

    async function withFluentFfmpeg() {

      var Ffmpeg = require('fluent-ffmpeg');
 
      const ffmpeg = Ffmpeg();
 
      videos.map(video => ffmpeg.input(video))
      await ffmpeg.mergeToFile(output);
    }
}
start();

(note: if the problem only happens with some inputs, include a link to such an input file)

Expected results

Concatenate the videos onto one output.mp4 file

Observed results

events.js:287
throw er; // Unhandled 'error' event
^

Error: ffmpeg exited with code 1: Conversion failed!

at ChildProcess.<anonymous> (/home/r/Projects/webscrapping/node_modules/fluent-ffmpeg/lib/processor.js:167:22)
at ChildProcess.emit (events.js:310:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)

Emitted 'error' event on FfmpegCommand instance at:
at emitEnd (/home/r/Projects/webscrapping/node_modules/fluent-ffmpeg/lib/processor.js:413:16)
at endCB (/home/r/Projects/webscrapping/node_modules/fluent-ffmpeg/lib/processor.js:524:13)
at handleExit (/home/r/Projects/webscrapping/node_modules/fluent-ffmpeg/lib/processor.js:155:11)
at ChildProcess. (/home/r/Projects/webscrapping/node_modules/fluent-ffmpeg/lib/processor.js:167:11)
at ChildProcess.emit (events.js:310:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)

Checklist

  • I have read the FAQ
  • I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)
  • I have included full stderr/stdout output from ffmpeg
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