HUB
Sign inSign up
server logo

ffmpeglab/server

By ffmpeglab

•Updated about 2 hours ago

the api and runner for ffmpeglab -> https://api.ffmpeglab.com

Image
Developer tools
Content management system
Databases & storage
1

8.3K

ffmpeglab/server repository overview

⁠FFmpegLab Server

Supabase

FFmpegLab Server is the API backend for the FFmpegLab ecosystem. It handles render job management, project configuration, and media processing orchestration.


⁠Quick Start

# Clone and configure
git clone https://github.com/ffmpeglab/server.git
cd server
cp .env.example .env

# Edit .env with your database credentials
nano .env

# Start all services
docker compose up -d

The server will be available at http://localhost:3000.


⁠Services

ServiceDescriptionPort
apiMain API server3000
render-runnerExecutes FFmpeg rendering jobs-
file-runnerHandles file operations with S3-
logs-runnerProcesses logs-

⁠Powered by Supabase

FFmpegLab Server is built on Supabase — the open-source Firebase alternative — as a full-cycle provider for all backend services:

ServiceProviderDescription
PostgreSQLSupabasePrimary database with Row Level Security (RLS)
pgmqSupabaseJob queue for asynchronous render processing
S3-compatible StorageSupabaseFile storage for media assets and rendered output
REST APISupabaseAuto-generated REST API with JWT authentication
API KeysSupabaseUser-managed API keys with role-based access
LogsSupabaseCentralized logging with retention policies
⁠Database Schema & Models

The server uses TypeORM with models defined in src/models/:

ModelDescription
RenderRender job tracking and status
ApiKeyAPI key management with permissions
LogPieceSystem and user activity logs

⁠Configuration

⁠Minimal .env file
# Database
DB_HOST=postgres
DB_USER=postgres
DB_PORT=5432
DB_PASSWORD=your_password
DB_NAME=ffmpeglab

# Queue Database (can be the same as DB_HOST)
QUEUE_DB_HOST=postgres
QUEUE_DB_USER=postgres
QUEUE_DB_PORT=5432
QUEUE_DB_PASSWORD=your_password
QUEUE_DB_NAME=ffmpeglab_queue

# S3 Storage (required for file-runner)
S3_ACCESS_KEY=your_access_key
S3_SECRET_KEY=your_secret_key
S3_REGION=us-east-1
S3_ENDPOINT=https://s3.amazonaws.com
⁠Environment Variables
VariableDescriptionRequired
DB_HOSTPostgreSQL hostYes
DB_USERPostgreSQL userYes
DB_PASSWORDPostgreSQL passwordYes
DB_NAMEPostgreSQL database nameYes
QUEUE_DB_HOSTQueue PostgreSQL hostYes
QUEUE_DB_NAMEQueue PostgreSQL database nameYes
S3_ACCESS_KEYS3 access keyFor file-runner
S3_SECRET_KEYS3 secret keyFor file-runner
DB_MIGRATION_ENABLEDAuto-run migrationsNo (default: false)
IS_RENDER_RUNNEREnable render runner modeFor render-runner
IS_FILE_RUNNEREnable file runner modeFor file-runner
IS_LOGS_RUNNEREnable logs runner modeFor logs-runner

⁠API Reference

Full API documentation: api.ffmpeglab.com/api⁠

⁠Request/Response Objects

All schemas are defined in the OpenAPI specification. Key models from src/models/:

SchemaModelDescriptionLink
EditorProjectConfigurationProjectFull editor project configurationView⁠
EditorProjectProjectProject metadataView⁠
RenderDataRenderRender job dataView⁠
RenderDtoRenderRender data transfer objectView⁠
RunDtoRenderRun execution requestView⁠
RenderResponseRenderAPI response for render operationsView⁠
EditorLayerProjectIndividual editor layerView⁠
EncoderProjectProjectEncoder project configurationView⁠
MediaProjectMedia file metadataView⁠
⁠Common Endpoints
MethodEndpointDescriptionModel
GET/Health check-
GET/rendersList all rendersRender[]
POST/rendersCreate a render jobRender
GET/renders/{id}Get render by IDRender
PUT/renders/runTrigger render executionRunDto

⁠Build from Source

npm install
npm run build
npm start

⁠License

MIT



Open source and self‑hostable. Powered by Supabase.

Tag summary

Content type

Image

Digest

sha256:23c303398…

Size

663.8 MB

Last updated

about 2 hours ago

docker pull ffmpeglab/server