A jailbreak tweak that replaces TikTok's camera feed with a custom video source. Use any video as your virtual camera input on TikTok.
- Replace the live camera feed with a pre-recorded video
- Maintains aspect ratio and centers the overlay
- Loops video automatically
- Works with TikTok's native camera interface
- Jailbroken iOS device (arm64/arm64e)
- iOS 15.0+
- Theos build system
- TikTok app installed
- Clone this repository
- Configure your device IP in the
Makefile:THEOS_DEVICE_IP = YOUR_DEVICE_IP - Build and install:
make package install
- Place your video file at
/var/jb/var/mobile/overlay_video.mp4on your device - Open TikTok
- The camera feed will be replaced with your video
The tweak hooks into TikTok's camera capture pipeline (IESMMCaptureKit) and intercepts the video frames. Each frame from the camera is replaced with frames from your overlay video using Core Image for efficient GPU-based compositing.
Key components:
- AVPlayer for smooth video playback
- AVPlayerItemVideoOutput for frame-accurate video extraction
- CIContext for GPU-accelerated image compositing
TikTokVirtualCam/
├── Tweak.xm # Main tweak implementation
├── Makefile # Theos build configuration
├── control # Package metadata
├── TikTokVirtualCam.plist # Bundle filter
├── Resources/ # Assets
├── reinstall.sh # Reinstall helper script
└── install_test.sh # Test installation script
This project is for educational purposes only. Use responsibly and in accordance with TikTok's terms of service.
MIT License
Nathan Jacas