- What is Mimic π€·ββοΈ
- How to use β
- Installing πΏ
- Uninstalling π€
- Allowing Mimic through the Windows Firewall π₯π§±
- Starting Mimic when Windows starts π
- Help! My web browser says that my connection is not safe! βΌ
- Advanced Usage β
- For contributors π©βπ»
Mimic allows you to use your smartphone or other webcam-enabled device as a webcam for a different computer on Windows. Mimic creates a WebRTC connection between your PC and your other device to stream video to your PC.
Mimic will appear as a standard webcam on your PC just like any other PC. The only requirements are that the host PC is running 64-bit Windows and your device has a webcam and access to a modern web browser.
- Mimic is not a voice transmitter. Mimic does not capture and send audio, video only.
- Mimic is not a physical webcam. Mimic mimics (π) a physical camera in software. This means that sometimes applications won't correctly pick up the camera but it should work for most applications.
- Mimic is not an iOS or Android application. Mimic connects to the host using the devices pre-installed web browser instead of a native application. That means theres nothing to install on your webcam-enabled devices, just plug-and-play!
- Make sure both devices are on the same network
- Install and start Mimic on the host PC (the computer that does not have the camera).
- Double click the Mimic icon in the system tray.
- Scan the QR code with your smartphone.
Your device is now a webcam for your PC.
- Download the latest release from the releases tab.
- Download
setup-mimic-win64.exe
for the production build orsetup-mimic-debug.exe
for the debug build.- Only 64-bit Windows is supported.
- Follow the steps in the installer
- Tick "Create a desktop shortcut" if you would like a shortcut placed on your desktop.
- Tick "Start Mimic when Windows starts" if you would like mimic to automatically start in the background when Windows starts.
- Download the latest release from the releases tab.
- Download
mimic-win64.zip
for the production build ormimic-debug.zip
for the debug build.- Only 64-bit Windows is supported.
- Extract the zip file to a permanent location
- Download obs-virtual-cam build 2.0.4
- Extract
OBS-VirtualCam2.0.4.zip
to a permanent location - Install the obs-virtualsource libraries as administrator
regsvr32 /n /i:1 .\obs-virtualcam\bin\32bit\obs-virtualsource.dll regsvr32 /n /i:1 .\obs-virtualcam\bin\64bit\obs-virtualsource.dll
Mimic can now be started using mimic.exe
.
β If you are unable to connect to Mimic from your device, Windows Firewall may be blocking the connection. See Allowing Mimic through the Windows Firewall
- Install build requirements
- Python 3.9+
- pipenv (installed with
pip install pipenv
) - Inno Setup (installed with
choco install InnoSetup
if Chocolatey is installed)
- Clone the repository
git clone https://github.com/link00000000/mimic
- Install dependencies
cd mimic pipenv install
- Build the project
- Production:
pipenv run build
- Debug:
pipenv run build-debug
- Production:
- Build the installer (optional)
pipenv run installer
- Run the installer located at
.\dist\setup-mimic-win64.exe
Compiled application is available at .\dist\mimic
.
β If you opt to not build the installer, runtime dependencies must be installed. See Running without the installer
Mimic can either be uninstalled using Window's built-in uninstall by searching for "Add or remove programs" or by running unins000.exe
in the install directory.
β The uninstaller will be unable to remove the
OBS-VirtualCam
directory if the virtual camera is in use in any running application. Either make sure that all applications that might use the virtual camera are closed before uninstalling or manually delete the directory after closing all applications and uninstalling.
- Uninstall the obs-virtualsource libraries as administrator in the folder the library was placed in during installation.
regsvr32 /u .\obs-virtualcam\bin\32bit\obs-virtualsource.dll regsvr32 /u .\obs-virtualcam\bin\64bit\obs-virtualsource.dll
- Delete temporary files at
%localappdata%\mimic
. - Delete any remaining Mimic files.
- Mimic install directory
- OBS-VirtualCam library directory
β If you set a rule in the Windows Firewall, be sure to remove it. See Removing firewall rule.
β If you setup Mimic to automatically start with Windows, be sure to remove the startup shortcut. See Starting Mimic when Windows starts.
Only perform these steps if you cannot connect to Mimic from your other device and you are on the same network.
- Open the windows firewall by searching for or executing
wf.msc
- Click on inbound connections in the left panel
- Click new rule in the right panel
- Add the new firewall rule
- Select Program
- Click Next
- Click "Browse..."
- Select the location of
mimic.exe
- Click Next
- Click Next
- Click Next
- Enter "Mimic" for the name
- Click Finish.
- Open the windows firewall by searching for or executing
wf.msc
- Click on inbound connections in the left panel
- Highlight all instances of "Mimic" in the
Inbound Rules
panel - Click Delete in the right panel
- Click Yes
To start Mimic when windows starts, a shortcut to mimic.exe
must be placed in the startup folder.
To access the startup folder
- Press Win+R to open the run dialog.
- Type "shell:startup"
- Click OK
β Be sure to only place shortcuts in
shell:startup
and not a copy of the binary.exe
.
To prevent Mimic from automatically starting with Windows, remove the shortcut from shell:startup
.
Mimic uses SSL/HTTPS to transmit traffic between your device and your PC. Because all traffic remains on the local network, the SSL certificates must be generated on your PC instead of from a certificate authority which will result in false positives on your device. The solution is to ignore the warning and proceed anyway.
Mimic does work with ngrok. On the host machine, a Mimic can be exposed using the command ngrok http https://<your_local_ip_address_here>:8080
. On your webcam-enabled device, navigate to the HTTPS URL generated by ngrok to connect to Mimic.
It has not been tested but Mimic should work on devices that are not on the same local network if they are both on the same VPN connection (depending on the VPN). Connect both devices to the same VPN before starting the host application and connecting with you webcam-enabled device.
Builds are automatically created on commit using GitHub Actions. Build artifacts for Windows x64
and Windows x64 Debug
are available under GitHub actions.
If a commit is tagged with the format vX.X.X, production and debug builds will be created and a release will be made with the build artifacts attached.
pyvirtualcam was giving issues with trying to create a shared memory buffer while a previous one was in use. Instead we are using a patched fork of pyvirtualcam. For more details, see here.