The camera of a modern smartphone Xiaomi often surpasses the quality of standard webcams of laptops and cheap USB-Using it to stream, video calls or record content is a logical solution, especially if you don't have professional equipment at hand. However, not everyone knows that you can connect Xiaomi's camera as a webcam to a PC in several ways, each of which has its own nuances.
In this article, we will look at all the current methods, from simple applications to advanced solutions with minimal latency, and learn how to get around common errors (for example, for example, for example, the most common ones, USB-debugging doesn't work or the camera isn't defined, compare the pros and cons of each option, and get recommendations for setting resolution and frame rate. 13/14 series, Redmi Note 12/13 and POCO F5, Where image processing algorithms may differ.
It is important that you use it. MIUI 14+, Some old instructions (such as the DroidCam 2021 app) may not work.
1. Preparation of Xiaomi smartphone for use as a webcam
You have to do basic settings on your phone before you connect, or the PC may not recognize the device, or the camera will work with artifacts. USB-Debugging is a must for most methods.
How to activate the developer mode on Xiaomi/Redmi/POCO:
- Go to Settings. โ The phone.
- Tap 7 times on the MIUI version (you will receive a notification "You became a developer").
- Go back to the main settings menu and open a new section for developers.
- Activate the switches: ๐ง Debugging by USB (necessarily!) ๐ Unlocking OEM (certain methods) ๐ฑ Do not turn off the screen when charging (so that the camera does not turn off)
โ ๏ธ Attention: On models with MIUI 14+ after-in USB-Debugging will be a request for confirmation RSA-Always press "Allow" or the connection will not be established. If the window does not appear, check the cable (original cable required). USB-C Data-enabled port or port on a computer.
Enable the developer mode|Activate USB-debugging|Permission. RSA-key-in|Use the original cable USB-C|Disable battery optimization for the camera-->
We also recommend disabling Battery Optimization for applications that will use the camera.
- Go to Settings โ Applications โ Application Management.
- Select an app (like DroidCam or EpocCam).
- Press Battery Optimization โ No restrictions.
2. Method 1: DroidCam application (simple and free)
DroidCam is one of the most popular solutions for turning a smartphone into a webcam. It supports connectivity. USB, Wi-Fi and even Bluetooth, but for minimal latency, it's better to use wire.The app works on all Xiaomi models (including Redmi). 10C and POCO X5 Pro, but has a restriction on the free version - watermark.
Step-by-step:
- Download DroidCam to your phone from Google Play.
- Install a client for PC from the official website (there are versions for Windows and Linux).
- Connect the phone to the computer by USB (data-transmitting).
- Launch the application on your phone and press Start Server (to USB select the appropriate mode).
- In the client on the PC, select USB In the Connection Method section and click Start.
๐ก
If you have a DSLR image in DroidCam, open the app settings on your phone and activate the Flip Horizontal option, which is especially true for the front camera.
3. Method 2: EpocCam (best quality for streams)
Elgatoโs EpocCam is a more advanced DroidCam alternative, optimized for streamers and professional use. 4K (on supported Xiaomi models, has built-in stabilization and minimal latency.The free version is limited to resolution 720p, But that's enough for Zoom or Discord.
How to set up EpocCam:
- Download the application to your phone (Google Play) and the driver for the PC (official site).
- Put the phone on. USB Wi-Fi (for Wi-Fi, both devices must be on the same network).
- Run EpocCam on your phone and wait for the image to appear in the client on the PC.
- In the settings, select the camera (Primary or Front) and resolution.
The advantages of EpocCam over DroidCam are:
| Parameter | DroidCam | EpocCam |
|---|---|---|
| Max. Permission (free of charge) | 720p (watermarked) | 720p (watermarked) |
| Delay (USB) | ~100-150 ms | ~50-80 ms. |
| 4K support | โ No. | โ Yes (in the Pro version) |
| Image stabilization | โ No. | โ Yes. |
| Integration with OBS | โ Through a virtual camera. | โ Native support |
โ ๏ธ Note: Some Xiaomi models (e.g. Redmi Note 11 Pro)+) EpocCam may not be launched due to conflict with the MIUI Optimization. To fix this, do it:
adb shell settings put global miui_optimization_disabled 1After the phone is restarted, the app should be working.
4. Method 3: Iriun Webcam (for macOS and Windows)
Iriun Webcam is a one-stop solution that supports not only Xiaomi, but other brands as well, and its key advantage is rootless work and minimal PC requirements. USB, The quality of the DroidCam is not inferior.
Instructions for setting:
- Install Iriun Webcam on your phone (Google Play) and the client on your PC (iriun.com).
- Connect the phone to the computer by USB (regime PTP or MTP).
- Launch the app on your phone and select USB Mode.
- On the PC in the Iriun client will appear the image from the camera.
Iriun features:
- ๐ฌ Support 1080p@30fps Even on a budget Redmi (like Redmi). 9A).
- ๐ The ability to use both the main and front camera (in the paid version).
- ๐ฅ๏ธ Compatibility with OBS Studio, Zoom, Microsoft Teams.
How to remove artifacts in Iriun Webcam?
5. Method 4: Scrcpy + OBS (for advanced users)
If you want maximum lossless quality, the Scrcpy combination (for screen broadcasting) and OBS Studio (for image capture) will be the best solution, and it requires command line skills, but gives you complete control over the camera settings, including manual focus and white balance.
What you need:
- ๐ฅ๏ธ Scrcpy (download from GitHub).
- ๐ฅ OBS Studio (to capture the Scrcpy window).
- ๐ฑ On. USB-phone-debugging.
Step-by-step:
- Connect your phone to the PC by USB and check the connection with the command: adb devices (the name of your device should appear).
- Run Scrcpy with options to capture only the camera: scrcpy --no-display --bit-rate 8M --camera front (replace front with back for the main camera).
- V OBS Studio Add Windows Capture Source and Select Scrcpy window.
- Configure the resolution in Scrcpy through the settings --video-size (for example, 1920x1080).
โ ๏ธ Note: Scrcpy will keep your phoneโs camera full โ other apps (like Instagram) wonโt be able to use it, and it puts a lot of strain on your PC processor, so for weak laptops, youโd better choose DroidCam or EpocCam.
๐ก
Scrcpy + OBS โ The only way to get raw video stream from Xiaomi camera without compression, as with direct connection to the camera. HDMI. This is critical for professional color correction.
Method 5: Built-in function MIUI (new-model)
Starting with MIUI 13, Some Xiaomi models (e.g. Xiaomi) 12T Pro, Redmi K50 Ultra) received an integrated function USB-It works without third-party applications, but it has limitations: only Windows is supported. 10/11 permission before 1080p.
How to activate:
- Connect your phone to your PC via USB.
- In the notification curtain tap on the option USB-connection.
- Select the Webcam mode (USB).
- On PC, the camera will be defined as normal. USB-Video device (e.g. in Zoom or Skype).
Integrated mode limitations:
- ๐ซ No support for macOS or Linux.
- ๐ Phone microphone is not transmitted (you need to use a separate phone).
- โ๏ธ No manual exposure or white balance settings.
If the function of the Webcam (USB) It's not on the menu, so your model doesn't support it:
| Series | Supported models |
|---|---|
| Xiaomi 12 | 12, 12 Pro, 12T, 12T Pro |
| Xiaomi 13 | 13, 13 Pro, 13 Ultra, 13 Lite |
| Redmi K50 | K50, K50 Pro, K50 Ultra, K50i |
| POCO F4/F5 | F4 GT, F5, F5 Pro |
7. Comparison of methods: which one to choose?
The choice of method depends on your tasks, the Xiaomi model and the PC operating system. Below is a comparison table with recommendations:
| Criteria | DroidCam | EpocCam | Iriun | Scrcpy + OBS | Built-in MIUI function |
|---|---|---|---|---|---|
| Easy setup | โญโญโญโญโญ | โญโญโญโญ | โญโญโญโญโญ | โญโญ | โญโญโญโญโญ |
| Image quality | โญโญโญ | โญโญโญโญโญ | โญโญโญโญ | โญโญโญโญโญ | โญโญโญ |
| Delay (latency) | Medium (~150 ms) | Low (~50ms) | Medium (~120 ms) | Minimum (~30ms) | Low (~60 ms) |
| 4K support | โ No. | โ Yes) | โ No. | โ Yes. | โ No. |
| Compatibility with macOS | โ Yes. | โ Yes. | โ Yes. | โ Yes. | โ No. |
| Best option for | Zoom, Discord | Streams, records. | Remote work. | Professional installation | Quick connection. |
๐ก Recommendations for selection:
- ๐ฎ For streams (Twitch, YouTube): EpocCam or Scrcpy + OBS.
- ๐ผ For video conferencing (Zoom, Teams): DroidCam or built-in feature MIUI.
- ๐ For macOS: Iriun or EpocCam.
- ๐ฅ For post-processing video recording: Scrcpy + OBS (maximum quality).
8.Typical errors and their solutions
Even with the right setup, there can be problems, and here are the most common mistakes and ways to fix them:
1. The computer does not see the phone in webcam mode
- ๐ Check the cable โ it should support data transfer (not all) USB-C cables are the same!).
- ๐ Switch the connection mode in the phone notification curtain to File Transfer (MTP) or PTP.
- ๐ฅ๏ธ Update the drivers ADB On PC (download the latest version).
- ๐ฑ On the phone in Settings โ For developers, turn on debugging by USB (safe-haven).
2.The image is lagging or tearing
- ๐ถ If you use Wi-Fi, switch to Wi-Fi. USB vice versa.
- ๐ง Reduce the resolution in the application settings (for example, with 1080p before 720p).
- ๐ฅ๏ธ Close background programs on PCs that consume resources (for example, a browser with open tabs).
- ๐ Connect your phone to charge โ with a low battery level, camera performance drops.
3.Camera is working, but no sound.
- ๐ค In most applications (except EpocCam Pro), the phone's microphone is not transmitted. Use a separate microphone or set up audio capture via a phone. OBS.
- ๐ In Windows, check that the correct input device is selected in the sound settings.
4.The app is making an error"USB device not recognized"
- ๐ Try another one. USB-port (preferably) USB 3.0).
- ๐ฅ๏ธ Reinstall the drivers ADB via Device Manager (remove the old device and reconnect).
- ๐ฑ Turn it off on the phone and turn it back on. USB-debugging.
adb kill-server && adb start-serverThis often helps in conflicts with new versions of the firmware.-->