Skip to content
Back to search

makeownsrt

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
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/joshhu--makeownsrt/badge.svg)](/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)

  1. # makeownsrt
  2. Claude Code skill:從影片提取字幕(或語音轉錄)並翻譯成雙語 SRT 檔案。支援 YouTube 網址直接下載、19 種語言互譯。
  3. ## 功能
  4. - **YouTube 下載**:直接貼上 YouTube 網址,自動用 yt-dlp 下載影片及字幕
  5. - 自動偵測影片中的字幕軌(支援 MKV、MP4 等格式)
  6. - 優先使用 YouTube 外部字幕或影片內嵌字幕
  7. - **無字幕軌時自動用 Whisper large 模型 + CUDA GPU 語音轉錄**
  8. - 支援 19 種語言互譯(預設:英文 → 繁體中文)
  9. - 分批翻譯,影視翻譯風格,口語自然流暢
  10. - 輸出雙語 SRT(目標語言在上、來源語言在下)
  11. - 輸出檔名與影片主檔名一致,播放器自動載入
  12. ## 前置需求
  13. - [Claude Code](https://docs.anthropic.com/en/docs/claude-code)
  14. - `ffmpeg` / `ffprobe`
  15. - `python3`
  16. - `yt-dlp`([yt-dlp](https://github.com/yt-dlp/yt-dlp),僅在下載 YouTube 影片時需要)
  17. - `whisper`([OpenAI Whisper](https://github.com/openai/whisper),僅在無字幕軌時需要)
  18. ## 安裝
  19. 將 `translate-srt.md` 複製到你的 Claude Code commands 目錄:
  20. ```bash
  21. # 全域安裝
  22. cp translate-srt.md ~/.claude/commands/translate-srt.md
  23. # 或專案層級安裝
  24. cp translate-srt.md .claude/commands/translate-srt.md
  25. ```
  26. ## 使用方式
  27. 在 Claude Code 中執行:
  28. ```
  29. # 本機影片
  30. /translate-srt video.mkv # 預設:英文 → 繁體中文
  31. /translate-srt video.mp4 en>zh # 英文 → 繁體中文
  32. /translate-srt video.mkv ja>en # 日文 → 英文
  33. /translate-srt video.mp4 fr>de # 法文 → 德文
  34. # YouTube 影片
  35. /translate-srt https://www.youtube.com/watch?v=xxxxx # 下載並翻譯成繁體中文
  36. /translate-srt https://youtu.be/xxxxx ja>zh # 下載,日文 → 繁體中文
  37. ```
  38. ## 支援語言
  39. | 代碼 | 語言 | 代碼 | 語言 | 代碼 | 語言 |
  40. |------|------|------|------|------|------|
  41. | zh | 繁體中文 | en | 英文 | ja | 日文 |
  42. | ko | 韓文 | ru | 俄文 | fr | 法文 |
  43. | de | 德文 | es | 西班牙文 | pt | 葡萄牙文 |
  44. | it | 義大利文 | ar | 阿拉伯文 | th | 泰文 |
  45. | vi | 越南文 | pl | 波蘭文 | nl | 荷蘭文 |
  46. | sv | 瑞典文 | tr | 土耳其文 | uk | 烏克蘭文 |
  47. | hi | 印地文 | | | | |
  48. ## 工作流程
  49. ```
  50. 輸入(本機檔案 / YouTube URL)
  51. │
  52. ├─ YouTube URL → yt-dlp 下載影片 + 外部字幕
  53. │ ├─ 有外部字幕 → 直接使用 ──────────────────────┐
  54. │ └─ 無外部字幕 → 繼續偵測 ─┐ │
  55. │ │ │
  56. └─ 本機檔案 ───────────────────┘ │
  57. │ │
  58. ffprobe 偵測字幕軌 │
  59. ├─ 有字幕軌 → ffmpeg 提取 SRT ────────────────┤
  60. └─ 無字幕軌 → ffprobe 確認音軌 │
  61. ├─ 有音軌 → Whisper 語音轉錄 SRT ────────┤
  62. └─ 無音軌 → 停止 │
  63. │
  64. 分批翻譯 → 雙語 SRT
  65. ```
  66. ## 輸出格式
  67. 產生 `your-video.srt`(與影片同名),格式如下:
  68. ```srt
  69. 1
  70. 00:00:07,508 --> 00:00:09,643
  71. 德懷特「將軍」曼弗雷迪
  72. Dwight "The General" Manfredi.
  73. 2
  74. 00:00:09,643 --> 00:00:11,545
  75. 塔爾薩,我要你去那裡
  76. Tulsa, I want you to go there.
  77. ```
  78. ## 授權
  79. MIT License

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.