This service is a simple rest api that allows you to upload a video and a watermark image to apply the watermark to the video. The service uses ffmpeg to apply the watermark to the video.
The body should be a form-data with two fields:\n
- video=file.mp4
- watermark=file.png
api/videos/upload
- Clone the repository
- Install the dependencies
npm install
- Create a .env file with the following content
PORT=3000
UPLOAD_DIR=uploads
- Start the server
npm start
This project needs ffmpeg to work, so you need to have it installed in your system. If you don't want to install it on your system, you can take advantage of docker to run the project. To run the project with docker, follow the steps below:
- Clone the repository
- Build the docker image
docker build -t watermark-api .
- Run the docker container
docker run -p 3000:3000 watermark-api
The project contanis a docker-compose file that will build the image and run the container, but you can also build the image manually if you want.