Saving Video to PC Shared Folder from IP4M-1028W Dome Camera
Posted: Mon Oct 28, 2019 8:50 pm
One thing that attracted me to Amcrest was the claim that the camera could save to a networked file system/shared folder. Well, after fiddling around trying to get the IP4M-1028W dome camera to save to a HDD connected to my PC (running Ubuntu/Linux), I read that it doesn't support SMB (Samba/Windows sharing). So, I tried FTP'ing to a local server of mine and it refused to work ("right only read" or something was the error).
I tried their Windoze PC video recorder, but the build date was 2016! LOL. It needed some old drivers to run on Windoze 10 and, even then, didn't enable the "PC-NVR" parameters. Yikes. Ditch that idea.
So, I installed NFS on my PC as a test, and I was able to get the files to save there.
The setup to do this is as follows (Ubuntu only, folks, sorry):
1. Edit /etc/fstab to add the HDD, say:
/dev/sdb1 /mnt/myhddrive ext4 defaults 0 1
2. Then, mount it using "sudo mount -a"
3. Install all the necessary software:
sudo apt-get install nfs-kernel-server nfs-common rpcbind
sudo dpkg-reconfigure rpcbind
sudo /etc/init.d/rpcbind restart
4. Then, setup permissions and NFS exports, say:
sudo chown nobody:nogroup /mnt/myhddrive
sudo chmod 777 /mnt/myhddrive
5. Edit "/etc/exports" and add permissions, e.g.:
/mnt/myhddrive 192.168.1.0/16(rw,sync,no_subtree_check)
6. Then, enter:
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
7. Disable firewall unless you know all the NFS ports:
sudo ufw disable
8. Then, log into the camera and enter the appropriate info (say the PC IP is 192.168.1.100):
Enable NAS
Server Address: 192.168.1.100
Remote Directory: /mnt/myhddrive
So, with all that, the camera can now send its video stream to the PC's HDD. However, I do notice that it does corrupt a high percentage of mp4's. Not great. I am trying out different settings to see what causes that.
Hopefully this might help someone out there who happens to have a Linux box.
I tried their Windoze PC video recorder, but the build date was 2016! LOL. It needed some old drivers to run on Windoze 10 and, even then, didn't enable the "PC-NVR" parameters. Yikes. Ditch that idea.
So, I installed NFS on my PC as a test, and I was able to get the files to save there.
The setup to do this is as follows (Ubuntu only, folks, sorry):
1. Edit /etc/fstab to add the HDD, say:
/dev/sdb1 /mnt/myhddrive ext4 defaults 0 1
2. Then, mount it using "sudo mount -a"
3. Install all the necessary software:
sudo apt-get install nfs-kernel-server nfs-common rpcbind
sudo dpkg-reconfigure rpcbind
sudo /etc/init.d/rpcbind restart
4. Then, setup permissions and NFS exports, say:
sudo chown nobody:nogroup /mnt/myhddrive
sudo chmod 777 /mnt/myhddrive
5. Edit "/etc/exports" and add permissions, e.g.:
/mnt/myhddrive 192.168.1.0/16(rw,sync,no_subtree_check)
6. Then, enter:
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
7. Disable firewall unless you know all the NFS ports:
sudo ufw disable
8. Then, log into the camera and enter the appropriate info (say the PC IP is 192.168.1.100):
Enable NAS
Server Address: 192.168.1.100
Remote Directory: /mnt/myhddrive
So, with all that, the camera can now send its video stream to the PC's HDD. However, I do notice that it does corrupt a high percentage of mp4's. Not great. I am trying out different settings to see what causes that.
Hopefully this might help someone out there who happens to have a Linux box.