Fixes #69. The subtitle modal lets the user edit the caption text, but the edits only traveled through the in-browser Remotion path; the FFmpeg path (taken by every karaoke style and by any clip with server burns, i.e. all clips with default captions) sent style params only, so the server regenerated from the stored transcript and silently discarded the edits. /api/subtitle now accepts an optional 'words' list (clip-relative ms, the same shape the /transcript endpoint serves) and builds a synthetic transcript from it, so both the SRT and karaoke ASS generators burn the edited words verbatim. Words get Whisper's leading-space convention so the block collector keeps their boundaries. The modal sends them only when the text actually differs, and never on bulk apply-to-all (edits are per-clip). Verified live: an edited 5-word line burned exactly as typed, correctly grouped into blocks. |
||
|---|---|---|
| .. | ||
| public | ||
| seo | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite-plugin-seo.js | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.