Giter Site home page Giter Site logo

wmv-file-splitter's Introduction

WMV File Splitter

WMV File Splitter is a Node.js utility script for splitting WMV (Windows Media Video) files into smaller chunks. This is especially useful for managing large media files.

Features

  • Configurable chunk sizes (in MB)
  • Handles multiple WMV files in the input directory
  • Moves processed files to a processed directory
  • Uses fluent-ffmpeg for media processing

Prerequisites

  • Node.js (>= 14.0.0)
  • ffmpeg installed and added to PATH

Installation

# Clone the repository
git clone https://github.com/yourusername/wmv-file-splitter.git

# Navigate into the project directory
cd wmv-file-splitter

# Install dependencies
npm install

# Compile TypeScript
npm run build

Configuration

Edit config/config.json to specify the chunk size (in MB):

{
  "chunkSizeMB": 10
}

Usage

  1. Place WMV files into the input directory.
  2. Run the script:
npm run dev

The script will attempt to split each file into chunks based on the configured chunk size. The output will be placed in a folder within the output directory named after the original file and the chunk size, formatted as [originalFileName]-[chunkSizeMB]MB.

โš ๏ธ Important: If an output folder already exists for a specific file and chunk size, the script will log a message and skip processing for that file to avoid overwriting.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

wmv-file-splitter's People

Contributors

cdelalama avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.