Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/alfierichou/node-video-resize
- Owner: AlfieriChou
- License: mit
- Created: 2020-06-01T03:06:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T07:33:54.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T20:49:21.405Z (3 months ago)
- Language: JavaScript
- Size: 776 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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()
```