Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghondar/hls-ffmpeg
https://github.com/ghondar/hls-ffmpeg
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ghondar/hls-ffmpeg
- Owner: ghondar
- License: mit
- Created: 2015-08-17T20:21:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-02T16:14:06.000Z (almost 9 years ago)
- Last Synced: 2024-10-13T11:01:13.578Z (3 months ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 10
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hls-ffmpeg
> Quick converter hls and ffmpeg resolutions## Install
```js
npm install --save hls-ffmpeg
```## Convert video
```js
var hf = require('hls-ffmpeg')
var json = {
input: './360.mp4',
format: '848x480',
output: './output/test.mp4'
}
hf.ffmpeg(json1, function(err, data){
console.log(err||data)
})
```
## Convert video```js
var json = {
input: 'test.mov',
time: '10'
}hf.hls(json, function(err, data){
console.log(err||data);
})
```