- Mar 10, 2014
- 717
- 203
I tried to implement PTZ tracking with iSpy but not sure it's possible with Dahua cameras. The reason is they have commands for left/right/up/down but it requires a start command to get it going, then a stop command to stop it and iSpy did not seem to have provisions for this. So when it detected movement, it issued a pan right command which sent it in circles. If anyone got it working with Dahua, please let me know.
For starters, the new Dahua cameras seem to have a different URL string for RTSP which like this, no parameters like before - rtsp://admin:admin@192.168.1.100:554/
This is what I setup in their PTZ2.xml file that contains the URL instruction for each camera. I just put Left/Right commands for testing, but you can see action=start in the instruction, but that just starts panning, you have to issue the same command with action=stop to stop the motion.
For starters, the new Dahua cameras seem to have a different URL string for RTSP which like this, no parameters like before - rtsp://admin:admin@192.168.1.100:554/
This is what I setup in their PTZ2.xml file that contains the URL instruction for each camera. I just put Left/Right commands for testing, but you can see action=start in the instruction, but that just starts panning, you have to issue the same command with action=stop to stop the motion.
Code:
[FONT=Courier New] <Camera id="199">
<Makes>
<Make Name="Dahua" Model="SD59230S" />
</Makes>
<CommandURL>/cgi-bin/</CommandURL>
<Commands>
<Left>ptz.cgi?action=start&channel=0&code=Left&arg1=0&arg2=1&arg3=0</Left>
<Right>ptz.cgi?action=start&channel=0&code=Right&arg1=0&arg2=1&arg3=0</Right>
</Commands>
<ExtendedCommands>
<Command Name="action=Preset 1">ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=1&arg3=0</Command>
<Command Name="action=Preset 2">ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=2&arg3=0</Command>
<Command Name="action=Preset 3">ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=3&arg3=0</Command>
</ExtendedCommands>
</Camera>
[/FONT]