Text to vertical video in 100+ styles: AI codes each scene (HTML/SVG/WebGL), renders a 9:16 MP4 with music and English/Vietnamese voice. MCP, CLI and REST for AI agents.
Mã chép từ AskEditor (MIT)
- Nguồn: https://github.com/AskEditor/ai-video-editing-skills, commit
e20000b262fb5f2b7e0e87f9354d44bc00e545ca(chép ngày 28/11/2026). - Giấy phép: mã MIT (
LICENSE, © AskEditor). Font OFL 1.1 (mỗi font cóOFL.txtđi kèm). Model tải lúc cài, mỗi model giữ giấy phép riêng (NOTICE.md). - Phần đã chép:
fx/core/(toàn bộ),fx/effects/{__init__,options,clean_cut,captions,qc_check}.py,fx/run.py,fx/meta.py,effects/{clean-cut,captions,qc-check}/effect.json,fonts/,requirements.txt. 38 hiệu ứng còn lại KHÔNG chép. - LumReels gọi phần này qua
edit/py/lumedit.py(không quafx/run.py).
Chỗ LumReels đã sửa (đánh dấu [LumReels] trong mã)
fx/core/words.py- Ngôn ngữ và model chép lời lấy từ biến môi trường:
FX_LANG(vdvi),FX_WHISPER(vdlarge-v3),FX_DEVICE(auto|cuda|cpu). Không đặt thì giữ nguyên như gốc (small.en, tiếng Anh, CPU). - Chạy GPU khi có CUDA:
cuda_libraries()nạp DLL cuBLAS/cuDNN từ wheelnvidia-*(Windows); Linux dùngLD_LIBRARY_PATHdoedit/env.mjsđặt; macOS chạy CPU. GPU lỗi thì tự chuyển CPU. - Khoá cache chữ (
model_key) gồm model + ngôn ngữ, nên đổi model thì chép lại. - Không dùng câu mồi (
initial_prompt) ngoài tiếng Anh (làm whisper bịa câu tiếng Việt). - Từ đệm tiếng Việt (ờ, ờm, ừm, ơ, hừm); câu whisper hay bịa ("hãy subscribe…", "ghiền mì gõ"…) bị bỏ ngay ở lượt nghe đầu.
- Ghi thiết bị whisper thật (
DEVICE:cuda float16hoặccpu int8 (lý do)) vào cache chữ (device), để log Edit thấy khi GPU âm thầm rơi về CPU.
- Ngôn ngữ và model chép lời lấy từ biến môi trường:
fx/core/text.py: khiFX_LANG=vi, các mặt chữ Poppins (thiếu dấu Việt) vẽ bằng Be Vietnam Pro (OFL), donode edit/setup.mjsghép từengine/fonts.fx/core/models.py: thêm lệnhfetch-vision(chỉ tải model mặt/người; model giọng doFX_WHISPERlo).- Mọi
read_text()ghi rõencoding="utf-8". Ngoài ra LumReels luôn chạy Python với-X utf8/PYTHONUTF8=1vì Windows mặc định cp1252 làm vỡ chữ Việt ở các chỗwrite_text(). fx/core/video.py:FrameWriterđọcFX_VCODEC_ARGS(danh sách JSON tham số ffmpeg, vdh264_nvenc) thay cho libx264 khi Node đặt (edit/encoder.mjs); không đặt thì giữ libx264 như gốc.