Creating a side‑by‑side video used to need a lot of editing time. The auto‑compare‑video repo automates that work. It takes two video files, aligns them, and outputs a single clip that shows both streams together. The script uses OpenCV to read frames, resizes them to the same height, and stacks them horizontally. It then writes the combined frames to a new file.
For educators, the tool can turn a lecture recording and a live demo into one video. Students see the explanation and the example at the same time. No manual cutting is required. Marketers can compare an old ad with a new version in seconds. The result is a clear visual that highlights differences.
The project is open source on GitHub. It runs on Python 3 and needs only OpenCV and NumPy. Installation is a single pip command. Once set up, a user runs a short command line call with the two source files and the desired output name. The script handles frame rates and resolution mismatches automatically.
Masterphub.io lists this repo as a ready‑to‑use skill. Users can add the workflow to their prompt library, call it from a chat interface, and get a comparison video without touching code. The integration saves time and lowers the barrier for anyone who wants visual comparisons.
Because the code is lightweight, it runs on a laptop or a cheap cloud instance. No GPU is needed. That makes it accessible for small schools and freelance creators. The output file can be uploaded to YouTube, embedded in LMS platforms, or shared on social media.
In short, auto‑compare‑video turns a repetitive editing task into a one‑line operation. It shows how AI‑assisted tools are opening video production to more people.
We turned this idea into a ready-to-use skill on Masterphub: "Side‑by‑side video generator".