Video Length
Get video length using NodeJS and MediaInfo
API
await
input
Type: String
Full path to video
options.bin
Type: String
Default: MediaInfo
Full path to MediaInfo binary file
options.extended
Type: Boolean
Default: false
Return a bit more video specs
@output
Type: Number | Object
Depends on the extended
option. If extended = true
, returns an object with few more data:
Usage
const VideoLength = ; let video = './videos/MONICA BELLUCCI in the Matrix Sequels (HD Movie Scenes).mp4';
Changelog
v2.0.2:
- security fix
v2.0.0 (2019-08-27):
- moved from
FFprobe
toMediaInfo
- no more useless
silent
mode