Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 2.26 KB

CONTRIBUTING.md

File metadata and controls

49 lines (35 loc) · 2.26 KB

How to contribute

Reporting issues

Please start by reading the FAQ first. If your question is not answered, here are some guidelines on how to effectively report issues.

Required information

When reporting issues be sure to include at least:

  • Some code that may be used to reproduce the problem
  • Which version of fluent-ffmpeg, of ffmpeg and which OS you're using
  • If the problem only happens with some input sources, please include a link to a source that may be used to reproduce the problem
  • Be sure to include the full error message when there is one
  • When an ffmpeg error happens (eg. 'ffmpeg exited with code 1'), you should also include the full output from ffmpeg (stdout and stderr), as it may contain useful information about what whent wrong. You can do that by looking at the 2nd and 3rd parameters of the error event handler on an FfmpegCommand, for example:
ffmpeg('some/input.mp4')
  .on('error', function(err, stdout, stderr) {
    console.log('An error happened: ' + err.message);
    console.log('ffmpeg standard output:\n' + stdout);
    console.log('ffmpeg standard error:\n' + stderr);
  });

Ffmpeg usage

If your command ends up with an ffmpeg error (eg. 'ffmpeg exited with code X : ...'), be sure to try the command manually from command line.

If it does not work, you most likely have a ffmpeg-related problem that does not fit as a fluent-ffmpeg issue; in that case head to the ffmpeg documentation to find out what you did wrong.

If it does work, please double-check how you escaped arguments and options when passing them to fluent-ffmpeg. For example, when running from command line, you may have to quote arguments to tell your shell that a space is indeed part of a filename or option. When using fluent-ffmpeg, you don't have to do that, as you're already passing options and arguments separately. Here's a (dumb) example:

$ ffmpeg -i video with spaces.avi
Cannot find "video", or unknown option "with", etc...
$ ffmpeg -i "video with spaces.avi"
Works
// Works
ffmpeg('video with spaces.avi')...;

// Fails, looks for a file with actual double quotes in its name
ffmpeg('"video with spaces.avi"')...;