WonderPhi Library — 25 Recipes for the Programs You Already Use

Reading Time: 3 minutes
437 words

3 min read


3 parts, 10 paragraphs

Software acceleration for existing hardware.

You have 500 videos to transcode. You don’t sit down and write a parallel execution plan from scratch. You run one line:

python wpc-recipe.py ffmpeg-h264 .videos

…and out comes videos.plan.wpc.txt — one tuned command per file, ready to feed straight to WonderPhi Compute, which runs them across every core you own.

WonderPhi Library is the recipe book for WonderPhi Compute. It ships 25 pre-optimized recipes for the most popular command-line tools. Point a recipe at a folder, and it generates a WPC plan with the right flags already filled in — the ones you’d otherwise have to look up on Stack Overflow.

Three Steps

  1. python wpc-recipe.py --list — see every recipe
  2. python wpc-recipe.py <recipe> <folder> — generate the plan
  3. wpc.exe that-plan.plan.wpc.txt — WonderPhi Compute runs it

Or, with the always-on watcher installed, add --inbox and the plan drops straight into the pipeline to run itself.

The Full Recipe Index

Media

Recipe What It Does Needs
ffmpeg-h264 Transcode each video to H.264 MP4 ffmpeg
ffmpeg-audio Extract audio from each video to MP3 ffmpeg
ffmpeg-thumb Grab a thumbnail from each video ffmpeg
ffmpeg-gif Convert each video to an optimized GIF ffmpeg

Images

Recipe What It Does Needs
img-resize Resize each image to max 1920px ImageMagick
img-webp Convert each image to WebP ImageMagick
img-thumb Make a 256×256 thumbnail of each ImageMagick
img-compress Strip metadata and recompress ImageMagick

Documents

Recipe What It Does Needs
pdf-text Extract text from each PDF pdftotext
pdf-compress Compress each PDF Ghostscript
pandoc-pdf Convert documents to PDF pandoc
pandoc-docx Convert documents to Word .docx pandoc

Archives and Integrity

Recipe What It Does Needs
zip-each Compress each file into its own .7z 7-Zip
unzip-each Extract each archive into its own subfolder 7-Zip
sha256 SHA-256 each file with a combined manifest certutil (built-in)
md5 MD5 each file certutil (built-in)

Web and Dev

Recipe What It Does Needs
curl-check HEAD health-check each URL in a list curl (built-in)
curl-get Download each URL into the output folder curl (built-in)
pytest-dirs Run pytest in each subdirectory pytest
git-gc Run git gc on each repo subdirectory git
git-pull git pull –ff-only in each repo git

GPU Recipes

Recipe What It Does Needs
ffmpeg-nvenc GPU H.264 transcode via NVENC ffmpeg + NVIDIA
ffmpeg-nvenc-hevc GPU HEVC transcode (smaller files) ffmpeg + NVIDIA
whisper Speech-to-text transcription on GPU Whisper + CUDA
realesrgan 4x image upscaling on GPU Real-ESRGAN

Every recipe uses one of three input models: files (scan a folder), dirs (one job per subfolder), or lines (one job per line in a text file). GPU recipes auto-detect your NVIDIA card and fall back to the CPU equivalent when no GPU is present.

No Lock-In

The Library generates plain-text plan files. You can read them, edit them, combine them, or write your own. Nothing is hidden. Nothing is compiled. The recipe is just the recipe — WonderPhi Compute is the kitchen.

Zero dependencies. Python standard library only. No network. No telemetry.

Get WonderPhi Library — $9.99 →

Browse the full WonderPhi product line