Xiaomi Mijia 360 CameraΒ° (model XMSXJ02FM, XMSXJ05FM It has become a popular video surveillance solution thanks to its combination of price, quality and integration into the Mi Home ecosystem, but many users are faced with the problem of how to display images from the camera directly to a computer for recording, streaming or analysis. The official Mi Home app does not support PC broadcasting, and Xiaomi documentation is silent about such use cases.
In this article, we will analyze all the current ways of connecting - from the standard USB-Connections to Advanced Methods through RTSP-stream ONVIF-You will learn how to circumvent manufacturer restrictions, what drivers and programs will be needed for Windows. 10/11, macOS and Linux, and how to set up a camera to work with OBS Studio, VLC Or video surveillance systems like Blue Iris, and we'll focus on the hidden settings of Mijia's firmware. 360Β°, Xiaomi does not advertise, but allows you to get full control of the device.
1.Preparation of the camera: what to do before connecting to the PC
Before you connect your camera to your computer, follow the mandatory steps in the Mi Home mobile app, and without that, most methods simply wonβt work.
First, update your camera firmware to the latest version through the app. Outdated versions of the software often block alternative ways to connect. β General. β Firmware version. Up-to-date versions for Mijia 360Β° 1080p (2023β2026 (d) begin with 3.5.6_ or newer.
Second, turn on the developer mode (if you plan to use it) RTSP or ONVIF):
- π§ Go to Camera Settings β Additionally. β Developer mode.
- π Activate the switch and confirm the action.
- π Write it down. UID Devices (displayed after activation) - it will be needed for authorization.
β οΈ Warning: Once the developer mode is turned on, the camera can start sending notifications about "unstable work." This is normal - just ignore them. However, do not update the firmware in this mode: Xiaomi can block alternative protocols.
Finally, check the network settings:
- π The camera and the computer must be on the same local network (through the same router).
- π Turn it off. VPN Firewalls (such as Windows Defender or Kaspersky) that can block the stream.
- π‘ If you use 5 GHz Wi-Fi, switch to 2.4 GHz, the camera is more stable at this frequency.
2. Method 1: Connecting through USB (viewer)
The simplest but limited method is to connect the camera to the PC via a Micro-USB cable (included), which is suitable for viewing real-time images and recording video, but does not support sound and has low resolution (maximum). 640Γ480).
The work will require:
- π₯οΈ Windows computer 7/10/11 (MacOS and Linux drivers do not work).
- π Original Xiaomi cable (cheap analogues may not transmit data).
- πΎ Ambarella Driver (you can download it here).
- π₯ Video capture software (e.g., Amcap or VLC).
Step-by-step:
- Connect the camera to the PC via USB (Use the rear port on the system unit - the front may not provide enough power).
- Wait for the drivers to install. If the system does not recognize the device, install the Ambarella driver manually through the Device Manager (Camera section).
- Run the Amcap program (included in the driver package) or VLC.
- V VLC Choose Media. β Open the capture device β DirectShow and Specify Ambarella Camera.
β οΈ Attention: At USB-If you connect, the camera will not be available in Mi Home, you will have to choose between a PC and a mobile application, and you can also freeze the image during long recording (more than 30 minutes).
βοΈ Preparation for USB-connection
| Parameter | USB-connection | RTSP-flow | ONVIF |
|---|---|---|---|
| Max, permission. | 640Γ480 | 1920Γ1080 | 1280Γ720 |
| Sound support | β No. | β Yes. | β Yes. |
| Delay (latency) | ~200 ms. | ~500 ms. | ~800 ms. |
| Works on macOS/Linux | β No. | β Yes. | β Yes. |
3. Method 2: Connecting to RTSP (Better quality and flexibility)
Protocol RTSP (Real Time Streaming Protocol allows you to stream video from the camera in high resolution (1080p) This method is recommended for streaming (for example, in the OBS Studio or YouTube) and integration with video surveillance systems.
To set up RTSP Xiaomi Mijia 360Β° Follow the following steps:
Step 1: Obtaining an Access Token
Xiaomi uses dynamic tokens for authorization, to obtain them:
- Install the Mi Home app on your phone and log in.
- Download the MiHome Token Extractor (available for Android).
- Launch the utility, select your camera from the list of devices and copy Token and Device ID.
Step 2: Formation RTSP-reference
Use the following pattern (replace). DEVICE_ID and TOKEN statuary):
rtsp://DEVICE_ID:TOKEN@IP_ Cameras:554/stream/ch00_0Example:
rtsp://12345678:abcdef123456@192.168.1.100:554/stream/ch00_0Step 3: Connecting to the program
You can now open the stream in any supportive RTSP programme:
- π¬ VLC: Media β Open up. URL network and insert a link.
- πΉ OBS Studio: Add Media Source and Specify RTSP-URL.
- ποΈ Blue Iris or iSpy: Add a new camera with a connection type RTSP/H.264.
π‘
If the stream doesn't open, check if the antivirus is blocking it. Add an exception to the program you open. RTSP, Or temporarily shut down the protection.
For sustainable work, it is recommended that:
- π Set the camera static. IP router-setting.
- π Shut down. IPv6 in the properties of the network connection (may cause flow breaks).
- π‘ Use wired camera connection to the router (via Xiaomi Wi-Fi Extender adapter) if lags are observed.
Method 3: Use of the Protocol ONVIF (video surveillance)
If you are planning to integrate the Mijia 360Β° (c) a professional video surveillance system (e.g., Synology Surveillance Station or QNAP QVR), Best choice: protocol ONVIF. It is compatible with the majority of NVR-recorders and allows you to control the camera (turn, zoom) directly from the system interface.
How to turn it on ONVIF Xiaomi Mijia 360Β°:
- Make sure the camera is connected to the Mi Home and updated to the latest firmware.
- In the mobile app, go to the camera settings β Additionally. β Protocol ONVIF.
- Activate the switch and set the password (by default login β admin).
- Copy. ONVIF Port (usually 80 or 8000).
Configuring in the video surveillance system:
When the camera is added to NVR specify:
- π IP-Camera address (find Mi Home or router).
- π Port (from settings) ONVIF).
- π€ Login/password (by default) admin/password).
- πΉ Profile: Choose H.264 or MPEG-4.
β οΈ Note: Some video surveillance systems (e.g. Hikvision) NVR) may not support ONVIF Xiaomi's implementation of the protocol is non-standard. RTSP Check the compatibility on the manufacturerβs website. NVR.
What to do if ONVIF doesn't work?
5. Method 4: Cloud Access via Mi Home (without a local area network)
If you need to connect to the camera from anywhere in the world (for example, for remote surveillance), you can use the Mi Home cloud service. RTSP or ONVIF, but with limitations:
- π Video quality is reduced to 720p (Even if the camera is still there 1080p).
- π The delay can reach 2-5 seconds.
- π Xiaomi keeps records on its servers (privacy issues).
How to set up cloud access:
- In the Mi Home app, go to the camera settings and turn on Cloud Storage (optional, for recording).
- Click Share the device and generate a link or QR-code.
- On your computer, open the web version of Mi Home (home.mi.com) and log in.
- In the Devices section, find your camera and click View.
Unofficial automation can be used for automation. API:
- π€ Python-miio library allows you to control the camera through scripts.
- π Home Assistant has built-in integration with Mi Home to display dashboard flow.
π‘
Cloud access is convenient for remote viewing, but not suitable for streaming or recording in high quality. RTSP or ONVIF.
6. Method 5: Alternative software for Windows/macOS/Linux
If standard methods donβt work, you can use specialized programs to work with Xiaomi cameras, which often offer advanced features such as motion detection, recording on a schedule or integration with other devices.
Top.-3 Programs to work with Mijia 360Β°:
| Programme | Platform | Functions | Reference |
|---|---|---|---|
| TinyCam Pro | Windows, macOS, Android | Support RTSP, recording, motion detection, cloud backups | Website |
| iSpy | Windows | Free, support ONVIF, Face recognition, integration with IoT | Website |
| ZoneMinder | Linux | Open source, support RTSP/ONVIF, video-analysis | Website |
Example of settings in TinyCam Pro:
- Download and install the program from the official website.
- Add a new camera by selecting the Mi Home Camera type.
- Enter. IP-Address, Token and Device ID (previously).
- Set up the permission (1080p recommended) and enable the recording when detecting movement.
For Linux, ZoneMinder is suitable:
sudo apt install zoneminder
sudo systemctl enable zoneminder
sudo systemctl start zoneminderAfter installation, add the camera via the web interface (http://localhost/zm), pointed RTSP-URL.
7. Problem Solving: Frequent Errors and Corrections
Even with the right instructions, you can have failures, and let's look at the typical problems and how to fix them.
Problem 1: The camera is not defined by USB
- π Check the cable - try another one (original from Xiaomi).
- π₯οΈ Update Ambarella Drivers in Device Manager.
- π Reboot the camera by holding the reset button for 10 seconds.
Problem 2: RTSP-flow not open
- π Make sure your PC and camera are on the same network (check with ping) IP_Cameras).
- π Turn off the firewall or add an exception for the program (for example, VLC).
- π Update the token in Mi Home Token Extractor β it can change after the camera reboot.
Problem 3: No sound is transmitted
- π€ In the camera settings (Mi Home) turn on the microphone.
- π In a player program (e.g, VLC) Make sure you have the right audio track.
- π Primary USB-No sound is transmitted to the connection β use RTSP or ONVIF.
Problem 4: The camera is constantly shutting down
- π Check the power supply β use the original power supply 5V/2A.
- π‘ Switch from 5 GHz Wi-Fi to 2.4 GHz.
- π In router settings, turn off Energy Saving for Wi-Fi.