Xiaomi cameras are some of the most popular video surveillance devices, thanks to their combination of price, quality and functionality, but many users are faced with the problem of how to display images from the camera to the computer screen for recording, streaming or remote surveillance. In this article, we will analyze all the current ways of connecting - from simple USB-connection before setting up streaming over the network.
It is not a Xiaomi Mi Home Security Camera 360.Β°, Xiaomi MiJia 1080p Xiaomi Smart Camera C400 β The connection principles are similar, but there are nuances, like not all cameras support direct. USB-PC connectivity is like a webcam, and some require additional software, and we tested each method in practice and put together step-by-step instructions for typical errors.
If you want to stream a camera video to OBS Studio for streaming, burn it to a hard drive, or just watch the room through VLC Player, you'll find work solutions here, and if something goes wrong, there's a section at the end of the article that shows common problems and ways to fix them.
1. Connecting Xiaomiβs camera to your PC via USB (like a webcam)
The most obvious way is to connect the camera to your computer with a USB-Type-C or Micro-USB cable (depending on the model). However, not all Xiaomi devices support UVC (USB Video Class) mode, which allows you to use them as a regular webcam. For example, the Xiaomi Mi Home Camera 360Β° 1080p will not be recognized as a webcam when connected directly, but the Xiaomi Smart Camera C400 can (subject to updated firmware).
To check the compatibility:
- Connect the camera to the PC with a cable from the kit.
- Open Device Manager (Win + X β Device Manager).
- Look in the Camera or Image Processing Devices sections β if a new device (such as a USB Camera) appears, then UVC mode is supported.
If the camera is not detected:
- π Try another one. USB-port (preferably) USB 3.0 - blue).
- π Restart the camera by turning off power for 10 seconds.
- π₯οΈ Install the driver. USB Video Device from Microsoft Store (for Windows) 10/11).
β οΈ Note: Xiaomi cameras with a battery (such as Mi Home Camera 2) when connected to a battery USB It can be discharged, not charged, and for long-term use, it's better to connect it to a network adapter.
Connected the cable to USB 3.0 port
Checked the Device Manager for a camera
Updated USB Video Device Driver
Rebooted the camera and PC
-->
2. Wi-Fi connection via Mi Home app
If USB-The method didn't work, and the most reliable way is to connect over a LAN, so you need to have a camera and a computer on the same Wi-Fi network:
- π± Mi Home app (installed on smartphone).
- π Stable Wi-Fi connection (2.4GHz β most Xiaomi cameras donβt support 5GHz).
- π» Program for viewing the stream on the PC (for example, VLC Player or iSpy).
Step-by-step:
- Connect your camera to the network via the Mi Home app (if you havenβt already).
- In the app, go to camera settings β Shared β Local Network and turn on the option.
- Copy. IP-Camera address (displayed in About Camera section).
- Open up. VLC Player on PC, select Media β Open up. URL enter the address of the view: rtsp://[IP_camera]:554/stream1 For example: rtsp://192.168.1.100:554/stream1.
If the stream doesnβt open, try alternative URLs (depending on the model):
| Camera model | RTSP-address | Login/password |
|---|---|---|
| Mi Home Camera 360Β° 1080p | rtsp://[IP]/live/ch00_0 | No, by default. |
| Xiaomi Smart Camera C400 | rtsp://[IP]:554/stream1 | Login: admin, password: [indicated in Mi Home] |
| MiJia 2K | rtsp://[IP]/live/ch0 | You need to enable RTSP in the settings |
β οΈ Note: If you have a Chinese version of the camera (firmware) CN), RTSP It can be disabled by default. It requires a global firmware flash to activate it.
π‘
If IP-The camera address changes frequently, fix it in the router settings (DHCP-This will eliminate the need to search for a new address every time.
3.Using ONVIF for Professional Integration
ONVIF allows you to connect Xiaomi cameras to video surveillance systems like Blue Iris, Synology Surveillance Station or ZoneMinder, a method that is suitable for organizing a multi-camera system or recording archives on the NAS.
How to turn on ONVIF on the Xiaomi camera:
- Open the Mi Home app, go to the camera settings β Sharing β ONVIF.
- Turn on the protocol and write down the login / password (by default often admin/123456).
- Add the camera to your surveillance system by specifying: π IP-camera. π Port: 80 (HTTP) 554 (RTSP). π€ Login/password in paragraph 2.
Example of settings in Synology Surveillance Station:
- Open the control panel. β Cameras β Add β Add IP-camera.
- Select ONVIF from the protocol list.
- Enter. IP-Address, login/password and click Search.
- Once detected, select the desired stream (usually H.264 or H.265).
What Xiaomi Cameras Support ONVIF?
4. Connect via the Mi Home cloud (without a local area network)
If the camera and the computer are on different networks (for example, you want to watch your home from work), you can use the cloud service Mi Home.
How to set up:
You can use video from the cloud to record:
- πΉ Built-in functionality of Mi Home (save events on the movement).
- π₯οΈ Screen capture programs (e.g., screen capture programs, OBS Studio with source Capture Window).
β οΈ Note: When using the cloud, Xiaomi limits free traffic β after exceeding the limit, the video quality decreases to a high level of traffic. 360p. For Full. HD You will need a Mi Home Security subscription (from 99) β½/month).
5. Connect Xiaomi camera to OBS Studio for streaming
If you are a streamer or live streaming, you can display the image from the Xiaomi camera in the video. OBS Studio. Any of the previous methods will do that (USB, RTSP or ONVIF), but it's easier to use RTSP-flow.
Instructions for OBS:
- Add a new source β Media source.
- In the field, insert the Local file RTSP-camera address, for example, rtsp://192.168.1.100:554/stream1).
- Turn on the tick Use hardware decoding (reduce the load on the processor).
- Adjust the source resolution to your stream (ideally 1280Γ720 or 1920Γ1080).
If the video slows down:
- π§ Reduce bitrate in camera settings (e.g., from 4,000 Kbps to 2,000 Kbps).
- πΆ Switch the camera to a wired connection (Ethernet adapter for Xiaomi sold separately).
- π₯οΈ V OBS Choose a codec NVENC (if you have a video card NVIDIA) hardware-coding.
π‘
It's better to use streams. RTSP, not USB-Connection β this way you avoid driver problems and get a more stable flow.
6. Solving common problems
Even with the right setup, errors can occur, and here are the most common ways to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| The camera is not detected by USB. | No UVC support or outdated drivers | Check model compatibility (see section 1) or use RTSP |
| RTSP-flow does not open VLC | Incorrect address or blocked port 554 | Check it out. IP-Camera address and disable Windows Firewall |
| Stuttering video during broadcast | Low Wi-Fi speed or high processor load | Switch the camera to 2.4GHz or reduce the flow resolution |
| ONVIF is not connected | Protocol disabled in firmware | Update your camera firmware to the latest version (see FAQ) |
Critical error: If Windows delivers error code 43 after connecting the camera to USB, it means the driver crashes. The solution is to roll the driver back in Device Manager or install it manually through Zadig (instructions on the official website).
If none of the methods worked:
- π Reflash the camera on the global firmware (instructions are on the forums) 4PDA Xiaomi Community).
- π οΈ Check the camera on another device (like a smartphone) β it may be the problem in the device itself.
- π§ Contact Xiaomi with error logs (how to collect them - see WEB. FAQ).
7.Alternative programs for working with the Xiaomi camera
Besides VLC and OBS, There are specialized management software IP-camera:
- π¬ iSpy is a free program that supports movement, recording and notifications. RTSP and ONVIF.
- π₯οΈ Blue Iris β a paid solution for professional video surveillance (there is a trial period).
- π TinyCam Pro is a mobile app for Android, but there is also a desktop version for Windows.
- π‘ Home Assistant β Smart Home System with Xiaomi Camera Integration xiaomi_miio.
Example of settings in iSpy:
- Download the program from the official website.
- Add a new camera. β choose IP-support-camera RTSP.
- Enter the stream address (e.g. rtsp://192.168.1.100:554/stream1).
- Set up motion detection and notifications via email or Telegram.
Home Assistant will require:
- Installation of the component xiaomi_miio through HACS.
- Add the camera to configuration.yaml: camera: - platform: xiaomi_miio host: 192.168.1.100 token: YOUR_TOKEN name: Xiaomi Camera Living Room
- Token can be accessed through the Mi Home app and the MiHome-Extractor tool.