長尺動画から字幕付きクリップを一括作成

長尺動画を、字幕付きの短いクリップN本に分割します。動画全体の文字起こしは一度だけ行い、AIが見どころを選び、各クリップのトリミングと字幕付けを並列で処理します。TikTok、Reels、Shorts向けの縦型(9:16)、Instagram向けの正方形(1:1)や縦長(4:5)への変換も可能で、字幕位置は画面比率に合わせて自動調整されます。

  • 動画
  • 6個のパイプライン
  • ≥ 11.6 クレジット

AIエージェント

ターミナル

初めてですか? クイックスタート
01
Homebrew brew install pipe2-ai/tap/pipe2
Go go install github.com/pipe2-ai/pipe2-cli/cmd/pipe2@latest
02
APIトークンを取得 ↗ echo "$PAT" | pipe2 auth login --token -

結果を変える

--input必須
asset_url既定値Source video: a YouTube or social URL, a direct media URL, a local file, or an existing pipe2 asset. Remote and local sources are uploaded automatically; use --asset <id> or --no-fetch when the asset is already available.
--reformat
enum既定値Optional output aspect ratio. Leave empty to preserve the source's native aspect (default: fastest, cheapest). Set to 9:16 for TikTok/Reels/Shorts, 1:1 or 4:5 for Instagram, 16:9 for horizontal YouTube cards from a vertical source.
· 9:16 · 1:1 +2
9:161:14:516:9
--highlights-count
int既定値5How many moments to pick when highlights runs (auto mode). Ignored if --clips is set.
--highlights-style
string既定値Natural-language steer for the highlights picker: e.g. "the funniest moments", "the strongest arguments". Empty uses the picker's default.
--clips
string既定値Optional path to a JSON file overriding the auto-picker, shaped [{"context": "...", "start_sec": 42.5, "end_sec": 78.0}, ...]. When set, the highlights step is skipped. Leave empty to let the highlights pipeline pick automatically.
--corrections
string既定値Comma-separated word-boundary substitutions applied to the transcript, in the form "from=to,from=to". Use it when the recognizer mis-hears the same word the same way every time (a name, an acronym, a domain term). To preserve a phrase that contains a substring you also want to rewrite, declare the longer phrase first as a no-op ("phrase=phrase,word=replacement"): longer matches win, so the phrase is shielded before the bare-word rule fires. Case-sensitive.
--lang
string既定値enISO 639-1 transcription language, or 'auto'.
--no-watermark
bool既定値falseShip the output unbranded. Skips the watermark step entirely.
--parallel
int既定値4Max number of clips to process in parallel.
--position
enum既定値autoVertical caption position. "auto" (default) keeps text away from the main subject when possible and otherwise places it at the bottom. Set a position explicitly to override.
auto · top · middle +1
autotopmiddlebottom
--preset
enum既定値serif-editorialCaption styling preset for every clip.
tiktok-bold-yellow · minimal-white · subtle-drop +3
tiktok-bold-yellowminimal-whitesubtle-dropkaraoke-gradientbig-serifserif-editorial
--watermark-scale
int既定値20Watermark width as a percentage of the video width.
--watermark-url
asset_url既定値Override the default Pipe2 logo with your own image (URL or local path). Empty means use the bundled Pipe2 watermark.
--watermark-variant
enum既定値lightWhich bundled Pipe2 logo to use when --watermark-url is empty. "light" for dark videos, "dark" for bright ones; coloured variants match the clip palette.
amber · aqua · crimson +4
amberaquacrimsondarkemeraldindigolight
仕組み 6個のパイプライン
  1. 動画全体を一度だけ文字起こしし、その文字起こしを選択したすべてのクリップで再利用します。

    入力元: OpenClaw Creator, Why 80% of Apps Will Disappear
    テキスト
    00:00:00,180  Today, I'm sitting down with Peter Steinberger, the creator of OpenClaw, the open source personal AI agent that has completely taken over the internet.
    00:00:09,060  The GitHub repo exploded to over 160,000 stars practically overnight.
    00:00:14,130  The community has built countless projects, like Malt Book, where bots talk among themselves.
    00:00:19,560  And now, the bots are even renting humans to do tasks in the real world.
    00:00:24,220  In our conversation, we discuss his aha moment, his contrarian development philosophies, and what this means for builders in 2026.
    00:00:32,740  Let's dive in.
    00:00:38,980  So good to see you, man.
    00:00:39,960  Hey, what's up?
    00:00:40,760  Um, so you've made something people want.
    …
  2. 文字起こしを読み、編集に適した見どころをN件選びます。--clipsでクリップのJSONリストを手動指定した場合、この自動選択は省略されます。

    JSON
    [{"context":"Peter explains OpenClaw's core differentiator: local execution gives it access to everything the user can do, unlike cloud-based AI.","desired_seconds":32,"start_sec":95.24000000000001,"end_sec":127.64},{"context":"The vivid moment Peter realized OpenClaw's creative problem-solving: it autonomously transcribed a voice message using ffmpeg and OpenAI's API without being explicitly programmed to do so.","desired_seconds":106,"start_sec":515.182,"end_sec":621.252},{"context":"Peter's contrarian prediction: 80% of apps disappear because personal AI agents manage data and tasks more naturally than purpose-built applications.","desired_seconds":55,"start_sec":641.792,"end_sec":696.312},{"context":"Peter's philosophy on building: minimize friction by using Unix tools and CLIs instead of inventing new abstractions, letting the model handle creative problem-solving.","desired_seconds":54,"start_sec":1178.264,"end_sec":1232.584},{"context":"Peter articulates why swarm intelligence mirrors human society: individuals alone can't build iPhones or go to space, but groups specializing together achieve anything.","desired_seconds":46,"start_sec":258,"end_sec":303.5}]
  3. 選択した各区間を文の境界に合わせて切り出し、字幕に使う各クリップ対応の文字起こしを返します。

    動画
  4. video-reframe 場合のみ --reformat

    --reformatを指定した場合、各クリップを指定のアスペクト比に変換し、話している人物を画面内に収め、ショットの切り替わりに合わせて自然に構図を変更します。指定しない場合は元動画のアスペクト比を保ちます。

    動画
  5. 対応する文字起こしを、選択した字幕スタイルと位置で各クリップに追加します。

    動画
  6. 左上にPipe2ロゴ(または独自の--watermark-url)を重ね、再投稿されても出典が伝わるようにします。透かしを省くには--no-watermarkを指定します。

    動画