porter-workflow
Automated video localization, local/API ASR, subtitle translation, and dual-version FFmpeg hardsub workflow with a native Gradio WebUI.
Downloads & Community Adoption
Health & Engineering Analysis (5 Pillars)
1. Governance & Community100 / 200 ▾
2. PEP Metadata & Packaging200 / 200 ▾
3. Security & Supply Chain200 / 200 ▾
4. Documentation, SEO & Ecosystem155 / 200 ▾
5. Engineering, CI & Quality200 / 200 ▾
Official Documentation & Usage Guide — porter-workflow
Show full original documentation (English README) ▾
Porter Workflow turns video URLs (YouTube, Bilibili, TikTok, X/Twitter, Instagram) or
local media/subtitles into bilingual & Chinese subtitles and hard-subbed MP4s. Plan first,
one capability per stage (no silent runtime fallback); offline Whisper (faster-whisper),
key-free translation, LLM adapters, and 1080p target quality ship in the base package,
while Gradio stays optional in [web].
Prerequisites
- Python 3.11–3.13 (or
uv) - FFmpeg + ffprobe with
libassonPATH(ffmpeg -filters | grep subtitles) - Deno (recommended) or Node ≥ 20 on
PATHfor YouTube
Quickstart
WebUI Workbench
uv tool install "porter-workflow[web]" && porter # http://127.0.0.1:7860
# or run without installing:
uvx --from "porter-workflow[web]" porter
Agent Skill
npx skills add RolinShmily/porter-workflow
Installs skills/porter-workflow/ — a self-contained JSON CLI over the
published PyPI package (auto-bootstrapped via uv).
Python Core API
pip install porter-workflow
from porter import plan_source, run_plan
plan = plan_source("https://www.youtube.com/watch?v=...", quality="1080p", burn="dual")
if plan.feasible:
print(run_plan(plan).workflow.artifacts)
Supported Sources
| Source | Examples | Native Subtitles | Notes |
|---|---|---|---|
| YouTube | youtube.com, youtu.be |
Yes | Needs Deno or Node ≥ 20 |
| Bilibili | bilibili.com, b23.tv |
Yes | High quality / CC may need cookies |
| TikTok | tiktok.com, vm.tiktok.com |
Yes | — |
| X / Twitter | x.com, twitter.com |
No | Uses ASR (faster-whisper by default) |
instagram.com |
No | Uses ASR; gated reels may need cookies | |
| Local files | .mp4 / .wav / .srt / .vtt |
Optional (--subtitle-file) |
Subtitles run without FFmpeg |
Output Layout
porter_output/<video_id>_<safe_title>/
├── raw/ video.mp4, audio.wav, transcript.json/.txt, subtitle.srt, cover.jpg, metadata.json
├── cooked/ subtitle_{bilingual,zh}.{srt,ass}, video_{bilingual,zh}.mp4
└── .tmp/ scratch (safe to delete between runs)
Documentation
| Document | Scope |
|---|---|
docs/architecture.md |
Layers, workflow & pipeline, media, subtitles, and jobs |
docs/design.md |
Architectural rationale & key trade-offs |
docs/reference.md |
Python API (import porter), WebUI CLI flags & Skill reference links |
docs/development.md |
Setup, four gates, extending, licence rules, and release |
Also see skills/porter-workflow/SKILL.md, CONTRIBUTING.md, and CHANGELOG.md.
Acknowledgements
Built on and inspired by yt-dlp, FFmpeg & libass, faster-whisper, VideoCaptioner, Gradio, and Pydantic.
License
MIT — see LICENSE.