Chuyển đến nội dung
Skillpedia
Dựng video14k · #11257

krillinai-subtitle

Skill này làm gì

Skill này tạo tệp phụ đề cho video, được dịch sang ngôn ngữ khác, và có thể gồm một phiên bản kết hợp hai ngôn ngữ. Skill dành cho người làm nội dung muốn có chú thích cho video bằng ngôn ngữ khác.

Khi nào nên dùng

  • ✓Khi bạn có video YouTube hoặc video trực tuyến khác và muốn phụ đề bằng ngôn ngữ khác.
  • ✓Khi bạn có một tệp video trên máy và cần phụ đề cho nó.
  • ✓Khi bạn cần thêm một phiên bản phụ đề dọc ngắn cùng với phiên bản đầy đủ.

Liên kết skill

https://github.com/krillinai/OpenCreator/blob/master/skills/krillinai-subtitle/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/krillinai/OpenCreator/blob/master/skills/krillinai-subtitle/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể làm phụ đề tiếng Anh kèm bản dịch tiếng Trung cho liên kết YouTube này, và giữ video gốc cho các bước sau không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent dùng phụ đề có sẵn của nền tảng khi có, hoặc phiên âm lời nói nếu không có, rồi dịch văn bản và ghi các tệp phụ đề. Agent giữ video gốc để các bước sau có thể dùng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

KrillinAI Subtitle

Use this skill for the subtitle stage. Read skills/krillinai-cli/references/cli-contract.md first for binary location, execution working directory, configuration, and JSON behavior.

Command

(cd "$KRILLINAI_CWD" && "$KRILLINAI_CLI" subtitle "<input>" \
  --origin-lang en \
  --target-lang zh_cn \
  --workdir "$WORKDIR" \
  --caption-source any \
  --prepare-video)

Inputs

  • YouTube URL: prefer --caption-source any; platform captions are used first, then Whisper fallback.
  • Local file: use local:/abs/path/video.mp4 or a path accepted by the CLI.
  • Bilibili or other yt-dlp supported links: use when media download works; platform caption behavior may differ, so expect transcription fallback.

Important Flags

Flag Use
--origin-lang Source language, such as en, zh, ja
--target-lang Target language, such as zh_cn
--workdir Dedicated task directory
--caption-source any Prefer platform captions, fallback to transcription
--caption-source whisper Force transcription
--prepare-video Require the original video for later render stages
--bilingual-top=true Put target language on top in bilingual SRT
--subtitle-style-file Merge a JSON subtitle-style override
--dry-run Validate without downloads or AI calls

Outputs

After a real run, read paths from krillinai_manifest.json. Main files:

  • origin_language_srt.srt
  • target_language_srt.srt
  • bilingual_srt.srt
  • short_origin_mixed_srt.srt
  • origin_video.mp4 when media preparation produced or required video
  • origin_audio.mp3 when transcription preparation produced audio

subtitle --dry-run validates command shape but does not write a manifest or output files.

Verification

  • Require terminal JSON with "ok": true.
  • Confirm krillinai_manifest.json exists under --workdir.
  • Spot-check bilingual_srt.srt ordering and short_origin_mixed_srt.srt readability.
  • When --prepare-video was requested, require a non-empty origin_video output.
  • For Agent integration details, read skills/krillinai-cli/references/cli-contract.md.
Câu hỏi thường gặp

Nếu video không có phụ đề thì sao?

Skill tự động phiên âm lời nói như một phương án dự phòng.

Có thể dùng với Bilibili hoặc video trên máy không?

Có. Có thể dùng tệp cục bộ và các trang được hỗ trợ khác, dù kết quả phụ đề có thể khác nhau.

Tôi có thể đặt bản dịch lên trên không?

Có. Tệp song ngữ có thể đặt ngôn ngữ đích ở phía trên.

Chi tiết

Mô tả gốc của tác giả

Use when generating subtitles with KrillinAI CLI from a YouTube link, Bilibili/local video, or existing media, including platform caption download, Whisper fallback, translation, bilingual SRT, and short vertical subtitle output.

repo: krillinai/OpenCreator

Độ phổ biến

Sao GitHub
14k
Vị trí xếp hạng
#11257
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự