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 NAS | Suitable for | Pluses | Cons |
|---|---|---|---|
| Synology DS220j | 1-2 cameras 1080p | Low price, simple setup | A weak processor for 2K |
| QNAP TS-253D | 3-5 cameras 2K | Intel Celeron, support ONVIF | More expensive than analogues |
| TerraMaster F2-221 | 2β3 camera 1080p/2K | Good Price/Performance Relationship | Less friendly interface |
| Homemade NAS (TrueNAS) | 5+ camera 4K | Maximum flexibility, low cost | Requires 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.
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:
- Create a shared folder (for example, Xiaomi_Cameras) interfaced NAS. For Synology, this is done in the Control Panel. β Shared folder.
- 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:
- Open the Mi Home app, select the camera and go to Settings β Warehouse β Network disk (NAS).
- 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?
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 off | Check the power. NAS, correctness IP and opening ports on the router |
| Authentication error | Incorrect login/password or access rights | Reset the user's password to NAS, check the file rights |
| There's no free space. | Nana NAS less than 500 MB of free space | Clear the space or increase the capacity of the disk |
| The connection is breaking. | Unstable network or timeout FTP/SMB | Increase the timeout by NAS or switch to SMB |
| The recording is jerking. | Low productivity NAS net | Connect. 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.