Below is a “sanity-check” on the idea, broken into:
- High-level feasibility
- Component-by-component notes (what looks clear, what may bite later)
- Questions / clarifications to answer before you code
- Things you might rethink or defer for the MVP
- A lightweight roadmap & folder layout suggestion
Feel free to cherry-pick whatever is useful.
────────────────────────────────────────────────────────
- Feasibility (TL;DR) 🔎
────────────────────────────────────────────────────────
• 100-clip queues, one-by-one transcoding, PyQt6 UI, ffmpeg/ffprobe command-line, Nvidia NVENC detection → All 100 % doable in Python on your hardware.
• Level of effort
– Core MVP (UI skeleton, add video/folder, per-clip options, export serially, progress) ≈ 2–3 weekends for an experienced PyQt dev, 4–6 for a hobbyist.
– All the polish items (dynamic letter-/pillar-boxing, GPU fallback, unordered failure log, log-rotation, per-clip resize + audio bitrate, etc.) will at least double that time.
No obvious “show-stopper” technical risks; most tasks have well-known patterns or existing snippets you can adapt.
────────────────────────────────────────────────────────
2. Walk-through of each area
────────────────────────────────────────────────────────
UI / Qt
• Single-pane list of custom “ClipWidget” objects is straightforward with a QScrollArea + QVBoxLayout.
• Re-ordering → either drag-&-drop or the up/down buttons you propose; both are trivial once every widget exposes its index via the shared model.
• Long tasks → use QThread or QRunnable + QThreadPool; both integrate with Qt’s signal/slot scheme so the progress bar can update without blocking.
Data model
• A single “Project” (or “Queue”) object as the single source of truth (SOT) avoids widget state drift.
• Each widget only fires “set_xxx(index, value)” signals to the model; model emits “dataChanged” back to widgets if needed. MVC boxes checked.
Folder scanning
• 100 files * ffprobe = ±1 s each ⇒ 1–2 min worst-case if done serially.
– Consider a small pool of worker threads (e.g. 4) just for metadata extraction so the progress bar actually moves.
– Remember Windows long-path (>260 chars) edge cases.
GPU detection / dummy probe
• Simplest way is to run ffmpeg -hide_banner -hwaccel cuda -hwaccel_output_format cuda -f lavfi -i nullsrc -t 1 -f null - and capture stderr. Non-zero exit → disable checkbox.
• Doing this in a background thread avoids freezing the splash screen.
Generating ffmpeg commands
• Concatenate the following pieces:
– base input (-i "path" -fflags +genpts)
– optional scale + pad filter: (only if aspect ratio changes)
– codec / gpu: or
– audio: (or )
– output path.
• Put this logic in its own helper so later you can swap in a more sophisticated template.