😫 Vấn đề (The Pain Point)
Bạn có 1 video livestream dài 2 tiếng. Bạn đã ghi lại các đoạn hay vào Excel (ví dụ: 10:00-15:00 Talkshow, 20:00-25:00 Minigame). Giờ cần cắt ra 10 clip nhỏ để đăng TikTok.
Cách làm thủ công: Kéo vào Premiere, cắt từng đoạn, export từng file. Rất lâu.
🚀 Giải pháp Agentic (The Solution)
Tool đọc file CSV/Excel timecode và tự động cắt hàng loạt.
Tính năng:
- Bulk Cut: Cắt 50 clip trong 1 lần chạy.
- Auto Naming: Đặt tên clip theo nội dung ghi chú trong Excel.
- Accurate: Cắt chính xác đến từng giây.
🤖 Engineering Prompt (Copy & Paste)
**Role:** Python Media Developer
**Task:** Create a "Bulk Video Slicer" from CSV/Excel.
**Requirements:**
1. **Tech Stack:** Python, `pandas`, `moviepy`.
2. **Input:**
* Video File.
* CSV File with columns: `Start_Time` (HH:MM:SS), `End_Time`, `Output_Filename`.
3. **GUI:**
* Simple file picker for Video and CSV.
* Process Button.
4. **Logic:**
* Parse CSV timecodes (convert HH:MM:SS to seconds).
* Load Video.
* Loop through CSV rows:
* Create `subclip(start, end)`.
* `write_videofile` with the specific filename in CSV.
5. **Deliverables:**
* `video_slicer.py`
* `sample_cut_list.csv` (Template)
* `run.bat`
**Context:** Editors processing long webinars/streams into social media clips.
🧠 Giải mã Prompt
- Time Conversion: Dữ liệu thời gian thường là chuỗi “00:10:30”. Code cần hàm chuyển đổi thành số giây (ví dụ 630s) để MoviePy hiểu.
- CSV Template: Yêu cầu AI tạo file mẫu giúp bạn biết cách nhập liệu đúng chuẩn ngay từ đầu.
🛠️ Hướng dẫn
- Copy Prompt -> Paste -> Chạy.
- Điền timecode vào file
sample_cut_list.csv. - Mở Tool -> Chọn Video & CSV -> Start.