W
W
Wasya UK2017-05-21 18:43:34
JavaScript
Wasya UK, 2017-05-21 18:43:34

Is there npm for video?

I've been looking for a module for getting metadata from a video file for an hour already. Is there any way to get this data, or is it only in audio? Thanks in advance.
I found ffmetadata, there on their website, there seem to be video files, but when I try to use the module, I get an error:

{ Error: spawn ffmpeg ENOENT
    at exports._errnoException (util.js:1050:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:367:16)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn ffmpeg',
  path: 'ffmpeg',
  spawnargs:
   [ '-i',
     ReadStream {
       _readableState: [Object],
       readable: true,
       domain: null,
       _events: [Object],
       _eventsCount: 1,
       _maxListeners: undefined,
       path: 'file.mp4',
       fd: null,
       flags: 'r',
       mode: 438,
       start: undefined,
       end: undefined,
       autoClose: true,
       pos: undefined,
       bytesRead: 0 },
     '-f',
     'ffmetadata',
     'pipe:1' ] }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rustler2000, 2017-05-21
@dmc1989

```spawn ffmpeg ENOENT```
Need ffmpeg in path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question