Back to search
makeownsrt
SkillGitHub
Claude Code skill: 從 MKV 提取英文字幕並翻譯成繁體中文雙語 SRT
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Checked today
Badge for your README
Markdown
[](/listings/joshhu--makeownsrt)HTML
<a href="/listings/joshhu--makeownsrt"><img src="/api/listings/joshhu--makeownsrt/badge.svg" alt="findsafeskills safety rating" /></a>Install
i
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
將 `translate-srt.md` 複製到你的 Claude Code commands 目錄:
# 全域安裝 cp translate-srt.md ~/.claude/commands/translate-srt.md # 或專案層級安裝 cp translate-srt.md .claude/commands/translate-srt.md
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 102 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- # makeownsrt
- Claude Code skill:從影片提取字幕(或語音轉錄)並翻譯成雙語 SRT 檔案。支援 YouTube 網址直接下載、19 種語言互譯。
- ## 功能
- - **YouTube 下載**:直接貼上 YouTube 網址,自動用 yt-dlp 下載影片及字幕
- - 自動偵測影片中的字幕軌(支援 MKV、MP4 等格式)
- - 優先使用 YouTube 外部字幕或影片內嵌字幕
- - **無字幕軌時自動用 Whisper large 模型 + CUDA GPU 語音轉錄**
- - 支援 19 種語言互譯(預設:英文 → 繁體中文)
- - 分批翻譯,影視翻譯風格,口語自然流暢
- - 輸出雙語 SRT(目標語言在上、來源語言在下)
- - 輸出檔名與影片主檔名一致,播放器自動載入
- ## 前置需求
- - [Claude Code](https://docs.anthropic.com/en/docs/claude-code)
- - `ffmpeg` / `ffprobe`
- - `python3`
- - `yt-dlp`([yt-dlp](https://github.com/yt-dlp/yt-dlp),僅在下載 YouTube 影片時需要)
- - `whisper`([OpenAI Whisper](https://github.com/openai/whisper),僅在無字幕軌時需要)
- ## 安裝
- 將 `translate-srt.md` 複製到你的 Claude Code commands 目錄:
- ```bash
- # 全域安裝
- 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 偵測字幕軌 │
- ├─ 有字幕軌 → ffmpeg 提取 SRT ────────────────┤
- └─ 無字幕軌 → ffprobe 確認音軌 │
- ├─ 有音軌 → Whisper 語音轉錄 SRT ────────┤
- └─ 無音軌 → 停止 │
- │
- 分批翻譯 → 雙語 SRT
- ```
- ## 輸出格式
- 產生 `your-video.srt`(與影片同名),格式如下:
- ```srt
- 1
- 00:00:07,508 --> 00:00:09,643
- 德懷特「將軍」曼弗雷迪
- Dwight "The General" Manfredi.
- 2
- 00:00:09,643 --> 00:00:11,545
- 塔爾薩,我要你去那裡
- Tulsa, I want you to go there.
- ```
- ## 授權
- MIT License
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.