video-probe
v0.0.0
Published
```js const SOME_VIDEO_PATH = 'path-to-your-video.mp4' const vp = require('video-probe')
Downloads
2
Readme
video-probe
const SOME_VIDEO_PATH = 'path-to-your-video.mp4'
const vp = require('video-probe')
const someAsyncFunction = async () => {
const metadata = await vp(SOME_VIDEO_PATH)
console.log(metadata)
}
someAsyncFunction()
ouput:
{
width: 894,
height: 500,
duration: 15.756,
size: 211261,
display_aspect_ratio: '447:250',
metadata: {
streams: [ [Object] ],
format: {
filename: '/Users/davidchen/Desktop/video-resolution-lab/videos/video-one.mp4',
nb_streams: 1,
nb_programs: 0,
format_name: 'mov,mp4,m4a,3gp,3g2,mj2',
format_long_name: 'QuickTime / MOV',
start_time: 0,
duration: 15.756,
size: 211261,
bit_rate: 107266,
probe_score: 100,
tags: [Object]
},
chapters: []
}
}