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.
- 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
- Node.js (>= 14.0.0)
- ffmpeg installed and added to PATH
# 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
Edit config/config.json
to specify the chunk size (in MB):
{
"chunkSizeMB": 10
}
- Place WMV files into the
input
directory. - 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
.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.