https://github.com/artheus/media-file-probe
node module using ffprobe to get metadata
https://github.com/artheus/media-file-probe
Last synced: about 2 months 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-12T22:49:07.000Z (about 5 years ago)
- Last Synced: 2025-04-13T03:57:21.010Z (about 2 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Media File Probe
[](https://travis-ci.org/artheus/media-file-probe.svg)
[](https://david-dm.org/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 ...
}
```