Using Xiaomi cameras for video surveillance becomes even more effective if the recording is not conducted on the cloud or microSD, and on network storage (NAS). This solution saves space on memory cards, provides secure archive storage and makes it easier to access records from multiple devices. NAS Windows requires the correct setup of the protocol RTSP, Selecting the right software to record and solve possible network problems.
In this article you will find a step-by-step instruction for integrating the camera with NAS-Windows-based servers, including:
- π§ Selection and configuration of programs for recording (Blue Iris, iSpy, Synology Surveillance Station).
- π Activation of the protocol RTSP on Xiaomi cameras (including limited-edition models).
- π οΈ Solving typical errors: no image, authorization problems, lags in the flow.
- π‘ Network optimization for stable video transmission (port 554, UPnP, static) IP).
Special attention is paid to firmware cameras for the international market (for example, Xiaomi Mi Home Security Camera 360).Β° 1080p), where RTSP Disabled by default - alternative methods of activating the flow are given for them.
1 Which Xiaomi cameras support recording on the NAS?
Not all Xiaomi devices can stream video over protocol RTSP, necessary for integration with NAS. Here is the current list of models with support (for 2026):
| Camera model | Support for RTSP | Notes |
|---|---|---|
| Xiaomi Mi Home Security Camera 360Β° 1080p (DJT11LM) | β Yes. | Requires activation in the developer settings |
| Xiaomi Mi Home Security Camera 2K (T8119H) | β Yes. | RTSP It is enabled via the Mi Home app (EU/RF version) |
| Xiaomi Mi Outdoor Camera 1080p | β No. | Only cloud storage, bypassing hubs is unstable |
| Xiaomi Smart Camera C300 | β Yes. | Supports ONVIF, majority-compatible NAS |
| Xiaomi Mi Home Camera 360Β° 2K Pro | β οΈ Partially. | RTSP It only works with firmware for China (region) CN) |
β οΈ Note: Cameras purchased in China (Region) CN), frequently have a blocked RTSP This will require a region change in the Mi Home app or the use of alternative firmware (e.g. Dafang-Hacks).
If your model is not in the table, check its compatibility through the official Xiaomi website or forums (for example, the official website of Xiaomi, r/Xiaomi). For cameras without RTSP Alternatively, you can record through homebridge or Home Assistant and then save it to the homebridge. NAS.
Preparation NAS and networking for camera
Before setting up the camera, make sure your NAS Local network ready to receive video stream:
- π Static IP For camera: Assign a fixed address in the router (e.g. 192.168.1.100) to the device to avoid connection breaks when changing DHCP.
- π Port 554: RTSP Uses port 554 β check that it is open in the Windows firewall and router (if you have a Windows firewall). NAS externally).
- π Local area network: Camera and NAS It should be on the same subnet (for example, 192.168.1.x). For remote access, set up VPN port-drift.
- πΎ Place on NAS: Video stream in resolution 1080p borrower ~2-5 GB/day on camera. Allocate enough space in advance.
πΉ Port 554 inspection:
- Open the Command Prompt (Win + R β enter cmd).
- Follow the command: telnet [IP_camera] 554 If you have a connection, you'll see a blank screen, the port is open. If not, check the firewall settings.
β οΈ Note: If you are using a router with a function AP Isolation, disable it or the camera will not be able to communicate with you NAS even on the same network.
π‘
For testing the flow without NAS use the player VLC. Open Media. β Open up. URL enter RTSP-camera reference (example: rtsp://192.168.1.100:554/stream1).
Activation RTSP on Xiaomi's camera
By default. RTSP It's turned off on most of Xiaomi's cameras:
Method 1: Using the Mi Home app (official method)
- Open the Mi Home app and select the camera.
- Go to Settings. β General. β Additional settings.
- Find the Protocol item RTSP (or Network Sharing in English and activate it.
- Copy the generated reference of the view: rtsp://[IP_camera]:554/stream1
Method 2: Developer settings (for cameras without RTSP Mi Home)
If there is no option in the app RTSP, Try this method:
- At Mi Home, go to Profile β Settings β Region and select China (China).
- Return to the camera settings, a paragraph will appear. RTSP.
- Once activated, return the region (e.g., Russia) to avoid losing functionality.
πΉ For firmware cameras CN: If RTSP If you don't turn on, use alternative firmware like Dafang-Hacks, it requires unlocking the bootloader and can cancel the warranty.
What to do if RTSP It does not work after activation?
4. Selection and configuration of software for recording on NAS
To record video stream from the camera to NAS You'll need specialized software. Let's look at three popular options:
1. Blue Iris (paid, for Windows)
Pros: support for up to 64 cameras, flexible motion settings, integration with the cloud.
Cons: paid license (~$70), high load on CPU.
Setting:
- Install Blue Iris on your computer or NAS Windows.
- Add a camera: Add a camera β IP-camera.
- Enter the Address field RTSP-reference (example: rtsp://192.168.1.100:554/stream1).
- Select the codec. H.264 permit 1920Γ1080 (if maintained).
- Enable the recording by motion (Trigger) β Motion) and point the path to the folder on NAS (for example, \\NAS-IP\Video\Camera1).
2. iSpy (free, for Windows)
Pros: Free version, support ONVIF, email notification.
Cons: limit the number of cameras in the free version (1 camera without cloud).
Setting:
- π₯οΈ Install iSpy and run the camera add wizard.
- π Choose. IP Camera with Wizard and enter RTSP-URL.
- π In the recording settings, specify the network path to NAS (case: \\192.168.1.200\Cameras).
- π Set up traffic alerts via Alerts β Email.
Synology Surveillance Station (for the first time) NAS Synology)
If you NAS From Synology, use the built-in solution:
- Install Surveillance Station from Package Center.
- Add the camera: IP Camera β Add β Xiaomi.
- Enter. IP cameras, login/password and RTSP-port.
- Set up a recording schedule and storage in Storage β Recording.
πΉ Comparison of PO:
| Parameter | Blue Iris | iSpy | Surveillance Station |
|---|---|---|---|
| Cost | Paid (~$70) | Free (with restrictions) | Free (up to 2 cameras) |
| Max. Cameras. | 64 | 1 (free) | Unlimited (with license) |
| Support for ONVIF | β Yes. | β Yes. | β Yes. |
| Recording NAS | β Yes (SMB/NFS) | β Yes (network folders) | β Yes (built-in) |
Install the selected software on the PC/NAS|Check the connection to the camera RTSP|Create a folder for the records NAS|Configure access rights to the folder (read/write)|Checking the vacant space NAS-->
5. Solving typical connection errors
Even with the right setup, there can be problems, and here are the most common ways to fix them:
π« Error: "Cannot connect to camera" (no connection)
Causes and solutions:
- π Port 554 Closed: Check the Windows Firewall (Control Panel) β firewall β Additional settings) and add a rule for port 554.
- π Wrong. IP: Make sure that IP The camera has not changed (check in the router or via Mi Home).
- π Conflict with VPN: Turn it off. VPN computer-based.
π΄ Error: "Authentication failed" (authorization error)
If the camera requests a login/password but does not accept them:
- π Check that you are using the correct credentials (often empty by default).
- π Restart the camera (turn off power for 30 seconds).
- π V RTSP-URL Please clearly specify the username/password: rtsp://login:password@192.168.1.100:554/stream1
π Mistake: Lags or low quality video
Stream optimization:
- πΆ Reduce resolution in camera settings (e.g., with 1080p before 720p).
- π Enable Hardware Acceleration in Software Settings (if supported).
- π Check the network speed between the camera and NAS (Must be at least 5 Mbps per camera).
β οΈ Note: If the Xiaomi camera is periodically disconnected from the NAS, Check your router's power saving settings. Some models (like TP-Link) turn off sleeper devices -- add your camera to the exclusion list.
π‘
For stable operation, use PoE cables (if the camera supports) instead of Wi-Fi. This will reduce delays and eliminate reconnection problems.
6. Alternative recording methods without RTSP
If your Xiaomi camera doesnβt support RTSP, consider these options:
1. Recording through Home Assistant + FFmpeg
If you have a Home Assistant setup, you can organize the recording as follows:
- Connect the camera to the Home Assistant through Xiaomi Miio integration.
- Add to configuration.yaml: camera: - platform: ffmpeg input: -i "http://[IP_camera]/snapshot.jpg" name: Xiaomi Snapshots
- Set up automation to save pictures on NAS scheduled.
2.Using the Xiaomi Cloud + synchronization NAS
If the camera is recording in the Xiaomi Cloud:
- π Download the recordings manually through the Mi Home app.
- π€ Automate downloading using Python scripts (mihome library).
- π Set up a task in Windows Task Planner to transfer files to NAS.
πΉ Xiaomi Cloud only stores records for 7β30 days (depending on model) and frame rate is lower than with local recording.
7. Optimization of the storage of records on NAS
To make effective use of the place NAS:
- ποΈ Set up a cleanup of old records: In the recording software (e.g. Blue Iris) set a storage limit (e.g. 30 days).
- π Use compression: Enable recording in format H.265 (If the camera supports it, it reduces the file size by 30 to 50%.
- π Motion recording: Turn off permanent recording and activate Motion Detection mode).
- π Separate by camera: Create separate folders for each camera (e.g, \\NAS\Cameras\Front_Door).
πΉ Example of folder structure on NAS:
\\NAS\Cameras\
βββ Front_Door\
β βββ 2026-05-01\
β βββ 2026-05-02\
β βββ ...
βββ Backyard\
βββ Garage\β οΈ Attention: If NAS Used for other tasks (e.g., media server), place camera recordings on a separate drive or in a separate shared folder to avoid fragmentation and performance drops.