vid_cat is a Rust-based tool that concatenates multiple .webm
video files in a directory into a single video using ffmpeg
. The tool automatically sorts video files by numeric identifiers found in their filenames and combines them in order.
- Automatic Sorting: The tool extracts numeric IDs from filenames and sorts them before concatenation.
- Video Concatenation: Uses
ffmpeg
to concatenate multiple.webm
files into a single output file. - Directory Scanning: Scans the
videos
directory for.webm
files to concatenate.
- ffmpeg: The program uses
ffmpeg
to handle video concatenation, so make sure it is installed on your system. - Rust toolchain: The tool is written in Rust, so you'll need Rust installed to compile and run the program.
git clone https://github.com/your-username/vid_cat.git
cd vid_cat
cargo build --release
Run the program in the directory containing a videos
subdirectory with .webm
files.
./target/release/vid_cat
- Ensure that your working directory has a
videos
subdirectory with.webm
files. - Run the command:
./target/release/vid_cat
This will:
- Scan the
videos
directory for.webm
files. - Sort the files based on the numeric ID in their filenames.
- Concatenate the files into a single output file named
<parent_directory_name>-concatenated.webm
.
- The tool looks for numeric values in the filenames and uses those values to determine the order of concatenation. For example, files like
video_001.webm
,video_002.webm
, andvideo_003.webm
will be concatenated in that order.
Successfully concatenated video files into parent_dir-concatenated.webm
This project is licensed under the GNU GPLv3 License. See the LICENSE file for more details.