Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alfierichou/node-video-resize

video resize.
https://github.com/alfierichou/node-video-resize

Last synced: 15 days ago
JSON representation

video resize.

Awesome Lists containing this project

README

        

# node-video-resize

video resize.

## example

* load video info

```javascript
const { loadVideoInfo } = require('./')
const path = require('path')

const videoPath = path.resolve(__dirname, './__tests__/test.mp4')

const bootstrap = async () => {
const ret = await loadVideoInfo(videoPath)
console.log(ret)
}

bootstrap()
```

* resize video

```javascript
const { videoResize } = require('./')
const path = require('path')

const videoPath = path.resolve(__dirname, './__tests__/test.mp4')
const outputPath = path.resolve(__dirname, './video/output.mp4')

const bootstrap = async () => {
const ret = await videoResize({
inputPath: videoPath,
outputPath,
format: 'mp4',
size: '640x480'
})
console.log(ret)
}

bootstrap()
```