zm_web_proc is a Rust-based tool that automates the processing of ZoneMinder export files. The tool extracts a ZIP file, processes video files using zm_vidsort
and mp4_to_webm
, and moves the converted .webm
files to a videos
directory.
- ZIP Extraction: Unzips the specified ZoneMinder export file.
- Video Sorting: Uses
zm_vidsort
to organize video files. - Video Conversion: Converts
.mp4
files to.webm
format using themp4_to_webm
tool. - File Management: Moves
.webm
files to avideos
directory.
- zm_vidsort: The program uses the
zm_vidsort
tool for organizing video files.- GitHub repo: zm_vidsort
- mp4_to_webm: The program uses
mp4_to_webm
to convert.mp4
files to.webm
format.- GitHub repo: mp4_to_webm
- unzip: The tool uses
unzip
to extract ZIP files. - Rust toolchain: You need Rust installed to compile and run the program.
Make sure both zm_vidsort and mp4_to_webm are installed and available in your system path.
-
zm_vidsort: Clone and install the
zm_vidsort
tool:git clone https://github.com/nestorwheelock/zm_vidsort.git cd zm_vidsort cargo build --release
-
mp4_to_webm: Clone and install the
mp4_to_webm
tool:git clone https://github.com/nestorwheelock/mp4_to_webm.git cd mp4_to_webm cargo build --release
-
unzip: Install
unzip
using your system's package manager:sudo apt-get install unzip # For Debian-based systems
git clone https://github.com/nestorwheelock/zm_web_proc.git
cd zm_web_proc
cargo build --release
To use zm_web_proc, specify a ZoneMinder export ZIP file as an argument. The tool will unzip the file, process the video files, and move the converted .webm
files to a videos
directory.
./target/release/zm_web_proc <zm_export_zip_file>
./target/release/zm_web_proc zm_export_12345.zip
This will:
- Unzip the
zm_export_12345.zip
file. - Organize video files using
zm_vidsort
. - Convert
.mp4
files to.webm
. - Move the
.webm
files to thevideos
directory in the current working directory.
- The processed
.webm
files will be moved to avideos
directory in the current working directory.
This project is licensed under the GNU GPLv3 License. See the LICENSE file for more details.