Calculate length of videos in a folder inside your JavaScript Application.
using npm:
npm i calculate-videos-length
using yarn:
yarn add calculate-videos-length
using pnpm:
pnpm add calculate-videos-length
CommonJS:
CommonJS isn't supported!
ES Module:
import calculateVideoLength from "calculate-videos-length";
const info = await calculateVideoLength("/media/fluentmoheshwar/Data/Song/Hindi Songs/", ".mp4");
console.log(info);