# OgA-Encoder A video encoding web app (Encode, Trim, Merge, Move) built with React + Vite frontend and an Express backend that uses `ffmpeg` for video processing. ## Stack - **Frontend**: React 19, TypeScript, Tailwind CSS 4, Vite 7 (built as a single-file HTML bundle via `vite-plugin-singlefile`) - **Backend**: Node.js + Express 5, serving the built `dist/index.html` and handling ffmpeg jobs - **System**: `ffmpeg` / `ffprobe` required (installed via Nix) ## How to run The workflow `Start application` runs: ``` PORT=5000 node server/index.js ``` The server serves the pre-built `dist/index.html`. After any frontend changes, rebuild before restarting: ``` npm run build ``` ## Key files - `src/App.tsx` — main React UI - `server/index.js` — Express API (file upload, encoding jobs, download, trim, merge) - `vite.config.ts` — Vite config (single-file output) - `Task.md` — pending feature requests (audio/video quality controls, output format selection) ## User preferences