Skip to content

Latest commit

 

History

History
147 lines (99 loc) · 3.16 KB

File metadata and controls

147 lines (99 loc) · 3.16 KB

Video Setup Instructions

Quick Start

Once you have downloaded the video files, follow these steps:

Step 1: Place Videos in Assets

Move your downloaded videos to the correct location:

# Move all video files to assets/dummy/
mv ~/Downloads/clip*.mp4 assets/dummy/

Step 2: Verify All Videos Are Present

# Check that all 9 videos exist
ls -lh assets/dummy/clip{9..17}.mp4

Expected output:

clip9.mp4  (AI-generated from Grok)
clip10.mp4 (AI-generated from Grok)
clip11.mp4 (AI-generated from Grok)
clip12.mp4 (YouTube deepfake)
clip13.mp4 (YouTube deepfake)
clip14.mp4 (YouTube deepfake)
clip15.mp4 (YouTube verified - MRT)
clip16.mp4 (Instagram verified)
clip17.mp4 (Instagram verified)

Step 3: Optimize Videos

./scripts/optimize-videos.sh

This will:

  • Compress videos to <5MB each
  • Resize to 720p max resolution
  • Optimize for web streaming

Step 4: Generate Thumbnails

./scripts/generate-thumbnails.sh

This will create thumbnail images (img14.jpg through img22.jpg).

Step 5: Upload to Firebase Storage

./scripts/upload-to-firebase.sh

This will upload all videos to:

gs://codeandconquer-fb59c.firebasestorage.app/demo-videos/

Step 6: Verify Upload

# Test that all videos are accessible
for i in {9..17}; do
  curl -I "https://storage.googleapis.com/codeandconquer-fb59c.firebasestorage.app/demo-videos/clip$i.mp4"
done

All should return HTTP/1.1 200 OK.

Step 7: Build and Deploy

# Build the app
rm -rf dist/ && npx expo export -p web

# Deploy to Firebase Hosting
firebase deploy --only hosting

Step 8: Test

  1. Open: https://codeandconquersg.web.app
  2. Scroll to posts 13-21
  3. Click on each status badge
  4. Verify AI analysis triggers correctly

Manual Download Links

If you still need to download videos manually:

Grok (AI-generated)

YouTube (Deepfake)

YouTube (Verified)

Instagram (Verified)

Troubleshooting

Video Won't Upload to Firebase

  • Check that you're logged in: firebase login
  • Verify project: firebase use codeandconquer-fb59c
  • Check storage permissions in Firebase Console

Thumbnail Not Generated

  • Ensure ffmpeg is installed: brew install ffmpeg
  • Verify video file is valid MP4
  • Try different timestamp: Edit script to use -ss 00:00:02

Build Error

  • Clear cache: rm -rf node_modules && npm install
  • Check file sizes: Videos should be <10MB each

Need Help?

Check the logs: