Author Topic: Amcrest ProHD 1080P  (Read 9781 times)

Offline jdrinnyc

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Amcrest ProHD 1080P
« Reply #15 on: September 10, 2016, 12:57:42 pm »
When I checked the develop apps Luup files  i-amcrest was not listed. I then downloaded the amcrest pro hd attachment and opened it, but have no idea how to install that with my vera. Is there a step by step procedure I can follow? I have the IP2M-841 Thanks.

Offline antilley

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Amcrest ProHD 1080P
« Reply #16 on: September 12, 2016, 07:56:27 pm »
Okay finally got this to work ... thanks for your help.

Imported the xml file ....

xml file into the impl_file

the only URL that i could get to work on the click through and on veramate....
http://<insert IP>/cgi-bin/snapshot.cgi?3


Offline GaryTTirn

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Amcrest ProHD 1080P
« Reply #17 on: September 19, 2016, 09:36:52 am »
@antilley It would be interesting to know which model and firmware you have ? 

Naturally the implementation file brings additional functions for motorized Amcrest PTZ cameras only.
For fixed position cameras it brings nothing new.

This URL gives you snaphot image from the Amcrest and /cgi-bin/snapshot.cgi is what Vera should use as the URL variable (Under Advanced->Extra Parameters->Variables)
http://<camera IP Address>/cgi-bin/snapshot.cgi

You also get the video stream via browser, but these won't work via the Vera I'm afraid :

Main Stream :
http://<camera IP Address>/cgi-bin/mjpg/video.cgi?channel=0&subtype=0

Secondary Stream :
http://<camera IP Address>/cgi-bin/mjpg/video.cgi?channel=0&subtype=1


Offline meathead88

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +2/-0
Re: Amcrest ProHD 1080P
« Reply #18 on: September 28, 2016, 01:18:17 pm »
@antilley It would be interesting to know which model and firmware you have ? 

Naturally the implementation file brings additional functions for motorized Amcrest PTZ cameras only.
For fixed position cameras it brings nothing new.

This URL gives you snaphot image from the Amcrest and /cgi-bin/snapshot.cgi is what Vera should use as the URL variable (Under Advanced->Extra Parameters->Variables)
http://<camera IP Address>/cgi-bin/snapshot.cgi

You also get the video stream via browser, but these won't work via the Vera I'm afraid :

Main Stream :
http://<camera IP Address>/cgi-bin/mjpg/video.cgi?channel=0&subtype=0

Secondary Stream :
http://<camera IP Address>/cgi-bin/mjpg/video.cgi?channel=0&subtype=1

Hey, thanks for this GaryTTirn!!!

I love my Amcrest Cameras.  How do we get Vera to officially support them?  Amcrest is pretty popular i would think.

Offline meathead88

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +2/-0
Re: Amcrest ProHD 1080P
« Reply #19 on: September 28, 2016, 01:25:07 pm »
FYI, i just emailed support. I'll let you guys know if they have any replies.

Offline meathead88

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +2/-0
Re: Amcrest ProHD 1080P
« Reply #20 on: September 28, 2016, 02:30:06 pm »
FYI, i just emailed support. I'll let you guys know if they have any replies.

Well i got a reply, rather quickly:
"
Thank you for contacting Vera Care Support!
We are aware that Amcrest cameras are currently not compatible with Vera. We have this reported to our R&D to be taken in consideration for future integration.
Thank you for your understanding.
Regards,

Helen A. ▾Customer Care Advocate
"

Offline awoodlandcritter

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Amcrest ProHD 1080P
« Reply #21 on: October 30, 2016, 06:16:56 pm »
Just need a little help/clarification with the following step: Set as implementation file for the Amcrest camera
Cameras->Amcrest->Advanced Settings->Extra Parameters->impl_file.

I select Extra Parameters and the 'Extra Parameters' screen comes up  - -but I do not see a impl_file field.   I have a 'device_file' and a 'device_json' field....

Any help on  this last step?

Offline GaryTTirn

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Amcrest ProHD 1080P
« Reply #22 on: November 06, 2016, 03:46:41 am »
Perhaps you have different device_file & device_json and thus rest of the fields may be different.

I have :

device_type : urn:schemas-upnp-org:device:DigitalSecurityCamera:2
device_file : D_DigitalSecurityCamera2.xml
device_json : D_DigitalSecurityCamera2.json

All those were set by Vera when I manually created the Amcrest as generic IP camera.

Offline Cliff1745

  • Newbie
  • *
  • Posts: 14
  • Karma: +1/-0
Re: Amcrest ProHD 1080P
« Reply #23 on: November 17, 2016, 05:05:32 pm »
While my camera is not the exact one listed on this thread, I have a couple of Amcrest HPseries 720p wifi wireless security cameras.
As suggested, I contacted support and was later contacted for info on the IP address, etc. some of which I didn't know.

I was able to get info running the Amcrest IP Config app downloaded from their site.

The support person "Magda" did originally have a problem because the IP address changed. I went to the settings on Amcrest IP Config App and turned off "DHCP" and reset the IP address to the original. I also had to change the cameras Encode Mode to H.264 and enable MJPEG.

Thanks to Magda I can now see my cameras, however, I still don't seem to have any control over them in order to record or view the recordings.
But I can take a quick view from Vera to see what's going on.

Cliff

I see a beta has just been released that includes more support for the cameras. So I guess I'll just wait and see if it improves the problems with these cameras.



Offline rhanauer

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: Amcrest ProHD 1080P
« Reply #24 on: November 23, 2016, 09:59:41 pm »
@antilley It would be interesting to know which model and firmware you have ? 

Naturally the implementation file brings additional functions for motorized Amcrest PTZ cameras only.
For fixed position cameras it brings nothing new.

This URL gives you snaphot image from the Amcrest and /cgi-bin/snapshot.cgi is what Vera should use as the URL variable (Under Advanced->Extra Parameters->Variables)
http://<camera IP Address>/cgi-bin/snapshot.cgi

You also get the video stream via browser, but these won't work via the Vera I'm afraid :

Main Stream :
http://<camera IP Address>/cgi-bin/mjpg/video.cgi?channel=0&subtype=0

Secondary Stream :
http://<camera IP Address>/cgi-bin/mjpg/video.cgi?channel=0&subtype=1

Thanks it was a big help I used this and got it to work, now to only get motion detection going!! 

Offline nstearns

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Amcrest ProHD 1080P
« Reply #25 on: December 18, 2016, 10:01:04 pm »
I wanted to add my contribution to this thread.

Some background: I am running a VeraEdge UI7/ 1.7.2406 with two Amcrest IP2M-841E cameras (and a Hikvision DS-2CD2T42WD-I5 4mm camera). I also have an NVR (QNAP NAS TS-231+, running Surveillance Station 5.1.1.0). I record all three cameras 7x24 for rolling 6 days to a 4TB HDD, and I have a 64GB SD card in each of the two Amcrest cameras for Alarm recording only (redundant to the alarm recording also configured in the NVR...meaning someone has to steal the cameras and the NVR to get rid of evidence). I am using the Vera with multiple Ecolink PIR Motion Detectors, multiple Ecolink door/window sensors, multiple First Alert fire/CO detectors, and multiple GE SmartSwitch (in wall).

I?ve read many posts regarding the challenges of using the camera?s software-based motion detection and I never had any success using the software-based detection on some analog cameras I?ve used. So, I want to trigger motion related recording by using passive infrared sensors and door sensors using Vera?s Scene management.

My scene objective was the following:

When a specific PIR motion (or door/window) sensor detects motion, then?
  • Send command to a specific camera to pan/tilt to a specific preset position
  • Send command to the same camera to record video to the on-board SD card
  • Send command to the NVR to record video on the NAS (and flag it as an alarm recording)
  • Send email/text message with the details of the event, with fast access to the recording


I used the instructions from GaryTTirn above to upload & configure the Amcrest camera implementation file in Vera for the pan/tilt function. I then created a Vera Scene, selecting the appropriate sensor and camera. I then edited the Scene using the Advanced Editor to add the command ?GoToPreset? and designate the appropriate Preset related to the location of the sensor which triggered the action. I also set the scene to notify me via text message.

I then added the following Luup code to the Scene:
luup.inet.wget("http://userid:password@ipaddress/cgi-bin/configManager.cgi?action=setConfig&Alarm[0].SensorType=NC")
luup.call_delay ("pirMotionReset", 60)
function pirMotionReset()
luup.inet.wget("http:// userid:password@ipaddress /cgi-bin/configManager.cgi?action=setConfig&Alarm[0].SensorType=NO")
end


(Note: replace userid:password@ipaddress with your credentials)

I then edited Relay Activation on the Setup>Event>Alarm page of the Amcrest camera:
  • Select Enable, and set the Sensor Type to NO (Normally Open)
  • Select Record, with Record delay = 10 seconds

I then edited the storage path on the Setup>Storage>Destination page of the Amcrest camera to save Alarm recordings to the SD Card.

I then edited the recording control on the Setup>Storage>Record Control page of the Amcrest camera:
  • Pack = 1 (which is 1 minute of recording)
  • Pre-event Record = 10 (seconds)
  • Record Mode = Auto
  • Record Stream = Main Steam

Now, when a sensor is triggered, my camera pans to the preset, records to the SD card with 10secs of video before the trigger occurred, records an alarm event (and alarm video file) to the NVR, and I get an email & text. Also, vMobile (which is the mobile app for Surveillance Station), sends me a push notification, with a quick connection to the alert and associated recording file. (I can also define some additional actions that the NVR will take when it gets the Alarm signal from the camera.)


Note: I tried using the following (provided in a post above)

--Enable MotionDetect in scene LUUP code
      luup.inet.wget("http://<userid>:<password>@<ipaddress>/cgi-bin/configManager.cgi?action=setConfig&MotionDetect[0].Enable=true",5)
--Disable MotionDetect in scene LUUP code
      luup.inet.wget("http://<userid>:<password>@<ipaddress>/cgi-bin/configManager.cgi?action=setConfig&MotionDetect[0].Enable=false",5)

but those commands only enable Motion Detection. The camera still has to be preconfigured to detect the motion for it to detect the motion that was already detected by the sensor. There is no guarantee that simply enabling Motion Detection would actually trigger the recording.

Using the Luup code to set the Alarm Sensor Type to NC (Normally Closed) forces the camera into an alarm state. Using this binary approach ensures I get a recording from any PIR motion or door/window sensor trigger (or any Vera-attached device, for that matter). And, I can fire off multiple cameras to capture alarm recordings everywhere as the event is in progress from a single sensor. Setting the Alarm Sensor Type to NO ends the alarm state. I can control the duration of the alarm (and therefore the recording) using the delay command. In fact, I can set the delay parameter to a variable, and change the alarm duration (recording) based on the type of event that is detected (using conditional statements and variables within the Luup code.

Hope this helps anyone who was trying to find a way around software based motion detection.

Now...to find the same HTTP commands for the Hikvision.....

« Last Edit: December 18, 2016, 10:05:48 pm by nstearns »

Offline nstearns

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Amcrest ProHD 1080P
« Reply #26 on: December 23, 2016, 04:42:31 pm »
This is an update to my previous post.

After I installed the I_Amcrest_ProHD.xml (see above posts) file to enable PTZ controls, I started receiving constant invalid credentials and device not detected messages in Vera. After approx. 60 mins, Vera would alert me that the camera was no longer responding.

Upon further investigation of the I_Amcrest_ProHD.xml file, I realized it has invalid syntax for my model of camera, which is Amcrest IP2M-841E. Specifically, if you look at the xml, you will see this:
luup.inet.wget("http://" .. lug_ip .. "/cgi-bin/ptz.cgi?action=start&amp;channel=0&amp;code=" .. code .. "&amp;arg1=0&amp;arg2=" .. arg2 .. "&amp;arg3=0",5,lug_username,lug_password)

For my model, the username and password must be in the format of http://<username>:<password>@<ipaddress>/cgi-bin....  The syntax in the xml puts the username and password in the wrong place. I believe this is the cause of the errors being thrown by Vera.

I also realized I don't really need the controls on the Live view within Vera, nor do I need the controls available as Actions within the Advanced Editor for Scenes (which is what the xml does). I don't use Vera for live view (it can't handle the streaming, and I have my NVR and mobile app for live viewing and camera control). So, I ended up deleting my camera, reinstalled it as a Generic IP camera, and now do NOT use the I_Amcrest_ProHD.xml as the impl_file. I just use the interface for a Generic IP camera.

So, how do I get Vera to control my camera when a motion/door/window sensor (or any device) triggers an action for the camera? I simply use http commands inserted into the Luup code within a scene. Example:

####################################################
Luup Scene Code to Pan, Alarm 60sec, Reset
----------------------------------------------------

luup.inet.wget("http://<username>:<password>@<ipaddress>/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=1&arg3=0")
luup.inet.wget("http://<username>:<password>@<ipaddress>/cgi-bin/configManager.cgi?action=setConfig&Alarm[0].SensorType=NC")
luup.call_delay ("pirMotionReset", 60)     
function pirMotionReset()
  luup.inet.wget("http://<username>:<password>@<ipaddress>/cgi-bin/configManager.cgi?action=setConfig&Alarm[0].SensorType=NO")
end
luup.set_failure (false, <###>)


Note that you have to insert your own info for <username>:<password>@<ipaddress> and <###>.

Tip: if you copy text from a doc, make sure the source text is ANSI. Since there is no Paste as plain text option when pasting into the Luup code window in Vera, hidden text format controls are pasted. Although you can't see them, the camera does see them and it rejects the http command.

Tip: I read a few posts that it is good practice to insert this at the end of each Luup code:

luup.set_failure (false, device_number)
    NOTE: device_number being the actual device number you want to clear.


« Last Edit: December 23, 2016, 04:50:27 pm by nstearns »

Offline Wry

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Amcrest ProHD 1080P
« Reply #27 on: May 06, 2017, 08:28:45 am »
Hi, very interesting post - which I picked up from Vueville. I am trying to do something similar though with a different setup. I have a Vera Edge, Synology diskstation running surveillance station and several Foscam IP cameras.

At present Synology Surveillance station is on 24/7 because there is no simple and quick way of enabling it when I leave the house and disabling it when I return. As I am using the motion detection on the foscam's I get endless motion detections when a shadow falls etc - which renders it useless as an alarm system plus it fills up the hard disk with needed recordings of family members moving around the house when we are home. I have played around with Domotizc on the Syno a bit but don't find it as easy to use as I want. Hence I have the Vera - which is a lovely little device and does everything I want as an alarm and home automation controller - almost.

What it does not do is save recordings of videos to a server - so I just end up with snapshots in the event of a motion detection that are recorded on the Vera server. The solution to this would be either to have Vera arm Surveillance station - so that I rely on surveillance station to record videos when an event occurs, or to have Vera store videos on the Synology - so they can be accessed either through Vera or another app UI easily on my iPhone.

There is a Vera plug in for Synology Surveillance station that enables Vera to instruct it to record video but I have not succeeded in making it work after several hours of playing around with it.

As I understand from your setup, you have solved this issue with your setup by instructing the cameras to store recordings on your NAS. How did you do this? Was it via http code or via an option on the Amcrest? I would be interested to know if you have any tips or suggestions

Offline nstearns

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Amcrest ProHD 1080P
« Reply #28 on: May 09, 2017, 01:02:18 pm »
I use a combo of HTTP code within Luup code on Vera (see above post; you may have to modify the HTTP commands to match syntax for your camera) and the alarm recording setup within Surveillance Station. I am running Surveillance Station v 5.1.1.0 (2016/09/26). Below is my Surveillance Station setup.

I select Camera Configuration. For each camera, I have selected ?Enable recording for this camera? on the Camera Configuration tab in the Camera Configuration dialog. I have also selected ?Enable schedule recording? on the Schedule Settings tab and selected every hour of every day. So, I am doing 7x24 recording to my NAS just because I have ample disc space. This is what you are doing (but filling up your disc with no indication of where the alarm occurred)?but you may be able to disable the continuous recording and create alarm recordings if you do the Luup code above and the Surveillance Station setup as follows.

For alarm recording, I select Event Management. For each camera I use ?Traditional Mode?. On the Alarm Setting tab, I select ?Enable alarm recording?. I deselect ?Start recording when motion is detected by camera?. I select ?Start recording when the camera?s alarm input 1 is [Close]?. I select ?Activate alarm recording only on selected schedule?; with ?Basic mode? and Days = All Days and Duration = All day.

In Advanced Settings, under the Alarm Recording settings I set ?Start recording video (at minimum) 30 second(s) before the event occurs? and ?Stop video recording 30 second(s) after event ends?.

The settings within Surveillance Station combine with the Luup code I embedded in Vera (see previous post). When my PIR motion sensor is triggered, Vera launches the Luup code which pans the camera and switches the camera?s Alarm output from Open to Close. The Close state triggers Surveillance Station to record the alarm. The Luup code has a timer built into it which changes the alarm state back to Open after X seconds, which then causes Surveillance to stop alarm recording. (I don?t use the camera?s motion detection? the PIRs seem to perform better with fewer false positives. NOTE: I have not spent the time to find the appropriate HTTP commands for my HIKVISION camera to set and reset the alarm output?I have only done this with my Amcrest cameras.)

FYI ? I also have Vera set up to take a snapshot and ?text? the alarm to me (Vera sends an email to my phone number using AT&T?s email to text capabilities, since Vera limits the number of SMS texts). This allows me to do a quick check to see what triggered the alarm without having to log into the NAS to view the alarm recording.

So that?s how I get the camera to trigger alarm recordings stored on my NAS. I access the recordings from any device by establishing a VPN connection (using OpenVPN app and the NAS VPN server and it?s built in MyDDNS service of myQNAPCloud application.) BTW, since I record on the NAS 7x24, what I am really doing is creating alarm files that are stored in a separate folder on NAS. I also have redundancy in the cameras, since I have SD cards in the cameras that also store the alarm recording. So, I have backup in case I lose the camera or the NAS.

Hope that helps?


Offline l8nighter

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +8/-0
Re: Amcrest ProHD 1080P
« Reply #29 on: May 14, 2017, 01:11:57 pm »
Here is the guide I created on how to add a Amcrest ProHD 1080p 30FPS WiFi IP Security Camera IP2M-841 to the Vera after contacting Vera support.  Hopefully this helps others.
« Last Edit: May 16, 2017, 11:20:53 pm by l8nighter »