QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
250 stars 41 forks source link

README: PTZ command #180

Open iam-TJ opened 8 months ago

iam-TJ commented 8 months ago

In the README the example for PTZ Pan/Tilt shows the number before the direction 32 and describes it as SPEED but the software reports:

Usage: neolink ptz <CAMERA> control <AMOUNT> <COMMAND> [SPEED]

I also noticed that if doing control 90 right it seems to do a relative pan wheras if control 90 right 10 it appears to move to an absolute position (and speed is the same for both).

QuantumEntangledAndy commented 8 months ago

Should be amount first, just some doc changes that happened along the way.

The speed one is a little more difficult to address. Only a small number of camera support speed for the PTZ so speed is ignored most of the time

To do PT we effectively send this xml to the camera

<?xml version="1.0" encoding="UTF-8" ?>
<body>
<PtzControl version="1.1">
<channelId>0</channelId>
<speed>32</speed>
<command>right</command>
</PtzControl>
</body>

We change the speed value to what ever you provide. Notice that there is no amount, to control how far we go we actually have to send two command. Left....wait....Stop. how long we wait for we calulate with a bit of math and the speed provided. So being absolute makes no sense since a position is never sent