Sure, glad to.
Be sure to specify JUST the IP address of the NVR in the IP address of the camera (this would be the fourth camera, for instance): /ISAPI/Streaming/channels/401/picture
And then the Streams variable like so: rtsp,rtsp,:8554/Streaming/channels/402
This adds a new ‘alertURL’ variable to the camera, which allows you to exactly specify the URL to get the alertStream. If you’re using the Virtual Host option, you should specify the port # of your camera in the first part of the URL like so : :65004/ISAPI/Event/notification/alertStream
Few things you’ll need to ensure:
[ol][li]You have the Virtual Host option turned on for your NVR[/li]
[li]Your username/password is the same on the NVR as your cameras (the admin user may not work well, you may need to add a new user with appropriate permissions)[/li]
[li]You probably will need to change your substream for each camera to MPEG to make the streaming work properly in the mobile app (H.264 which is the default, and does not seem to work for Vera). This is why I specified ‘402’ above, vs ‘401’ which is the main stream.[/li]
[li]This code is specifically written to expect the Line Detection capability to be pre-configured on the camera. You’ll want to do this through the NVR itself for each camera you plan to connect to[/li][/ol]
What’s going on here is we’re actually leveraging the NVR to get the images and video, but then directly accessing the cameras to get access to the alertStream linedetection notifications.
Be careful using this, if you don’t know what you’re up to, you could get into a Luup-reboot-loop and have a tough time getting out of it. (No warranties provided obviously). I’m actually doing this on my LaView NVR/camera setup, which is rebranded Hikvision. Other than the annoying alert-delay things seem to be mostly working.
Hope that helps.