这是indexloc提供的服务,不要输入任何密码
Skip to content

tugrul/node-ffprobe

Repository files navigation

node-ffprobe main workflow

nodejs native bindings addon of ffprobe library

Installation

npm install --save @tugrul/ffprobe

Usage

const ffprobe = require('@tugrul/ffprobe');

ffprobe.getFileInfo('sample.mp4').then(result => {
    console.log(result);
});

Passing options

Available options are: probeSize, analyzeDuration

const ffprobe = require('@tugrul/ffprobe');

ffprobe.getFileInfo(sample.mp4, { probeSize: 1 * 1024 * 1024 * 1024, analyzeDuration: 1000 * 1000000 }).then(result => {
    console.log(result);
});

Build Options

You can specify PKG_CONFIG_PATH env variable if you want to link library with custom build of ffmpeg

export PKG_CONFIG_PATH=/path/to/ffmpeg-build/lib/pkgconfig
npm install

About

FFProbe native bindings for Node.js

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •