Skip to content

Error: write EPIPE #9

Description

@Miyou

Hi. I just tried using the package, and it works great when I supply a string of a filename, but as soon as I pass in a stream it crashes the process with the above error.
Here's a minimum reproducible example:

fpcalc(fs.createReadStream('rickroll.webm'), function (err, result) {
  if (err) {
    console.log('error!', err);
  }
  console.log(result.file, result.duration, result.fingerprint);
});

The full error is:

Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:92:16)
error Command failed with exit code 1.

Any ideas on how to fix this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions