Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/artheus/media-file-probe

node module using ffprobe to get metadata
https://github.com/artheus/media-file-probe

Last synced: about 1 month ago
JSON representation

node module using ffprobe to get metadata

Awesome Lists containing this project

README

        

# Media File Probe

[![Build Status](https://travis-ci.org/artheus/media-file-probe.svg)](https://travis-ci.org/artheus/media-file-probe.svg)
[![Dependency Status](https://david-dm.org/artheus/media-file-probe.svg)](https://david-dm.org/artheus/media-file-probe.svg) [![Greenkeeper badge](https://badges.greenkeeper.io/artheus/media-file-probe.svg)](https://greenkeeper.io/)

Tiny module, using ffprobe, to collect metadata about media files.

## Install
```bash
npm install media-file-probe
```

## Usage
```javascript
var mediaprober = require('media-file-probe')();

mediaprober.probe('/Users/artheus/somemediafile.mov').on('metadata', function(data){
// Now you can read the media file data from the data variable
});

```

## CLI
There is also a cli tool included that simply does what is in the example usage above and then prints the metadata.
You can use it like this

```bash
npm install -g media-file-probe

media-file-probe /Users/artheus/somemediafile.mov
{
... Lots o' metadata ...
}
```