Commit Graph

9 Commits

Author SHA1 Message Date
kevinguevara 0abfa2b8ed feat: Add Blend Mode support to Video and Image template fields 2026-06-02 23:01:58 -05:00
kevinguevara e85d8eabcc feat: Support brand Intro and Outro videos in template fields 2026-06-02 22:55:16 -05:00
kevinguevara 58d9b095a3 feat: Add batch video export support with Export Queue and modal 2026-06-02 22:16:51 -05:00
kevinguevara 9503dbfabc fix(rendering): synchronize FPS, implement render locks, respect brand segment duration, and fix local audio path resolving for ffmpeg 2026-06-02 20:40:30 -05:00
kevinguevara f998e454fe Refactor: remove AGPL imgly dependency and migrate background removal to python backend 2026-06-02 14:50:25 -05:00
kevinguevara 560a413c1e fix: dynamic video duration across ProductionForm + LivePreviewCanvas
- Expanded useVideoDurations to detect both form-sourced segments AND
  editable-slot video fields inside content scenes
- Wired videoDurations into ProductionForm (getTemplateDuration,
  compileExpressToTimeline, LivePreviewCanvas, ExportModal)
- LivePreviewCanvas now accepts videoDurations prop
- Simplified getTemplateDuration/compiler: any scene with a known
  video duration uses it, regardless of segmentSource type
- A 33s uploaded video now creates a 33s timeline, not 5s
2026-06-02 09:58:37 -05:00
kevinguevara a21675e5fc fix: 3 critical bugs — audio corruption, blob URLs, static duration
1. Audio/Video sync: During playback, let the browser handle media naturally
   and only force-seek when drift > 250ms. Prevents audio glitching caused
   by setting currentTime 30x/sec. When paused/scrubbing, sync precisely.

2. Blob URLs → Server uploads: All media uploads (BrandTabMedia, SceneFieldEditor,
   TemplateFieldInput) now POST to /api/upload and use persistent server URLs
   instead of blob: URLs that vanish on refresh.

3. Dynamic duration: Added useVideoDurations hook that probes actual video
   durations from uploaded form videos. getTemplateDuration and
   compileExpressToTimeline now accept videoDurations to override static
   durationSeconds for form-sourced scenes.
2026-06-02 09:48:28 -05:00
kevinguevara 7c4196475c fix: 3 bugs in Electron export pipeline
Bug 1: RENDERS_DIR mismatch (root cause)
- server.ts had hardcoded renders dir, now reads BRADLY_RENDERS_DIR env
- renderQueue.ts saves to ~/Library/.../Bradly/renders/
- server.ts now serves from the same directory

Bug 2: Upload origin pointing to wrong port
- uploadBlobContent.ts used window.location.origin (Vite 5173)
- Remotion bundler needs Express origin (3000) to access media
- Added getExpressOrigin() helper that detects Electron

Bug 3: Batch ZIP export using file-saver (doesn't work in Electron)
- Added saveBlobFile IPC method (preload + main)
- batchExporter.ts now uses native save dialog in Electron
- Web mode falls back to file-saver
2026-06-02 04:44:25 -05:00
kevinguevara b135a70cc7 Initial commit — Bradly branding editor platform 2026-06-02 03:27:03 -05:00