loreal-video-optimizer/start.sh
DJP 129ea3ec1e Initial commit: Video Optimizer for L'Oréal
Complete video optimization tool with:
- 21 platform configurations (Meta, TikTok, YouTube, Pinterest, Snapchat, Amazon)
- FFmpeg-powered video conversion with H264, H265, and VP9 codecs
- Python Flask backend with REST API
- HTML/JS frontend with drag-drop interface
- Black + #FFC407 color scheme with Montserrat font
- Side-by-side video comparison player
- Filename auto-detection for platform and aspect ratio
- MAMP-compatible setup

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 16:52:11 -04:00

56 lines
1.4 KiB
Bash
Executable file

#!/bin/bash
# Video Optimizer Startup Script
echo "🎬 Starting Video Optimizer..."
echo ""
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "❌ Virtual environment not found. Please run setup first:"
echo " python3 -m venv venv"
echo " source venv/bin/activate"
echo " pip install -r backend/requirements.txt"
exit 1
fi
# Check if FFmpeg is installed
if ! command -v ffmpeg &> /dev/null; then
echo "⚠️ WARNING: FFmpeg is not installed!"
echo " Install with: brew install ffmpeg (macOS) or apt-get install ffmpeg (Linux)"
echo ""
fi
# Activate virtual environment
echo "🔧 Activating virtual environment..."
source venv/bin/activate
# Start backend server
echo "🚀 Starting backend server on http://localhost:5000..."
cd backend
python app.py &
BACKEND_PID=$!
# Wait for backend to start
sleep 3
# Start frontend server
echo "🌐 Starting frontend server on http://localhost:8000..."
cd ../frontend
python3 -m http.server 8000 &
FRONTEND_PID=$!
echo ""
echo "✅ Application is running!"
echo ""
echo " Backend: http://localhost:5000"
echo " Frontend: http://localhost:8000"
echo ""
echo " Open your browser and navigate to http://localhost:8000"
echo ""
echo " Press Ctrl+C to stop all servers"
echo ""
# Wait for Ctrl+C
trap "echo ''; echo '🛑 Stopping servers...'; kill $BACKEND_PID $FRONTEND_PID; exit" INT
wait