Sign inSign up

gemneye/ffmpeg-beastmode

By gemneye

•Updated about 1 year ago

High-performance FFmpeg API with advanced monitoring and observability features

Image
Integration & delivery
API management
Developer tools
0

1.9K

gemneye/ffmpeg-beastmode repository overview

⁠FFmpeg API: Advanced Multimedia Processing Platform

⁠🎬 Overview

FFmpeg API is a sophisticated, scalable REST API for advanced multimedia processing, offering cutting-edge features for video and audio manipulation. Built with Python 3.11 and FastAPI, this microservice provides robust, secure, and performant multimedia transformation capabilities.

⁠🚀 Key Features

  • WhisperX Audio Transcription: Word-level audio transcription with precise timing
  • Ken Burns Effect Generator: Dynamic slideshow creation with intelligent pan and zoom
  • Chatterbox Text-to-Speech (TTS): Advanced voice generation with voice cloning and customization
  • Comprehensive FFmpeg Processing: Wide range of video and audio transformation endpoints
  • Real-time WebSocket Communication: Live job status and progress tracking
  • Prometheus Metrics: Comprehensive performance monitoring
  • Docker Containerization: Easy deployment and scaling
  • Voice Management System: Voice reference uploads and management
  • Video Overlay System: Dynamic visual effects and branding capabilities

⁠🛠 Tech Stack

  • Language: Python 3.11
  • Web Framework: FastAPI
  • Task Queue: Celery
  • Message Broker: Redis
  • Monitoring:
    • Prometheus
    • Grafana
  • Containerization: Docker
  • Core Processing: FFmpeg

⁠📦 System Architecture

⁠Core Components
  • main.py (672 lines): Primary FastAPI application with advanced routing
  • worker.py (2185 lines): Celery background task processing
  • security.py (342 lines): FFmpeg command validation
  • metrics.py (210 lines): Prometheus metrics collection
  • websocket_manager.py (302 lines): Real-time communication
  • voice_storage.py (245 lines): Voice asset management
  • overlay_manager.py (228 lines): Video overlay system
⁠Services
  1. FFmpeg API: REST multimedia processing endpoints
  2. Redis: Background task message broker
  3. Celery Worker: Asynchronous task processing
  4. Prometheus: Metrics collection
  5. Grafana: Performance visualization
  6. Nginx: Reverse proxy and SSL termination
  7. WebSocket Manager: Real-time job tracking

⁠🚀 Quick Start

⁠Prerequisites
  • Docker
  • Docker Compose
  • Python 3.11+
⁠Installation
# Clone the repository
git clone https://github.com/your-org/ffmpeg-api.git
cd ffmpeg-api

# Start all services
docker-compose up -d

# Verify health
curl http://localhost:8000/health
⁠Development
# Access Swagger UI for API documentation
http://localhost:8000/docs

# Monitor logs
docker-compose logs -f ffmpeg-api

# Access Grafana dashboard
http://localhost:3000

⁠🔒 Security Considerations

  • Command Injection Prevention: Comprehensive FFmpeg command validation
  • File Upload Restrictions: Strict file type and size validations
  • Credential Management: No hardcoded credentials
  • Network Isolation: Containerized with controlled network access
⁠Known Security Limitations
  • Authentication system under development
  • Rate limiting not yet implemented

⁠🛠 Current Development Status

  • FFmpeg processing endpoints
  • Asynchronous task processing
  • WebSocket communication
  • Prometheus metrics
  • Docker containerization
  • Voice Management System
  • Video Overlay System
  • Infrastructure stability improvements
  • Full authentication system
  • Advanced rate limiting

⁠📄 Documentation

For comprehensive details, refer to:

  • ARCHITECTURE.md: Detailed system design
  • API.md: Endpoint specifications
  • CONFIG.md: Environment configuration
  • CONTRIBUTING.md: Development guidelines
  • TASKS.md: Active development tasks

⁠🐛 Issues & Contributions

Please report issues on our GitHub repository. Contributions are welcome via pull requests.

⁠📜 License

[Specify your license here]

⁠📊 Performance Metrics

  • Supported Formats: 25+ video and audio formats
  • Processing Speed: Ultra-low latency multimedia transformations
  • Scalability: Highly resilient and horizontally scalable
  • Asset Management: Robust voice and overlay storage infrastructure
  • Voice Capabilities: Advanced cloning and customization

Generated with 🤖 Claude Code | Last Updated: 2025-08-16

Tag summary

Content type

Image

Digest

sha256:b89177cdf…

Size

185.1 MB

Last updated

about 1 year ago

docker pull gemneye/ffmpeg-beastmode