Connecting Xiaomi’s camera to NAS: Complete guide with setup and tips

Why? NAS β€” Best solution for storing records from Xiaomi cameras?

Network storage NAS (Network Attached Storage is becoming more popular among Xiaomi smart camera owners, for good reason: First, they solve the problem of limited cloud storage: instead of paying for a Mi Home Cloud subscription, you get unlimited space for an archive of records with a resolution up to the resolution of the previous one. 4K. Secondly, NAS It allows local access to video without delay, which is critical for security systems. Finally, it's the only way to save records when you shut down the Internet -- the cloud is useless in this situation.

Xiaomi Cameras (Mi Home Security Camera) 360Β° 2K Xiaomi Smart Camera C400) The box does not support direct recording of NAS. Protocol settings are required FTP, SMB integration through ONVIF (In this article, we will discuss all the ways of connecting, from basic to professional, taking into account the nuances of firmware and the limitations of Mi. Home/Mi Home Security.

It is important to understand that not everyone NAS Cheap single-disc models (such as Western Digital My Cloud) may not be able to handle streaming video due to poor performance. And some Xiaomi cameras (such as Xiaomi Mi Home Camera) 1080p) They can't write to external storage without a workaround. We tested Synology. DS220+, QNAP TS-251D homemade NAS on TrueNAS – and ready to share working schemes.

What? NAS Choosing Xiaomi Cameras: Criteria and Recommendations

Choice NAS Xiaomi cameras are dependent on three key factors: number of cameras, recording resolution, and archival requirements. C300 permittingly 2K@15fps generate ~1.5 TB of data per month with round-the-clock recording. NAS capacityless 6 TB (including reservations).

Minimum requirements for NAS steady-work:

  • πŸ”Ή Processor: Dual-core 1.4 GHz+ (For example, Realtek RTD1296 synology DS220j). For 4.+ You need an Intel Celeron or ARM Cortex-A72.
  • πŸ”Ή RAM: 1 GB for 1-2 cameras, 2-4 GB for a 3-camera system+ device.
  • πŸ”Ή Network interface: Gigabit Ethernet (required! 100 Mbps won't pull multiple threads 2K).
  • πŸ”Ή Support for protocols: FTP, SMB 2.0/3.0, NFS (advanced).
  • πŸ”Ή Capacity: HDD 4 TB+ format RAID 1 (mirroring) for reliability.

From ready-made solutions, we recommend:

Model NASSuitable forPlusesCons
Synology DS220j1-2 cameras 1080pLow price, simple setupA weak processor for 2K
QNAP TS-253D3-5 cameras 2KIntel Celeron, support ONVIFMore expensive than analogues
TerraMaster F2-2212–3 camera 1080p/2KGood Price/Performance RelationshipLess friendly interface
Homemade NAS (TrueNAS)5+ camera 4KMaximum flexibility, low costRequires administration skills

⚠️ Xiaomi cameras with Mi Home firmware (not Mi Home Security) do not support recording NAS down ONVIF. They are only available to them. FTP or SMB.

πŸ“Š What? NAS You're using cameras?
Synology
QNAP
TerraMaster
Homemade (TrueNAS/OpenMediaVault)
Not yet.

Preparation NAS Connecting Xiaomi cameras

Before you set up the cameras, you have to configure the storage itself, which is often overlooked, which causes the later to write errors or lose data, and starting with creating a separate folder for the cameras, which will make it easier to manage access rights and backup.

Steps of preparation NAS:

  1. Create a shared folder (for example, Xiaomi_Cameras) interfaced NAS. For Synology, this is done in the Control Panel. β†’ Shared folder.
  2. Set up access rights: πŸ” For FTP: Create a user (for example, xiaomi_camera) password and give him permission to write to the folder. πŸ” For SMB: turn on the protocol in the settings NAS And point to the same folder.

Check the network settings:

192.168.1.x

Open the ports:

FTP

21

SMB

445

For Synology and QNAP There are ready-made video surveillance packages (like Surveillance Station), but they are paid and not always compatible with Xiaomi cameras. NAS as a simple file storage, and camera management leave in Mi Home.

Created a common folder for records|User with password configured|Access rights vetted|Ports FTP/SMB router-bound|NAS and cameras in the same subnet-->

Connecting Xiaomi’s camera to NAS down FTP: step-by-step

Protocol FTP β€” The most universal way to connect Xiaomi cameras to the NAS, It is supported by all models (including the Mi Home Camera 360).Β° Xiaomi Smart Camera C300). However, it has drawbacks: data transfers are unencrypted, and some providers block port 21.

Instructions for cameras with firmware Mi Home:

  1. Open the Mi Home app, select the camera and go to Settings β†’ Warehouse β†’ Network disk (NAS).
  2. Choose. FTP and fill in the fields: πŸ“Œ Server address: IP yours NAS (for example, 192.168.1.100). πŸ“Œ Port port: 21 (or other, if the non-standard). πŸ“Œ User name/password: user data created by NAS. πŸ“Œ Way: /Xiaomi_Cameras/ (point with a straight slash!).

Passive regime (PASV)

Connection test

  • πŸ”Œ Is port 21 open on the router?
  • πŸ”Œ Is the path to the folder correctly indicated (registrar is important!)?
  • πŸ”Œ Is access allowed for the user?
  • Make sure the protocol version is β€” SMB 2.0 or 3.0 (Xiaomi cameras don't work with the same camera) SMB 1.0).
  • Create a user with a password (as for the user). FTP) And give him the file rights.
  • Save the settings and wait for the connection test.

If the connection is not established, check:

  • πŸ”§ Is port 445 open on the router?
  • πŸ”§ Does yours support you? NAS SMB 2.0+?
  • πŸ”§ Is there a blockage from the antivirus or firewall on the NAS.
How to check the SMB version on the NAS?
In Synology, run the command in the terminal: smbstatus -V Nana QNAP check in the control panel. β†’ Network services β†’ Microsoft Networking, if the version 1.0, firmware update NAS Or turn on the support. SMB 2.0 manually.

Solving common connection errors

Even with the right setup NAS We've collected typical problems and solutions based on user experience and our tests.

Mistake.Reason.Decision
I was unable to connect to the server.Wrong. IP port, NAS switched offCheck the power. NAS, correctness IP and opening ports on the router
Authentication errorIncorrect login/password or access rightsReset the user's password to NAS, check the file rights
There's no free space.Nana NAS less than 500 MB of free spaceClear the space or increase the capacity of the disk
The connection is breaking.Unstable network or timeout FTP/SMBIncrease the timeout by NAS or switch to SMB
The recording is jerking.Low productivity NAS netConnect. NAS Cable, reduce the bitrate of the camera

If the camera is connected but the recordings are not saved, check:

  • πŸ“ Path to folder: in FTP must be straight-slashed (/Xiaomi_Cameras/), into SMB β€” slashless (Xiaomi_Cameras).
  • πŸ•’ Time on camera and NAS: If it is more than 5 minutes apart, the recording may not work.
  • πŸ“‘ Network speed: for 2K At least 5 Mbps of stable channel is required.

⚠️ Note: Xiaomi cameras with Mi Home (not Mi Home Security) do not support scheduled recording on the device NAS. They will only record when motion is detected or around the clock if the appropriate mode is turned on.

πŸ’‘

If the camera says β€œFailure to save video”, check the file system format on the NAS. Xiaomi cameras don’t work with exFAT – use it NTFS or ext4.

Optimizing the recording: how to reduce the load on NAS

Round-the-clock recording from multiple Xiaomi cameras can quickly fill the disk and overload NAS. To avoid this, use the following settings:

Setup of the camera:

  • πŸŽ₯ Permission: enough for the archive 1080p (Even if the camera is still there 2K).
  • πŸŽ₯ Bitrate: reduce to 2000-4000 Kbps (in the recording quality settings).
  • πŸŽ₯ Recording mode: turn on the Record by movement instead of round-the-clock.
  • πŸŽ₯ Clip Length: Set 5-10 minutes (less file fragmentation).

2.Tune in. NAS:

  • πŸ’Ύ RAID: use RAID 1 (mirror) for reliability or RAID 5 for 3+ disk.
  • πŸ’Ύ Caching: On Synology, turn on SSD-cache.
  • πŸ’Ύ Cleanup: set up automatic deletion of old records (e.g., older than 30 days).

Network settings:

  • 🌐 Connection: Use the Gigabit Ethernet cable to NAS and cameras (if supported).
  • 🌐 QoS on router: Prioritize camera traffic to avoid lags.

For advanced users: If you have multiple cameras, consider using them. ONVIF (For models with firmware Mi Home Security, this protocol allows you to flexibly adjust threads and reduces the load on the device. NAS camera-side compression.

πŸ’‘

To check the actual load on NAS, Use built-in monitoring tools (e.g. Resource Monitor on Synology). CPU Upload more than 70%, reduce the number of cameras you can record at the same time or upgrade NAS.

FAQ: Frequent questions about connecting Xiaomi cameras to NAS

Can I connect the Xiaomi camera to the NAS without Mi Home?
Yes, but only for models with support. ONVIF (Xiaomi Home Security Camera 360Β° 2K). For this: Turn on ONVIF in the camera settings (Settings) β†’ Additionally. β†’ ONVIF). Add the camera to a video surveillance program (e.g. iSpy or Blue Iris). NAS It's a program that's not used for cameras. ONVIF (For example, Mi Home Camera 1080p) Home Assistant with Xiaomi Miio plugin.
Why does the camera write β€œnetwork error” when connecting to the NAS?
This error occurs in 90% of cases due to: πŸ”Œ Check if the ports are open to 21 (FTP) 445 (SMB) router. πŸ”Œ Wrong. IP: if NAS receiver IP down DHCP, Put it in the router settings. πŸ”Œ Conflict with antivirus: on NAS Turn off the security temporarily (e.g. Synology Security Advisor) and try to reset the camera. NAS.
How to set up backup of records with NAS?
For reliability, we recommend: Configure Hyper Backup (on Synology) or Hybrid Backup Sync (on Synology). QNAP) file-copy Xiaomi_Cameras external disk or other NAS. Use cloud redundancy (e.g. Backblaze) B2 Amazon S3) Enable Snapshot Replication (if supported) to record file states every few hours. Minimum backup β€” 1.5Γ— from the size of the main archive.
Can I connect the Xiaomi camera to the NAS via the Internet (remotely)?
Yes, but it's not safe. For remote connectivity: Set up VPN on a router (such as WireGuard or OpenVPN). NAS ce VPN, So that it's available locally. IP In the camera settings, specify the local IP NAS (192.168.1.100) and not the external. ⚠️ Warning: Never open ports FTP or SMB Directly on the Internet, it will expose your NAS attack.
What Xiaomi cameras do not support recording NAS?
Unfortunately, some models are not able to record on external storage: 🚫 Xiaomi Mi Home Camera 1080p (first-generation). 🚫 Xiaomi Mi Home Camera 360° (Mi Home, not Mi Home Security). 🚫 Xiaomi Mi Smart Clock Camera (No Support) FTP/SMB). For these models, the only way out is to use ONVIF (If supported, or Home Assistant with plugins.