Connecting Xiaomi’s camera to NAS via Windows: full instruction with settings RTSP error-solving

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 modelSupport for RTSPNotes
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.

πŸ“Š What Xiaomi Camera Are You Using?
Mi Home Security Camera 360Β° 1080p
Mi Home Security Camera 2K
Smart Camera C300
Another model
I don't know.

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:

  1. Open the Command Prompt (Win + R β†’ enter cmd).
  2. 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)

  1. Open the Mi Home app and select the camera.
  2. Go to Settings. β†’ General. β†’ Additional settings.
  3. Find the Protocol item RTSP (or Network Sharing in English and activate it.
  4. 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:

  1. At Mi Home, go to Profile β†’ Settings β†’ Region and select China (China).
  2. Return to the camera settings, a paragraph will appear. RTSP.
  3. 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?
If the camera gives an authorization error when connecting to the RTSP, try: 1. Reset the camera to factory settings (hold the reset button) 10 seconds). 2. Use in URL login/password format: rtsp://[login]@[IP_camera]:554/stream1 Login and password are taken from the camera's Wi-Fi settings (often empty by default). 3. Update the camera firmware through Mi Home to the latest version.

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:

  1. Install Blue Iris on your computer or NAS Windows.
  2. Add a camera: Add a camera β†’ IP-camera.
  3. Enter the Address field RTSP-reference (example: rtsp://192.168.1.100:554/stream1).
  4. Select the codec. H.264 permit 1920Γ—1080 (if maintained).
  5. 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:

  1. Install Surveillance Station from Package Center.
  2. Add the camera: IP Camera β†’ Add β†’ Xiaomi.
  3. Enter. IP cameras, login/password and RTSP-port.
  4. Set up a recording schedule and storage in Storage β†’ Recording.

πŸ”Ή Comparison of PO:

ParameterBlue IrisiSpySurveillance Station
CostPaid (~$70)Free (with restrictions)Free (up to 2 cameras)
Max. Cameras.641 (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:

  1. Connect the camera to the Home Assistant through Xiaomi Miio integration.
  2. Add to configuration.yaml: camera: - platform: ffmpeg input: -i "http://[IP_camera]/snapshot.jpg" name: Xiaomi Snapshots
  3. 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.

FAQ: Frequent questions about setting up

Can I connect the Xiaomi camera to the NAS without RTSP?
Alternative ways: Use Home Assistant with Xiaomi Miio integration and save your photos to the NAS. Download recordings from the Xiaomi Cloud manually or through scripts. ONVIF (for example, Xiaomi C300) It's a standard protocol, but it's not. RTSP You will lose both video and frame rate.
How to reduce the lag when viewing the archive with NAS?
Lags arise due to: Low network speed: Connect NAS and a computer over a Gigabit Ethernet cable. High resolution: Reduce the recording resolution to 720p. Fragmented Files: Regularly defragment the disk NAS Or use the file system. Btrfs/ZFS. Also check the load on CPU NAS β€” if it exceeds 70%, Consider the upgrade of hardware".
Which software is better to choose from 4+ camera?
For a large number of cameras recommended: Blue Iris: Optimal for Windows, supports up to 64 The camera, the flexible settings of the movement. Synology Surveillance Station: NAS Synology, it's the most stable solution. Shinobi: Free, open source, running on the Internet. Linux/Windows, supportive ONVIF. For 4 iSpy cameras are not suitable due to the limitations of the free version.
Can I connect the Xiaomi camera to the NAS through 4G-modem?
Technically yes, but it's unstable: Problems: High ping, connection breaks, traffic restrictions. Solutions: Use 4G-static modem IP. Set up. DDNS dynamically IP (Reduce the bitrate of video to 1 Mbps. Better to use a wired connection or Wi-Fi with a backup channel. 4G.
How to protect records NAS break-in?
Security measures: Encryption: Enable folder encryption on NAS (For example, Synology Drive ShareSync with encryption. Access: Restrict access to the folder with records by IP (Backup: Set up automatic copying of records to an external drive or other cloud. Updates: Regularly update the software NAS Vulnerabilities in older versions are often used for attacks).