Creators who turn books into short videos face a bottleneck. Writing a script, finding clips, adding subtitles, and exporting for each social channel takes hours. The open‑source project book‑video‑factory removes that friction. It reads a PDF, extracts key sentences, and builds a video script automatically. Then it calls a text‑to‑speech engine, pulls royalty‑free footage, and layers captions. All steps run in a single pipeline.
Masterphub.io lists this repo as a ready‑made skill. Users can import the workflow, plug in their OpenAI key and a video API token, and start generating videos with a single command. The output files are ready for TikTok, YouTube Shorts, Instagram Reels, or LinkedIn. Because the pipeline writes each video to a folder named after the target platform, creators can upload in bulk with their existing scheduling tools.
The core of the factory is a Python script that uses PyMuPDF to read the book, spaCy to find the most shareable sentences, and ffmpeg to stitch audio, video, and text. The script is modular. If a user prefers a different voice model, they replace one line. If they want a different stock footage source, they swap the API call. This flexibility lets the same repo serve a range of creators, from educators to marketers.
Automation also cuts cost. Instead of hiring a writer, a voice actor, and an editor, a single user can produce a batch of 10 videos in under an hour. The only recurring expense is the compute time for the language model and the video stock service. For creators who publish daily, that saves both time and money.
Scaling across platforms is a matter of naming. The factory adds a platform flag to the output file, then runs a tiny post‑process that resizes the video to the correct aspect ratio. One run can produce a 9:16 TikTok version, a 1:1 Instagram version, and a 16:9 YouTube version. No manual re‑encoding is needed.
Masterphub users who adopt the skill report smoother publishing workflows. They set up a Zapier trigger that watches the output folder, then pushes each file to the appropriate scheduler. The result is a steady stream of book‑derived content without the usual back‑and‑forth.
For creators looking to test the approach, the repo includes a sample PDF and a short guide. Clone the repo, install the dependencies, add API keys, and run python run_factory.py sample.pdf. In minutes you will have three videos ready for upload.
Automation does not replace the creator’s voice. It handles the repetitive steps so the creator can focus on selecting the right books and adding personal insights. The book‑video‑factory shows how a simple pipeline can turn a single text into a multi‑platform video series.
We turned this idea into a ready-to-use skill on Masterphub: "Book‑to‑Video multi‑platform generator".