First commit

This commit is contained in:
Jon Staab
2026-04-04 07:21:00 -07:00
commit b431711e1c
4 changed files with 112 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
# Video Thumbnail Service
A lightweight microservice that generates video thumbnails by extracting a frame using ffmpeg.
## Requirements
- Node.js 18+
- ffmpeg installed on the system
## Setup
```bash
npm install
npm start
```
The service runs on port 3100 by default. Set the `PORT` environment variable to change it.
## Usage
```
GET /thumbnail?url=https://example.com/video.mp4
```
Returns a JPEG image of the first frame (at 1 second).
## Configuration
Set `VITE_THUMBNAIL_URL` in the Flotilla `.env` file to the deployed service URL:
```
VITE_THUMBNAIL_URL=https://your-thumbnail-service.example.com
```