This guide explains how to add the 9 new videos to your TikTok clone app. The code has already been updated to support these videos.
-
clip9.mp4
- Source: https://grok.com/imagine/post/c2f580b7-93ee-4b82-b68e-ded30bb23250
- Description: Futuristic cityscape with flying vehicles
- Post ID: dummy-post-13
-
clip10.mp4
- Source: https://grok.com/imagine/post/23c46f19-6171-4358-8b5f-172268fcffc2
- Description: Abstract digital art with morphing geometric shapes
- Post ID: dummy-post-14
-
clip11.mp4
- Source: https://grok.com/imagine/post/e48303ac-ba55-4e54-b98c-77fc796c80ce
- Description: Surreal landscape combining nature and technology
- Post ID: dummy-post-15
-
clip12.mp4
- Source: https://www.youtube.com/shorts/0dTmRCHdXT8
- Description: Government official policy announcement (deepfake)
- Post ID: dummy-post-16
-
clip13.mp4
- Source: https://youtube.com/shorts/4g_vYZJVw9s
- Description: Celebrity cryptocurrency endorsement (deepfake)
- Post ID: dummy-post-17
-
clip14.mp4
- Source: https://youtu.be/LTQfBfvpv_k
- Description: Tech company insider information (manipulated)
- Post ID: dummy-post-18
-
clip15.mp4
- Source: https://youtu.be/MuJdsIPJ18A
- Description: Singapore MRT 35 years heritage exhibition
- Post ID: dummy-post-19
-
clip16.mp4
- Source: https://www.instagram.com/reel/DThpnH4kpe6
- Description: East Coast Park environmental conservation event
- Post ID: dummy-post-20
-
clip17.mp4
- Source: https://www.instagram.com/reel/DUpDUf4jRcp
- Description: Best hawker centre in Singapore
- Post ID: dummy-post-21
# Install yt-dlp if you don't have it
brew install yt-dlp
# Download clip12.mp4
yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' \
-o 'clip12.mp4' \
'https://www.youtube.com/shorts/0dTmRCHdXT8'
# Download clip13.mp4
yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' \
-o 'clip13.mp4' \
'https://youtube.com/shorts/4g_vYZJVw9s'
# Download clip14.mp4
yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' \
-o 'clip14.mp4' \
'https://youtu.be/LTQfBfvpv_k'
# Download clip15.mp4
yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' \
-o 'clip15.mp4' \
'https://youtu.be/MuJdsIPJ18A'- Go to: https://snapinsta.app/
- Paste Instagram URL
- Download as MP4
- Rename to clip16.mp4 and clip17.mp4
- Open each Grok link in your browser
- Right-click on the video
- Select "Save video as..."
- Rename to clip9.mp4, clip10.mp4, clip11.mp4
# Install ffmpeg if you don't have it
brew install ffmpeg
# Compress each video to under 5MB
for i in {9..17}; do
ffmpeg -i clip$i.mp4 -c:v libx264 -crf 28 -preset slow -c:a aac -b:a 128k clip$i-optimized.mp4
mv clip$i-optimized.mp4 clip$i.mp4
doneYou need 9 thumbnail images (img14.jpg through img22.jpg).
Option A: Extract from Videos
# Extract first frame as thumbnail
for i in {9..17}; do
ffmpeg -i clip$i.mp4 -ss 00:00:01 -vframes 1 img$((i+5)).jpg
doneOption B: Use Placeholder Images
# Create placeholder images (if you don't have thumbnails)
for i in {14..22}; do
cp assets/dummy/img1.jpg assets/dummy/img$i.jpg
done# Move videos to assets folder
mv clip9.mp4 assets/dummy/
mv clip10.mp4 assets/dummy/
mv clip11.mp4 assets/dummy/
mv clip12.mp4 assets/dummy/
mv clip13.mp4 assets/dummy/
mv clip14.mp4 assets/dummy/
mv clip15.mp4 assets/dummy/
mv clip16.mp4 assets/dummy/
mv clip17.mp4 assets/dummy/
# Move thumbnails to assets folder
mv img14.jpg assets/dummy/
mv img15.jpg assets/dummy/
mv img16.jpg assets/dummy/
mv img17.jpg assets/dummy/
mv img18.jpg assets/dummy/
mv img19.jpg assets/dummy/
mv img20.jpg assets/dummy/
mv img21.jpg assets/dummy/
mv img22.jpg assets/dummy/- Go to: https://console.firebase.google.com/project/codeandconquer-fb59c/storage
- Navigate to
demo-videos/folder - Click "Upload files"
- Upload all 9 videos (clip9.mp4 through clip17.mp4)
# Install Firebase CLI if you don't have it
npm install -g firebase-tools
# Login to Firebase
firebase login
# Upload videos to Firebase Storage
cd assets/dummy
for i in {9..17}; do
firebase storage:upload clip$i.mp4 \
--project codeandconquer-fb59c \
--path demo-videos/clip$i.mp4
doneThe videos should be accessible at these URLs:
https://storage.googleapis.com/codeandconquer-fb59c.firebasestorage.app/demo-videos/clip9.mp4
https://storage.googleapis.com/codeandconquer-fb59c.firebasestorage.app/demo-videos/clip10.mp4
...
https://storage.googleapis.com/codeandconquer-fb59c.firebasestorage.app/demo-videos/clip17.mp4
Test by opening each URL in your browser.
- clip9.mp4 - AI-generated futuristic city
- clip10.mp4 - AI-generated abstract art
- clip11.mp4 - AI-generated surreal landscape
- clip12.mp4 - Deepfake government official
- clip13.mp4 - Deepfake celebrity crypto
- clip14.mp4 - Manipulated tech insider
- clip15.mp4 - MRT heritage exhibition
- clip16.mp4 - East Coast Park event
- clip17.mp4 - Hawker centre video
- img14.jpg - Thumbnail for clip9
- img15.jpg - Thumbnail for clip10
- img16.jpg - Thumbnail for clip11
- img17.jpg - Thumbnail for clip12
- img18.jpg - Thumbnail for clip13
- img19.jpg - Thumbnail for clip14
- img20.jpg - Thumbnail for clip15
- img21.jpg - Thumbnail for clip16
- img22.jpg - Thumbnail for clip17
After uploading, test by:
- Running the app:
npm start - Navigating to posts 13-21
- Clicking the status badge to trigger AI analysis
- Verifying each video plays correctly
- Check file format (must be MP4)
- Verify Firebase Storage URL is correct
- Check file size (should be <10MB for web)
- Verify image file exists in assets/dummy/
- Check require() path in DUMMY_POST_MEDIA_BY_ID
- Run:
npm run clean-cache - Delete node_modules and reinstall:
rm -rf node_modules && npm install
If you encounter issues:
- Check Firebase Console for upload errors
- Verify file permissions
- Check browser console for CORS errors
- Ensure Firebase Storage rules allow public read access