Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PTZ commands with absolute PTZURL #19

Closed
mythgarr opened this issue May 30, 2017 · 9 comments
Closed

Support PTZ commands with absolute PTZURL #19

mythgarr opened this issue May 30, 2017 · 9 comments

Comments

@mythgarr
Copy link
Contributor

Not sure if this is the right place to submit feature requests. I'm planning to put together a pull request for this feature later but it was also requested at http://community.ispyconnect.com/ispybb2/viewtopic.php?t=5538

If an RTSP url is used for the video source (eg: with the Amcrest IP2M-841, something like rtsp://user:password@mycamera/cam/realmonitor?channel=1&subtype=0) PTZ functionality will be disabled. PTZ settings support specifying a different URL (in the above example http://mycamera/cgi-bin/) but in this configuration command information is ignored (see PTZController.cs line 1365).

A possible workaround is to define a different "camera" for each attached device in PTZ2.xml (each using absolute URLs) but this leads to maintenance issues.

@ispysoftware
Copy link
Owner

in ispy if you click the "..." button next to the camera model dropdown on the PTZ tab when editing the camera you can change the PTZ URL to be an absolute URL there (add http://... to the beginning on the URL)

@mythgarr
Copy link
Contributor Author

This issue has NOT been resolved - see the initial request:

PTZ settings support specifying a different URL (in the above example http://mycamera/cgi-bin/) but in this configuration command information is ignored (see PTZController.cs line 1365).

In other words, if an absolute URL is used iSpy will no longer add the command information.

@ispysoftware
Copy link
Owner

oh i see what you mean - will get it fixed.

@ispysoftware ispysoftware reopened this Sep 25, 2017
@ispysoftware
Copy link
Owner

i've checked in some updates please let me know if this resolves the issue.

@mythgarr
Copy link
Contributor Author

mythgarr commented Sep 26, 2017

I meant to leave a comment - it looks like the changes might be included in version 6.8.4.0. Is there somewhere I can see which revision of the code was used to build each installer?

EDIT: I can't test the fix as this version is crashing on startup with the following error. Removing all cameras & microphones from objects.xml allows me to open iSpy but adding the first camera causes another crash. I've altered the username, password and IP address due to security reasons but it looks like this:
rtsp://admin:password@192.168.0.21:80/cam/realmonitor?channel=1&subtype=0

Application: iSpy.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at iSpyApplication.Controls.VolumeLevel.AudioDeviceDataAvailable(System.Object, iSpyApplication.Sources.Audio.DataAvailableEventArgs)
at iSpyApplication.Sources.Audio.DataAvailableEventHandler.Invoke(System.Object, iSpyApplication.Sources.Audio.DataAvailableEventArgs)
at iSpyApplication.Sources.Video.MediaStream.ReadFrames()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()

@ispysoftware
Copy link
Owner

yeah there's a bug in wix where it's not updating one file - working on that - you'll need to build from source to see the changes. I'll upload a new version today.

@mythgarr
Copy link
Contributor Author

The latest version seems to correctly build a URL for PTZ control. I'm running into an unrelated issue due to our configuration - our cameras apparently no longer support basic authentication for PTZ. This was fixed back in version August 2015 with version 1.3.6.0 ("Added digest authentication support to PTZ") but I can't find the option to enable it.

@ispysoftware
Copy link
Owner

If you want to port forward the camera and send me a login i can take a look. It should try digest automagically if basic fails

@mythgarr
Copy link
Contributor Author

I was able to get it working with a few small bug fixes. Submitted a pull request with the fixes.
#28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants