A simple application built with Node.js, Express, and ffmpeg using turborepo that allows users to add watermarks to videos. Users can upload a video, and the server applies a watermark to the video using ffmpeg.
Before running the application, ensure you have the following installed on your system:
- Node.js
- ffmpeg
- Clone the repository:
git clone [email protected]:hariscs/ai-hat.git
Run the following commands:
- Install dependencies
npm install
- Set the path to the ffmpeg executable in apps/api/src/controllers/uploadController.ts. Update the following line with the correct path:
ffmpeg.setFfmpegPath('/path/to/your/ffmpeg')
- Set the path to the ffmpeg executable in server.ts. Update the following line with the correct path:
npm run dev
This will start the app, api http://localhost:5001 and the frontend on http://localhost:3001. To test the app use a sample video from the apps/frontend/public/samples/train.mp4