2.0.0 • Published 3 years ago

rit-media-supporter v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

RIT Media Supporter

Get the duration of video or audio files/streams with ffmpeg.

Install

FOR Ubuntu: sudo apt update && sudo apt install ffmpeg

FOR MAC: brew install ffmpeg

$ npm install --save rit-media-supporter

Usage

const {getAudioDuration, getVideoDuration} = require('rit-media-supporter')
(async () => {
    console.log(await getAudioDuration("https://www.w3schools.com/tags/horse.mp3"))
    console.log(await getVideoDuration("https://www.w3schools.com/tags/movie.mp4"))
})()

License

MIT. Based on rit-media-supporter.

2.0.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago