Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/artheus/media-file-probe
- Owner: artheus
- Created: 2016-02-14T13:30:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-12T22:49:07.000Z (over 4 years ago)
- Last Synced: 2024-04-24T14:29:38.298Z (7 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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-probemedia-file-probe /Users/artheus/somemediafile.mov
{
... Lots o' metadata ...
}
```