Comment on page
Setting up FTP with Amcrest Camera
Configuring FTP as a storage destination for Amcrest motion events
Amcrest cameras can be fully configured to operate with no internet access, and can store videos and motion recordings locally on an SD card, via FTP, or on a NAS device. This post details how to set up the Amcrest camera to store motion events on a remote server via FTP, which can be displayed in Home Assistant.
The Amcrest camera model used in this blog is the Amcrest 1080P WiFi Security Camera 2MP Indoor Pan/Tilt Wireless IP Camera, IP2M-841W, however the configuration options for various Amcrest cameras are likely very similar.
There are a multitude of articles detailing how to set up an FTP server. The main FTP requirements for Amcrest are:
- Network access from the Amcrest camera to the FTP server
- An FTP username and password the Amcrest camera can use
- Permissions to read and write over FTP on the remote server
See the following articles for how to set up FTP:
Once an FTP server is set up, the Amcrest camera can be configured to store videos on the FTP server. Browse to the web server running on the camera's IP address on web 80 and authenticate as the admin user.
Storage Schedule - Navigate to the storage schedule tab, and set the motion and alarm options to 24/7. This causes the camera to record motion events all day.
Storage Destination - Navigate to the storage destination tab, and enter the FTP connection details of the recently configured FTP server.
For various reasons, the Amcrest connection over FTP could be unsuccessful. Use the "test" option to verify the Amcrest camera can successfully connect to the FTP server and write files. When troubleshooting, run the following tcpdump command on the FTP server:
sudo tcpdump -i eno1 port 21
And look for FTP commands being performed by the Amcrest Camera, such as:
FTP: 230 Login successful.
FTP: 257 "/" is the current directory
FTP: CWD uploads/FTP_TEST/1663706237_44757228270
FTP: stor ftp_test.txt
FTP: DELE ftp_test.txt