Skip to main content

Agent-friendly CLI for video translation and subtitle production.

Project description

OpenBBQ

中文说明 · Usage Guide

OpenBBQ is a command-line tool for agent-driven video translation and subtitle production.

OpenBBQ provides composable tools for video download, audio extraction, ASR transcription, segmentation, translation, review, subtitle export, and subtitle burning. It does not force one fixed pipeline. The goal is to let an agent choose the right workflow for each task.

Why OpenBBQ?

In Chinese fansub and creator communities, the process of translating and subtitling foreign-language videos is often called "barbecue". Raw untranslated material is "raw meat"; the translated, subtitled result is "cooked meat".

OpenBBQ is meant to be an open-source, open subtitle translation platform.

Quick Start

Requirements

  • Python 3.12 or newer
  • uv, used to install the openbbq command and manage Python dependencies
  • ffmpeg, used for video download, audio/video merging, audio extraction, and video burning; subtitle burning also needs FFmpeg with libass support
  • An ASR backend. OpenBBQ currently supports whisper.cpp through its Python binding
  • An ASR model. Models are not downloaded with the package. After installation, run openbbq models list, then explicitly run openbbq models pull ...
  • A local desktop browser if the video platform requires login, human verification, or a browser challenge

For Agent

Read the [install guide](https://raw.githubusercontent.com/ACAne0320/OpenBBQ/main/docs/install-agent.md) and help me install [OpenBBQ](https://github.com/ACAne0320/OpenBBQ).

Manual Install

uv tool install 'openbbq[whispercpp]'
openbbq doctor
openbbq models list
openbbq models pull large-v3-turbo
openbbq doctor

Use

Human workflow:

openbbq init --workspace workspaces/demo 'https://www.youtube.com/watch?v=...'
cd workspace/demo
openbbq fetch
openbbq extract-audio
openbbq transcribe --model large-v3-turbo --language en --gpu
openbbq segment
openbbq translate init zh
# fill in translations in workspaces/demo/translation.zh.json
openbbq translate check zh
openbbq export --to zh --mode bilingual --format ass --output out/zh.ass
openbbq burn

Agent workflow:

openbbq --json status --workspace workspaces/demo

Agents should use --json and pass the workspace explicitly with -w. For long-running tasks, poll the workspace state with openbbq status. For subtitle tasks, follow skills/openbbq-subtitles/SKILL.md.

For local files, YouTube login, ASS presets, outputs, and command details, see docs/usage.md.

Roadmap

[ ] Windows/Linux support [ ] More ASR backends [ ] More video platform authentication support [ ] A visual translation step for people who want to translate manually [ ] ...

License

Apache-2.0. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openbbq-0.0.1.tar.gz (65.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openbbq-0.0.1-py3-none-any.whl (80.8 kB view details)

Uploaded Python 3

File details

Details for the file openbbq-0.0.1.tar.gz.

File metadata

  • Download URL: openbbq-0.0.1.tar.gz
  • Upload date:
  • Size: 65.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for openbbq-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d8c0b429f6231e36d0131220f79179495f40a1038e2fd4352a95d5abbb10d4e8
MD5 7ecae13658ce1e6b885cfeae57723baf
BLAKE2b-256 6e111ae4353eda93a9347b9dd2572eef5086d43acc14427944ecc1b7b4be4fa0

See more details on using hashes here.

File details

Details for the file openbbq-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: openbbq-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 80.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for openbbq-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22c2399efd2a768525979cc76f9f5f841fa0cb49252cc220a6cbaa9b6b16ec4a
MD5 b55e653bc66cfc2039d3b4c979934b3e
BLAKE2b-256 73f9c601a9ca926e8a6c1339195cf1aa3810a44c3b436601bcbe3d0280f836b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page