How hongjungwan/ffmpeg-video-modules works
Main Components
a) External Interface Layer:
• HTTP Server (port 3031)
• Swagger Documentation Interface
• REST API Endpoints
b) Application Core:
• Controllers Layer
• Use Cases/Interactors Layer
• Domain Layer
• Repository Interfaces
c) Infrastructure Layer:
• FFmpeg Service
• MariaDB Database
• Repository Implementations
• Configuration Management
d) Supporting Components:
• File Storage System
• Docker Container
• Network Layer
Component Relationships
• Implement clean architecture patterns with clear dependency directions
• Clear separation between layers
Specific Elements
[Client/External Requests]
• ↓
[API Layer]
• Health Check
• Video Upload
• Video Processing
• Video Download
• ↓
[Controllers]
• FinalVideoController
• VideoController
• VideoJobController
• HealthCheckController
• ↓
[Use Cases/Interactors]
• Video Processing Logic
• Job Management
• ↓
[Domain Layer]
• Video
• VideoJob
• FinalVideo
• ↓
[Repository Interface]
• ↓
[Infrastructure]
• [FFmpeg Service]
• [MariaDB Database]
• [File Storage]
Additional Details
a) Data Flow Annotations:
• Video upload path
• Processing pipeline flow
• Download path
• Database interactions
b) Key Technical Components:
• FFmpeg integration points
• Database schema references
• File storage locations
• Configuration management
Architecture Patterns to Highlight
• Clean Architecture pattern
• Repository pattern for data access
• Dependency injection
• Service layer pattern
• REST API design
Implementation Notes
• Clear separation of concerns
• Dependency flow from outer layers inward
• Infrastructure independence
• Testing boundaries
• Error handling paths