How joireve/clipbank works
ClipBank is a command-line video preparation library: users initialize a library, add or retry videos, then inspect, verify, or export a manifest for downstream detection. The add workflow probes and identifies inputs, normalizes them to the detect profile, segments and thumbnails them, hashes outputs, and records metadata for resumable runs. The graph includes documented capabilities whose implementation excerpts were not shown; those links cite the README where applicable.
Main entry points: pipeline.cpp Add and retry · main.cpp Command router · subprocess.cpp Process runner · manifest.cpp Manifest export
Components 19
CLI workflows
- Command router
src/main.cpp - Manifest export
src/manifest.cpp - Library verification
src/verify.cpp - Run listing
src/db.cpp
Media processing
- Add and retry
src/pipeline.cpp - Media probe
src/probe.cpp - Detect profile
src/profile.cpp - Normalize video
src/pipeline.cpp - Segment clips
src/pipeline.cpp - Thumbnail
src/pipeline.cpp - Content hashes
src/sha256.cpp
Library catalog
- Library setup
src/library.cpp - SQLite index
src/db.cpp - Library paths
src/library.cpp
Runtime support
- Process runner
src/subprocess.cpp - File utilities
src/util.cpp
Other components
- Operator
- ffmpeg / ffprobe
- Detection project
Connections 25
- Operator → Command router: runs commands
README.md - Command router → Library setup: initializes library
src/main.cpp - Command router → Add and retry: adds or retries
src/main.cpp - Command router → Manifest export: exports manifest
src/main.cpp - Command router → Library verification: verifies runs
src/main.cpp - Command router → Run listing: lists runs
README.md - Library setup → SQLite index: creates schema
src/library.cpp - Add and retry → Media probe: probes input
README.md - Add and retry → Detect profile: uses profile
src/pipeline.cpp - Add and retry → Normalize video: runs stage
src/pipeline.cpp - Add and retry → Segment clips: runs stage
src/pipeline.cpp - Add and retry → Thumbnail: runs stage
src/pipeline.cpp - Add and retry → Content hashes: hashes outputs
README.md - Add and retry → SQLite index: records run state
src/pipeline.cpp - Add and retry → Library paths: uses library paths
- Manifest export → SQLite index: reads run records
src/manifest.cpp - Manifest export → Library paths: uses library paths
src/manifest.cpp - Library verification → SQLite index: checks records
- Library verification → Media probe: checks media
src/verify.cpp - Normalize video → Process runner: runs process
src/pipeline.cpp - Segment clips → Process runner: runs process
src/pipeline.cpp - Thumbnail → Process runner: runs process
src/pipeline.cpp - Media probe → Process runner: runs probe tools
src/probe.cpp - Process runner → ffmpeg / ffprobe: executes tools
README.md - Detection project → Manifest export: consumes exported data
README.md