Skip to content

Latest commit

Β 

History

History
77 lines (63 loc) Β· 2.07 KB

File metadata and controls

77 lines (63 loc) Β· 2.07 KB

🎬 Video Compression Guide for GitHub Deployment

🚫 The Problem

GitHub has a 100MB file limit, and your video portfolio files are likely larger.

βœ… Quick Solutions (No Quality Loss)

Method 1: Online Video Compressors (Easiest)

  1. CloudConvert (Recommended)

  2. Video Smaller

  3. Clideo

Method 2: PowerShell Script (Run the script I created)

# Run this in PowerShell
.\compress-videos-smart.ps1

Method 3: FFmpeg Manual Commands

# Install FFmpeg first: choco install ffmpeg
# Then run for each video:
ffmpeg -i "input.mp4" -c:v libx264 -crf 28 -preset medium -c:a aac -b:a 128k -movflags +faststart "output.mp4"

🎯 Target File Sizes for GitHub

  • Instagram Reels: Under 25MB
  • YouTube Shorts: Under 50MB
  • Longer videos: Under 75MB

πŸ“± Deployment After Compression

Option A: Direct Netlify (Recommended)

  1. Compress videos using any method above
  2. Replace files in assets/ folder
  3. Go to netlify.com
  4. Drag entire project folder
  5. Get instant live URL!

Option B: GitHub + Netlify

  1. Compress videos
  2. Push to GitHub (files now under 100MB)
  3. Connect Netlify to GitHub repo
  4. Auto-deploy on every push

Option C: External Video Hosting

  1. Upload original videos to:
    • YouTube (unlisted)
    • Vimeo
    • Cloudinary
    • Azure Blob Storage
  2. Embed video URLs in your site
  3. Deploy static files only

πŸš€ Fastest Deployment Path

  1. Use online compressor for 2-3 main videos
  2. Deploy to Netlify directly
  3. Live in 5 minutes!

πŸ’‘ Pro Tips

  • Keep one high-quality video for hero section
  • Use compressed versions for portfolio grid
  • Add loading states for better UX
  • Consider lazy loading for mobile users