Makeownsrt banner
joshhu joshhu

Makeownsrt

Development community

Description

Claude Code skill: 從 MKV 提取英文字幕並翻譯成繁體中文雙語 SRT

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

makeownsrt

Claude Code skill:從影片提取字幕(或語音轉錄)並翻譯成雙語 SRT 檔案。支援 YouTube 網址直接下載、19 種語言互譯。

功能

  • YouTube 下載:直接貼上 YouTube 網址,自動用 yt-dlp 下載影片及字幕
  • 自動偵測影片中的字幕軌(支援 MKV、MP4 等格式)
  • 優先使用 YouTube 外部字幕或影片內嵌字幕
  • 無字幕軌時自動用 Whisper large 模型 + CUDA GPU 語音轉錄
  • 支援 19 種語言互譯(預設:英文 → 繁體中文)
  • 分批翻譯,影視翻譯風格,口語自然流暢
  • 輸出雙語 SRT(目標語言在上、來源語言在下)
  • 輸出檔名與影片主檔名一致,播放器自動載入

前置需求

安裝

將 `translate-srt.md` 複製到你的 Claude Code commands 目錄:

# 全域安裝
cp translate-srt.md ~/.claude/commands/translate-srt.md

# 或專案層級安裝
cp translate-srt.md .claude/commands/translate-srt.md

使用方式

在 Claude Code 中執行:

# 本機影片
/translate-srt video.mkv                                    # 預設:英文 → 繁體中文
/translate-srt video.mp4 en>zh                              # 英文 → 繁體中文
/translate-srt video.mkv ja>en                              # 日文 → 英文
/translate-srt video.mp4 fr>de                              # 法文 → 德文

# YouTube 影片
/translate-srt https://www.youtube.com/watch?v=xxxxx        # 下載並翻譯成繁體中文
/translate-srt https://youtu.be/xxxxx ja>zh                 # 下載,日文 → 繁體中文

支援語言

代碼 語言 代碼 語言 代碼 語言
zh 繁體中文 en 英文 ja 日文
ko 韓文 ru 俄文 fr 法文
de 德文 es 西班牙文 pt 葡萄牙文
it 義大利文 ar 阿拉伯文 th 泰文
vi 越南文 pl 波蘭文 nl 荷蘭文
sv 瑞典文 tr 土耳其文 uk 烏克蘭文
hi 印地文

工作流程

輸入(本機檔案 / YouTube URL)
  │
  ├─ YouTube URL → yt-dlp 下載影片 + 外部字幕
  │    ├─ 有外部字幕 → 直接使用 ──────────────────────┐
  │    └─ 無外部字幕 → 繼續偵測 ─┐                    │
  │                               │                    │
  └─ 本機檔案 ───────────────────┘                    │
       │                                               │
       ffprobe 偵測字幕軌