6c56306873
Full-featured video conversion platform with: - FFmpeg-based pipeline system with composable stages (transcode, scale, filter, audio, bitrate, framerate, trim, deinterlace, denoise, stabilize) - Live stream management with real-time format switching (RTMP/RTSP/HTTP) - Industrial/nuclear power plant control room themed UI with gauges, switches, LED indicators - Format switchboard for instant conversion between 16+ video/audio formats - Pipeline designer with visual flow editor and drag-and-drop stage composition - Job queue with priority scheduling and batch conversion - WebSocket server for real-time progress broadcasting - REST API for all operations (upload, convert, streams, pipelines, queue) - System monitoring (CPU, memory, disk) with animated gauge displays - Docker Compose setup with web, websocket, and worker services https://claude.ai/code/session_01WxmHGnVFXGm2bwbFREHkHb
41 lines
1012 B
Docker
41 lines
1012 B
Docker
FROM php:8.2-cli
|
|
|
|
# Install FFmpeg and dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
ffmpeg \
|
|
libzip-dev \
|
|
unzip \
|
|
git \
|
|
&& docker-php-ext-install pcntl posix sockets \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Composer
|
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy composer files first for caching
|
|
COPY composer.json ./
|
|
RUN composer install --no-dev --optimize-autoloader 2>/dev/null || true
|
|
|
|
# Copy application
|
|
COPY . .
|
|
|
|
# Install dependencies
|
|
RUN composer install --no-dev --optimize-autoloader
|
|
|
|
# Create storage directories
|
|
RUN mkdir -p storage/uploads storage/outputs storage/thumbnails storage/logs storage/temp \
|
|
&& chmod -R 777 storage
|
|
|
|
# Configure PHP
|
|
RUN echo "upload_max_filesize = 5G\n\
|
|
post_max_size = 5G\n\
|
|
memory_limit = 512M\n\
|
|
max_execution_time = 3600\n\
|
|
max_input_time = 3600" > /usr/local/etc/php/conf.d/video-converter.ini
|
|
|
|
EXPOSE 8080 8081
|
|
|
|
CMD ["php", "-S", "0.0.0.0:8080", "-t", "public", "public/router.php"]
|