1.1.0 • Published 1 year ago
video-length-measure v1.1.0
Video Length Measure
A Node.js script to measure the lengths of video files in a specified folder using FFmpeg.
Installation
Prerequisites
Ensure you have the following installed on your machine:
- Node.js (v14 or higher)
- npm (usually comes with Node.js installation)
- FFmpeg (required for video length measurement)
Installing FFmpeg
- Install FFmpeg on Windows - Download FFmpeg from ffmpeg.org.
- Extract the downloaded archive.
- Add the FFmpeg bin directory to your system's PATH.- Example: C:\ffmpeg\bin
 
- Example: 
 
- Install FFmpeg on macOS - Install FFmpeg using Homebrew:brew install ffmpeg
 
- Install FFmpeg using Homebrew:
- Install FFmpeg on Linux - Install FFmpeg via package manager:sudo apt-get install ffmpeg # Debian/Ubuntu sudo yum install ffmpeg # CentOS/RHEL
 
- Install FFmpeg via package manager:
Install Node.js Dependencies
Install the required npm dependencies for the script:
npm install
npm run check-video-lengths -- /path/to/your/videosExplanation:
- Installation: Provides detailed instructions on installing Node.js, npm, and FFmpeg across different operating systems.
- Install Node.js Dependencies: Guides users through installing necessary npm packages required for the script (fs-extra,path,fluent-ffmpeg,ffmpeg-static,ffprobe-static).
- Usage: Clearly explains how users can execute the script to measure video lengths.
- Output: Describes the format of the output generated by the script.
- Contributing: Encourages community contributions and provides instructions for issue reporting and pull requests.
- License: States the licensing terms under which the project is distributed.
This README.md file is designed to be a comprehensive guide for users, covering installation, setup, usage, and contribution guidelines for your npm package. Adjust any paths or instructions based on specific system configurations or additional requirements.