Fastest, Most Efficient, and 1 KB Bat/CMD batch file to do Batching
This script automates the process of merging MP4 video files with their corresponding SRT subtitle files into MKV files using mkvmerge. It's designed for batch processing, automatically detecting and combining matched MP4 and SRT files in the directory it's run in.
- Batch Merging: Automatically pairs and merges MP4 files with matching SRT subtitle files.
- Subtitle Integration: Adds subtitles as a separate track in the MKV file, labeled in English.
- Error Handling: Clearly notifies when corresponding SRT files are missing.
- Windows OS.
mkvmergemust be installed and set in the system's PATH.
No installation required. Just place the script in the directory with your MP4 and SRT files.
- Ensure
mkvmergeis installed and accessible from the command line. - Place the script in the directory with the MP4 and SRT files.
- Run the script:
- Double-click the script file, or
- Open Command Prompt in the script's directory and run
merge_video_with_subtitle.cmd.
- Processed files will be saved as MKV in the same directory.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.