MPR - Media Processor

Media transcoding platform with dual execution modes: local (Celery + MinIO) and cloud (AWS Step Functions + Lambda + S3).

System Overview

Architecture

System Overview Open full size

Components

Data Model

Entity Relationships

Data Model Open full size

Entities

Job Flow

Job Lifecycle

Job Flow Open full size

Job States

Execution Modes

API Interfaces

# REST API
http://mpr.local.ar/api/docs     - Swagger UI
POST /api/assets/scan             - Scan S3 bucket for media
POST /api/jobs/                   - Create transcode job
POST /api/jobs/{id}/callback      - Lambda completion callback

# GraphQL (GraphiQL)
http://mpr.local.ar/graphql       - GraphiQL IDE
query { assets { id filename } }
mutation { createJob(input: {...}) { id status } }
mutation { scanMediaFolder { found registered } }

Access Points

# Local development
127.0.0.1 mpr.local.ar
http://mpr.local.ar/admin         - Django Admin
http://mpr.local.ar/api/docs      - FastAPI Swagger
http://mpr.local.ar/graphql       - GraphiQL
http://mpr.local.ar/              - Timeline UI
http://localhost:9001              - MinIO Console

# AWS deployment
https://mpr.mcrn.ar/              - Production

Quick Reference

# Render SVGs from DOT files
for f in *.dot; do dot -Tsvg "$f" -o "${f%.dot}.svg"; done

# Switch executor mode
MPR_EXECUTOR=local    # Celery + MinIO
MPR_EXECUTOR=lambda   # Step Functions + Lambda + S3