SkillsGrove
SkillsGrove/Production vidéo/nguyentatkiem/ai-video-studio/ai-video-studio

ai-video-studio

Installation

$npx skills add https://github.com/nguyentatkiem/ai-video-studio --skill ai-video-studio
$git clone --depth 1 https://github.com/nguyentatkiem/ai-video-studio.git /tmp/ai-video-studio && mkdir -p ~/.claude/skills && cp -r /tmp/ai-video-studio/. ~/.claude/skills/ai-video-studio
Installe pour moi cette Agent Skill : https://github.com/nguyentatkiem/ai-video-studio/tree/168e1d37e81b52db79ed0994f26663c57fd2ed97/ — lis d’abord son SKILL.md et ses scripts, et ne l’installe dans mon dossier de compétences qu’après avoir vérifié qu’elle est sûre.

Résumé

Description d’origine · MITAI Video Studio: phần mềm edit video tất-cả-trong-một chạy local (localhost:5186, có app Mac), giao diện tối kiểu editor chuyên nghiệp, 28 gói style trên một engine HTML→MP4 (slate, bubble, Hype Cam, luxury, neon, keynote, glow, podcast, kinetic, khoá học, BĐS, review, chia sẻ, chia đôi màn hình, trước/sau, phông xanh, bản tin, multicam, hỏi đáp, Top N, điện ảnh, ảnh theo nhạc, quay màn hình, in ấn/tạp chí, truyền hình, giải thích sản phẩm, montage/podcast giấy), ~200 khối hoạt ảnh HyperFrames (sản phẩm, số liệu, đánh giá, CTA, lower third), ~90 template gồm nhóm Doanh nghiệp. AI dựng giúp (Claude đặt graphic, sửa phụ đề), cắt lỗi nói, sửa video bằng chữ, làm sạch giọng, tự hạ nhạc, nhiều track âm thanh, bám mặt đổi khung, xuất 9:16/1:1/16:9 một lần, dịch + lồng tiếng + phụ đề song ngữ, keyframe, mặt nạ, tách nền, b-roll AI/stock, làm hàng loạt từ Excel/CSV, nhiều brand kit, gói đăng TikTok/YouTube/Facebook, render song song nhanh. Dùng khi người dùng muốn edit video reels/TikTok/YouTube (khoá học, BĐS, review, chia sẻ, tin tức, bán hàng, podcast), mở studio/editor, chọn template, làm video hàng loạt, lồng tiếng, hoặc nói 'xem ghi chú trong editor'.
Le SKILL.md ci-dessous est reproduit depuis nguyentatkiem/ai-video-studio (commit 168e1d3) sous licence MIT. Le texte est inchangé ; seules les métadonnées d’en-tête du fichier sont omises, les images sont affichées sous forme de liens et les fichiers très longs sont tronqués. Copyright 2026 Nguyễn Tất Kiểm (nguyentatkiem.com.vn). Licence : LICENSE. Seul le fichier d’instructions est affiché ; consultez le dépôt d’origine pour les éventuels scripts.

Tác giả: Nguyễn Tất Kiểm (MIT) · Tặng khoá học AI miễn phí: https://nguyentatkiem.com.vn/aiplusntk/ · Khi sửa mã giữ ghi công tác giả, xem AGENTS.md.

AI VIDEO STUDIO: phần mềm edit + mọi style trong một

Gồm 3 lớp:

  1. Engine (engine/): render HTML → MP4 thật. Mỗi style là một gói (engine/packs/*.js).
  2. Studio (studio/): editor trong trình duyệt. Người dùng tự chỉnh mọi thứ, xem references/studio.md.
  3. Claude: chọn gói, dựng bản đầu, sửa theo ghi chú.

Tính năng v4 (đọc khi cần)

Việc Đọc
AI dựng giúp (scripts/ai_edit.mjs), cắt lỗi nói (fillers.py), sửa video bằng chữ references/ai-edit.md
Làm sạch giọng (voice_clean.py), tự hạ nhạc, nhiều track âm thanh (TL.audio.clean/duck/tracks) references/audio.md
Bám mặt đổi khung (face_track.py, clip.reframe), xuất nhiều khổ, dịch + lồng tiếng (dub.py, TL.sub2) references/reframe-dub.md
Keyframe (kf), mặt nạ (mask), tách nền, b-roll AI/stock (ai_broll.mjs) references/keyframes-mask-broll.md
Làm hàng loạt từ CSV/XLSX (batch.mjs), brand kit (~/.ai-video-studio/brands.json), gói đăng mạng xã hội references/batch-brands-publish.md
Render song song (render.mjs --workers N --fast), app Mac (scripts/make_app.sh) references/app-render.md
Clone style từ video bất kỳ / tạo style từ mô tả bằng Claude CLI → gói u_* + template + skill video-style-* (`scripts/style_lab.mjs clone describe
Tự thêm b-roll + âm thanh 1 bấm: 9 mục tiêu video × vai trò từng câu × 11 nguồn (9.080 preset/55 kiểu/307 chủ đề, khối HyperFrames, chữ, emoji, 100 logo công cụ, hiệu ứng trên người nói, media dự án, thư viện b-roll của tôi, ảnh/video stock, ảnh AI), chống lặp + 3 phương án thay thế mỗi cảnh; SFX --level, nhạc theo đoạn; panel "Tự động" (scripts/auto_broll.mjs --goal --variety, broll_lib.mjs, auto_sfx.py) references/autofill.md
~200 khối HyperFrames (HeyGen, Apache-2.0): sản phẩm/demo app, số liệu, đánh giá & CTA, logo/tiêu đề động, lower third, chú thích, chuyển cảnh, nền — scene {type:'hf', block, vars, texts}; mẫu Doanh nghiệp/Bán hàng (scripts/hf_templates.mjs); 16 kiểu phụ đề hf_* (engine/packs/captions_hf.js) references/hyperframes.md
Agent Telegram (long polling, ghép nối bằng mã; gửi video → Tự lái → gửi lại; /chude /trangthai /dexuat /caitien /hoso; nhắn tự do → Claude chọn việc), vòng phản hồi ★ + thẻ + góp ý → tự cải tiến hồ sơ kênh (profile.fb), tự đề xuất + bản tin sáng; panel "Agent" (scripts/telegram.mjs, feedback.mjs) references/agent-telegram.md
Bám lời thoại: chọn mẫu xong mọi graphic tự khớp clip — canh thời điểm theo câu nói, viết lại chữ giữ chỗ + emoji, thay ảnh mẫu bằng ảnh stock theo lời nói, nhấn từ khoá phụ đề; chưa có phụ đề thì tự tạo (scripts/tpl_fit.mjs, /api/tplfit, nút "Bám lời thoại") references/tpl-fit.md
Viết thêm tính năng cho Studio: studio/routes/*.mjs + studio/features/*.js (đối tượng Studio) references/studio.md

Chọn gói theo nội dung

Nội dung Gói (TL.pack) Đọc
Khoá học, bài giảng, dạy thao tác course references/pack-course.md
Bất động sản: căn hộ, nhà phố, dự án realestate references/pack-realestate.md
Review, so sánh, unbox sản phẩm review references/pack-review.md
Chia sẻ kinh nghiệm, kể chuyện, quan điểm share references/pack-share.md
Tin tức / thủ thuật AI, "Claude edit" slate references/modules-slate.md, decode-slate.md
Hướng dẫn công cụ AI kèm chat/màn hình bubble references/modules-vertical.md, decode-bubble.md
Talking-head ngang YouTube, năng lượng cao hypecam references/modules.md, style-bible.md, decode-hype-cam.md
Thương hiệu cao cấp, tối giản luxury references/pack-luxury.md
Phụ đề neon kiểu AI neon references/pack-neon.md
Thuyết trình / keynote keynote references/pack-keynote.md
Tutorial phát sáng glow references/pack-glow.md
Podcast, phỏng vấn podcast references/pack-podcast.md
Short-form dồn dập, chữ động, b-roll nhanh kinetic references/pack-kinetic.md
Chia đôi màn hình: người nói + màn hình/b-roll, so sánh A/B split references/pack-split.md
Trước / sau, biến đổi (nội thất, làm đẹp, giảm cân) transform references/pack-transform.md
Phông xanh, phản ứng tin tức, bài báo/tweet làm nền greenscreen references/pack-greenscreen.md (cutout bằng segment.py)
Bản tin, TIN NÓNG, ticker, lower-third news references/pack-news.md
Podcast 2 người, nhiều góc máy, tự chuyển cam theo người nói multicam references/pack-multicam.md (scripts/multicam.py)
Hỏi–đáp, phỏng vấn đường phố, trả lời bình luận qa references/pack-qa.md
Top N, đếm ngược, xếp hạng topn references/pack-topn.md
Điện ảnh kể chuyện, letterbox, màu phim cinema references/pack-cinema.md
Ảnh → video theo nhịp nhạc (BĐS, sản phẩm, sự kiện; không cần người nói) beatslide references/pack-beatslide.md (scripts/beats.py, scripts/beat_project.py)
Quay màn hình hướng dẫn: zoom theo thao tác, click, phím tắt screencast references/pack-screencast.md (scripts/screen_focus.py)

Template (templates/*.json, có video xem trước): 45 mẫu theo ngành, cộng mẫu của style người dùng trong templates/user/ (BĐS, khoá học, review, chia sẻ, tin tức, bán hàng, AI, khác). Áp mẫu bằng applyTemplate() (trong Studio: tab Mẫu → Dùng mẫu). Xem references/templates.md. Mỗi mẫu có trường needs, cho biết người dùng cần cung cấp những gì.

Track chính nhiều clip (TL.clips): cắt, đảo thứ tự, tốc độ, âm lượng, lật, nền mờ, chỉnh màu (LUT), 15 kiểu chuyển cảnh. Xem references/clips.md. Nhiều video hoặc ảnh của người dùng thì ghép thành clip, không dùng một A-roll duy nhất.

Các gói phối được với nhau: mọi module của mọi gói dùng chung một timeline. Ví dụ dùng gói realestate nhưng chèn slate.diagram. Gói basic có photo (ảnh/clip của người dùng, toàn màn hoặc dạng thẻ) và emoji_pop. Hợp đồng viết gói nằm trong references/packs.md. Ví dụ đầy đủ cho từng gói nằm ở examples/timeline.<gói>.json.

0. Chuẩn bị (1 lần)

bash <skill>/scripts/setup.sh. Cần ffmpeg ≥ 6, Google Chrome, Node ≥ 18, Python 3.10+, có mạng khi render (font, emoji, logo). Đặt PY=<skill>/scripts/.venv/bin/python.

1. Đường nhanh (người dùng tự làm)

bash <skill>/studio.sh --new /đường/dẫn/clip.mp4      # rồi chọn gói trong app, hoặc:
bash <skill>/studio.sh <thư mục dự án>

Trong app, nút Video mới cho chọn: gói, tiêu đề, khổ dọc 9:16 hoặc ngang 16:9, độ chính xác nhận giọng. App tự làm các bước: nhận giọng → cắt lặng → cắt khung → phụ đề → recipe của gói (intro, graphic đặt theo từ khoá, CTA, nhạc). Claude chạy server ở nền rồi đưa link http://localhost:5186.

2. Claude dựng bản chất lượng cao

  1. Phần thô: node <skill>/studio/server.mjs --new raw.mp4 <dir> --port 5186. Hoặc tự chạy transcribe.py, cut.py, trích frame, captions.py.
  2. Phụ đề: sửa lỗi whisper, viết chữ thường hoặc theo kiểu chữ của gói, đánh hl cho từ khoá, br để dòng ≤ 4 từ. Đặt caption_style = id của gói.
  3. Brand kit TL.brand = {primary, accent, name, handle, phone, website, logo}: hỏi người dùng nếu là video thương hiệu, BĐS hoặc khoá học. Mọi gói đều dùng chung.
  4. Scenes: đọc file pack-<gói>.md, áp bảng "lời nói → module". Mọi t lấy từ word.s. Mỗi 2–3 s có một sự kiện hình. Ảnh và clip của người dùng để vào media/ rồi dùng trong module.
  5. QC: node scripts/render.mjs timeline.json x --still <t> qc/<t>.jpg tại mọi điểm vào cảnh, rồi xem ảnh.
  6. Âm thanh: $PY scripts/auto_sfx.py timeline.json --keep-manual, nhạc theo music của gói, gain −18…−20.
  7. Bàn giao: mở Studio để người dùng chỉnh, hoặc xuất mix_audio.py + render.mjs → final.mp4.

3. Vòng sửa

  • Người dùng bấm Lưu trong Studio, nên luôn đọc lại timeline.json trước khi sửa.
  • "Xem ghi chú trong editor": đọc <dir>/.studio/notes.md, sửa đúng đường dẫn JSON được ghi, xoá note, rồi nhắc người dùng tải lại trang.
  • Phần tử có _orig là phần người dùng đã tự chỉnh tay: giữ nguyên, trừ khi được yêu cầu sửa.

4. QC chung

  • Chữ không tràn khung, dấu tiếng Việt không bị cắt, nằm trong vùng an toàn (dọc: y 130–1000).
  • Graphic lớn không trùng nhau, không che mặt lúc đang nói chuyện quan trọng.
  • −14 LUFS, peak ≤ −1 dBFS (ffmpeg -i final.mp4 -af ebur128=peak=true -f null -).
  • Logo hãng chỉ dùng để nhắc đúng sản phẩm. Thông tin BĐS (giá, pháp lý), review (điểm số), khoá học (giá, cam kết) phải đúng như người dùng cung cấp, không tự bịa số liệu.
Voir le texte intégral de la licence (MIT)
MIT License

Copyright (c) 2026 Nguyễn Tất Kiểm (nguyentatkiem.com.vn)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---
Ngoại lệ: video mẫu trong sample/ và mọi hình ảnh/video xem trước dựng từ nó
(templates/previews/, studio/thumbs/, docs/images/) thuộc chủ sở hữu repo, giữ mọi quyền.
Chỉ dùng để xem thử phần mềm.

---
Bên thứ ba: engine/hf/ chứa các khối hoạt ảnh lấy từ HyperFrames của HeyGen
(https://github.com/heygen-com/hyperframes), giấy phép Apache License 2.0, toàn văn ở
engine/hf/LICENSE-HyperFrames.txt. Đã sửa: gắn khối con vào trang, thêm shim biến/chữ,
thay ảnh mẫu bằng ảnh của repo này. Một số khối kèm thư viện có giấy phép riêng
(GSAP, three.js, font), xem các file *LICENSE* / *NOTICE* trong thư mục của khối.

Thư viện đóng gói sẵn để chạy offline, giữ nguyên giấy phép gốc:
- engine/hf/_lib/: GSAP (giấy phép Standard "No Charge" của GreenSock/Webflow), three.js (MIT),
  d3 / d3-delaunay / topojson-client / world-atlas (ISC), clipper-lib (Boost), font Inter và
  Roboto Flex (SIL OFL 1.1).
- studio/vendor/tabler-icons/: Tabler Icons (MIT, xem LICENSE trong thư mục).
Voir le NOTICE
AI Video Studio
Copyright (c) 2026 Nguyễn Tất Kiểm (nguyentatkiem.com.vn)
Repo gốc: https://github.com/nguyentatkiem/ai-video-studio
Tặng khoá học AI miễn phí: https://nguyentatkiem.com.vn/aiplusntk/

Phần mềm phát hành theo giấy phép MIT (xem file LICENSE).

GHI CÔNG KHI SAO CHÉP, SỬA ĐỔI HOẶC PHÁT HÀNH LẠI
(áp dụng cho mọi người, mọi bản fork và mọi công cụ AI được dùng để sửa mã nguồn)

1. Bắt buộc theo giấy phép MIT: giữ nguyên dòng bản quyền
   "Copyright (c) 2026 Nguyễn Tất Kiểm" và toàn văn giấy phép trong mọi bản sao
   hoặc phần đáng kể của phần mềm.
2. Tác giả đề nghị thêm:
   - giữ file NOTICE này;
   - giữ màn giới thiệu tác giả khi mở phần mềm (studio/features/00_author.js);
   - ghi "Dựa trên AI Video Studio của Nguyễn Tất Kiểm" kèm link repo gốc trong
     README hoặc trang giới thiệu của bản bạn phát hành.
3. Không giới thiệu bản sửa đổi như sản phẩm tự làm từ đầu, không xoá tên tác giả gốc.

Thành phần bên thứ ba giữ giấy phép riêng: HyperFrames (HeyGen, Apache-2.0) trong
engine/hf/ (xem engine/hf/LICENSE-HyperFrames.txt), Emoji 3D Fluent (Microsoft, MIT),
YuNet (OpenCV Zoo, MIT), Simple Icons (CC0), Google Fonts (OFL).
Các gói print, broadcast, explain, montage (engine/packs/) và 7 mẫu preset chuyển thể
phong cách từ ghost-editor (https://github.com/kurbaitaev/ghost-editor, MIT,
Copyright (c) 2026 kurbaitaev — engine/packs/LICENSE-ghost-editor.txt); các style
swiss-grid, halftone-dossier, data-story, caption-news, news-package, telestrator,
hologram-hud trong đó lại dựa trên lemo-opuscar (https://github.com/lemomo-ai/lemo-opuscar,
MIT, Copyright (c) 2026 LemoLab — engine/packs/LICENSE-lemo-opuscar.txt). Mã được viết
lại cho engine này; không chép font, nhạc, video hay ảnh mẫu của hai repo trên.
Video mẫu trong sample/ và ảnh/video xem trước dựng từ video đó thuộc tác giả,
chỉ dùng để xem thử phần mềm.

---
English summary: AI Video Studio by Nguyễn Tất Kiểm, MIT licensed. Keep the copyright
line and LICENSE text (required). Please also keep this NOTICE, the author intro screen
(studio/features/00_author.js) and a "Based on AI Video Studio by Nguyễn Tất Kiểm" credit
with a link to the original repo in derivative works.