Xiaomi Yi cameras are some of the most popular budget video devices, but few know that they can be turned into a full-fledged webcam for streaming, video calling or surveillance. Unlike specialized webcams, Yi Action, Yi Home or Yi Dome offer better picture quality, a wide viewing angle and the ability to use without being tied to cloud services. USB It does not always work out of the box โ additional programs, firmware or even hardware modifications are required.
In this article, we will analyze three working methods for connecting Xiaomi Yi as a webcam: from simple (via proprietary software) to advanced (using the use of webcams). RTSP-You will also learn how to avoid common errors, from lack of image to video delay problems. All instructions are relevant for the Yi Action Camera (all generations), Yi Home Camera models. 1080p/720p, Yi Dome Camera and their clones.
Before you start, check: your camera must be charged (or connected to a power source), and the PC has the latest drivers installed to power the camera. USB-If you use Yi Action, prepare a memory card โ some methods require recording configuration files.
1. Method 1: Connecting with official Xiaomi Home software (for Yi) Home/Dome)
The easiest method is to use the branded Mi Home app (now Xiaomi Home) if your camera belongs to the Yi Home or Yi Dome lineup.This method does not require firmware or third-party programs, but only works for models that support the Yi Home line. RTSP-flow.
Algorithm of action:
- ๐ฑ Install the Xiaomi Home app on your smartphone (Android/iOS) Add the camera to the system via Wi-Fi.
- ๐ฅ๏ธ Download the program on PC VLC Media Player or iSpy for observation).
- ๐ In the camera settings in the Xiaomi Home app, turn on the option RTSP-stream (path: Camera settings) โ Additionally. โ Network flow).
- ๐น V VLC Choose Media. โ Open up. URL and enter the flow address (example: rtsp://[IP_camera]:554/live/ch00_0).
โ ๏ธ Note: New Yi Home Camera firmware versions (after 2021) option RTSP It can be hidden. To activate it, you will need to roll back the firmware or use alternative methods (see Method 3).
Advantages of the method:
- โ No need to disassemble the camera or solder.
- โ It works on Wi-Fi (no binding to the USB-cable).
- โ Supports sound and two-way communication (for models with microphones).
Disadvantages:
- โ Video delay up to 1-2 seconds (critical for streams).
- โ Not all programs support RTSP (For example, Zoom or Skype require additional plugins).
2. Method 2: Firmware for webcam mode (Yi Action Camera)
For owners of Yi Action Camera (all generations) there are special custom firmware that allow you to use the device as a device. USB-The most popular is Yi Hack (or Yi Hack Allwinner for new models). UVC-protocol that is recognized Windows/Linux/Mac webcam-like.
Step-by-step:
- Download the firmware: ๐ For Yi Action Camera (Ambarella): Yi Hack Allwinner. ๐ For Yi. 4K/4K+: Yi Hack 4K.
- Prepare a memory card: ๐ Format microSD in the FAT32. ๐ Copy the firmware files to the root of the card (autexec.ash and script files).
- Install the firmware: ๐ Insert the card into the camera, connect it to the PC through USB and turn on. ๐ Wait for the blue indicator to flash (the process takes up) ~2 minutes).
Activate the webcam mode:
- ๐ฅ๏ธ Select from the camera menu USB Mode โ Webcam.
- ๐ Connect the camera to the PC โ it will be defined as Xiaomi Yi UVC Camera.
Download the correct version of Yi Hack for your model|Formatting a microSD in FAT32|Copy firmware files into the root of the card|Charge the camera to at least 50%|Connect the camera to the PC through the original USB-cable-->
Important: After firmware has been installed, some features of the original software (e.g. stabilization or HDR) They may not work properly, and they may also have cameras with an Ambarella processor. 1080p/4K) Requires manual permission settings through file config.json, Otherwise, the image will be cut off.
| Camera model | Supported firmware | Max. resolution in webcam mode | Notes |
|---|---|---|---|
| Yi Action Camera 1080p | Yi Hack v0.5+ | 1920ร1080 @ 30 FPS | Requires a file config.json customize FPS |
| Yi 4K Action Camera | Yi Hack 4K | 2560ร1440 @ 25 FPS | Support for sound only in alpha versions |
| Yi 4K+ Action Camera | Yi Hack Allwinner | 3840ร2160 @ 20 FPS | High load on USB-port USB 3.0) |
3. Method 3: Use RTSP-Flow for all models (advanced)
If the first two methods donโt work (for example, you have an old firmware or camera that doesnโt support the device). UVC), You can arrange the transmission of video through RTSP-This method is universal for all Xiaomi Yi models, but requires network configuration and additional software.
Instructions:
- Turn it on. RTSP camera-wise: ๐ฑ In the Xiaomi Home app, go to the camera settings โ Additionally. โ Network flow. ๐ง Turn it on. RTSP-stream and write down the address (usually) rtsp://[IP_camera]:554/live/ch00_0).
Set up the PC:
- ๐ฅ๏ธ Download. OBS Studio (for streams) or VLC (viewable).
- ๐ก Make sure your PC and camera are connected to the same Wi-Fi network.
- Add the source to OBS: 1. OBS press "+" in the "Sources" section. 2. Select "Media Source." 3. In the "Local File" field, insert RTSP-Address 4. Set the flag "Use hardware decoding".
How to find out IP-camera?
To reduce video delay in RTSP-flow:
- ๐ถ Use a router with 5 GHz Wi-Fi support.
- ๐ Reduce bitrate in camera settings (optimum: 4-6 Mbps).
- ๐ฅ๏ธ On PC, disable other programs that consume traffic (torrents, cloud synchronizations).
โ ๏ธ Attention: If RTSP-The stream is not enabled in the app, check the region of the camera. For some models (for example, Yi Home Camera 3), the option is only available when selecting China region in the settings of the Xiaomi Home application. โ Region.
4. Solving typical problems
Even when you set it up properly, users are faced with errors, and here are the most common ways to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| The camera is not defined as a webcam. | Drivers not installed UVC | Download. UVC-Windows driver or use Zadig for manual installation |
| Image lagging or slowing down | High bitrate or weak USB-port | Reduce the permit to 1280ร720 or use USB 3.0 |
| No sound in webcam mode | The firmware does not support audio on USB | Connect an external microphone or use it. RTSP single-stream |
| The camera is warming and shutting down. | Overloading the processor during long-term work | Turn off auto-switching in power settings or use active cooling |
If the image is reversed after Yi Action Camera firmware:
- Connect the camera to the PC and open the file config.json memory-card.
- Add the line: "flip": "true."
- Save the file and restart the camera.
๐ก
For streamers: if you use Yi Action as a webcam in the OBS, Add a color correction filter to remove the characteristic yellowish hue that appears in artificial lighting.
5. Comparison of methods: which one to choose?
The choice of connection depends on your camera model, technical skills and usage goals.
| Method | Difficulty | Suitable models | Video delay | Required SOUTH |
|---|---|---|---|---|
| Official SO (RTSP) | โญ (simple) | Yi Home, Yi Dome | 1-2 seconds | Xiaomi Home + VLC/OBS |
| Custom firmware (UVC) | โญโญโญ (middle-of-the-road) | Yi Action (all models) | 0.1-0.5 sec. | Yi Hack + driver UVC |
| RTSP-flow (manual setting) | โญโญ (middle-of-the-road) | All models with RTSP | 0.5 to 1.5 sec. | OBS/VLC + networking |
Selection recommendations:
- ๐ฎ For streams (Twitch, YouTube): Optimal Method 2 (firmware) UVC) โ Minimum delay and stable operation.
- ๐ For home observation: suitable method 1 or 3 (RTSP) โ You can stream to multiple devices at the same time.
- ๐ป For video calls (Zoom, Skype): Use Method 2 (UVC), Because most programs do not support RTSP directly.
๐ก
If you want maximum compatibility with programs (Zoom, Discord, Skype), choose a method with firmware. UVC. For surveillance or streaming from multiple cameras โ RTSP-flow.
6.Alternative programs to work with Xiaomi Yi
Besides the standard ones VLC and OBS Studio, there is specialized software to work with Xiaomi Yi as a webcam:
- ๐ฅ iSpy: Free video surveillance software with support RTSP It allows you to record video on a schedule and send notifications.
- ๐ก Blue Iris: Advanced video surveillance system (paid) with support for artificial intelligence for facial recognition.
- ๐ป ManyCam: a utility for virtual cameras that allows you to impose effects on the stream with Xiaomi Yi before transferring to the camera Zoom/Skype.
- ๐ฎ DroidCam: if you want to use the camera as a webcam for PC through an Android device (suitable for Yi Home with smartphone binding).
For streamers, a plugin will be useful OBS-NDI, It allows you to stream video from Xiaomi Yi over a local network without loss of quality:
- Download. OBS-NDI and set.
- V OBS add the source NDI Source.
- In another program (for example, in vMix) select Xiaomi Yi as NDI-source.
7. Modifications to improve quality
If you are not satisfied with the standard image quality, you can make hardware or software improvements:
- ๐ง Lens replacement: Wide-angle or macro lenses are sold for Yi Action Camera (e.g., 720).ยฐ Fish-Eye, which are attached to standard thread.
- ๐๏ธ Manual exposure setting: You can edit a file in Yi Hack firmware config.json, adding the parameters: "exposure": "auto", "white_balance": "sunny", "sharpness": 5
- ๐ External microphone: Any microphone with a 3.5 mm connector is suitable for Yi Action (requires an adapter for the device). USB-C).
- ๐ถ Wi-Fi Enhancement: For Stable RTSP-stream use a Wi-Fi repeater or connect the camera via a Powerline adapter.
โ ๏ธ Note: When replacing your lens with a Yi Action Camera, avoid cheap Chinese lenses without anti-reflective coatings, which can cause strong glare when shooting against light).
8.Security when using Xiaomi Yi as a webcam
Connecting your camera to a network or PC opens up potential vulnerabilities.
- ๐ Change the standard password: In the Xiaomi Home app, go to Camera Settings โ General. โ Password and set a complex password (minimum 12 characters).
- ๐ Disable Cloud Access: If the camera is only used locally, deactivate the option Cloud Storage in the settings.
- ๐ก๏ธ Update your firmware: Check updates regularly in Xiaomi Home โ new versions will close vulnerabilities RTSP-flow.
- ๐ Use it. VPN for RTSP: If you are streaming outside the local network, set up VPN-server (e.g. WireGuard) for encrypting traffic.
To check if your camera is hacked:
- Open Shodan and enter IP-address.
- If the search results show information about your device - urgently change the password and turn off access from the Internet.
๐ก
To completely block access to the camera from the outside, add a firewall rule in the router settings that prohibits incoming connections to port 554 (RTSP).