node-video-resize

1.0.1 • Public • Published

node-video-resize

video resize.

example

  • load video info
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
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()

Readme

Keywords

none

Package Sidebar

Install

npm i node-video-resize

Weekly Downloads

73

Version

1.0.1

License

MIT

Unpacked Size

3.98 kB

Total Files

6

Last publish

Collaborators

  • alfieri