1.1.0 • Published 1 year ago

video-length-measure v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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

  1. 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
  2. Install FFmpeg on macOS

    • Install FFmpeg using Homebrew:
      brew install ffmpeg
  3. Install FFmpeg on Linux

    • Install FFmpeg via package manager:
      sudo apt-get install ffmpeg  # Debian/Ubuntu
      sudo yum install ffmpeg      # CentOS/RHEL

Install Node.js Dependencies

Install the required npm dependencies for the script:

npm install
npm run check-video-lengths -- /path/to/your/videos

Explanation:

  • 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.

1.1.0

1 year ago

1.0.0

1 year ago