You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some PTZ cameras seem to not support UDP packets that contain the sequence part of visca.
One example is the AKVANS AV-E20-NDI.
I also have some LinkPi devices which can forward udp packets to a serial (visca) port, which does not work correctly when sequence part of packet is used.
For testing, I created a quick python script which removes anything before x81, then forwards on to the device.
import socket
import codecs
UDP_IP = "192.168.1.49"
UDP_PORT = 5000
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((UDP_IP,UDP_PORT))
CAM_IP = "192.168.1.45"
CAM_PORT = 1259
cam_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while True:
data, addr = sock.recvfrom(2048)
d=codecs.getencoder('hex')(data)
s = None
x = list()
for i in range(0,d[1]):
if hex(data[i]) == '0x81':
s = i
if s is not None:
x.append(data[i])
send = bytearray(x)
print("%s -> %s" % ( data,send))
cam_sock.sendto(send,(CAM_IP,CAM_PORT))
Can confirm, given the bugs in the serial port implementation and some of my cameras having some specialties in the VISCA implementation anyway I created a bridge app so I can massage the data. The easiest way in your case I suppose would ba making a super small app that just opens a TCP server and connects that to the camera UDP, which is basically what I am doing. The TCP-Visca that OBS-PTZ outputs is basically what you want.
Some PTZ cameras seem to not support UDP packets that contain the sequence part of visca.
One example is the AKVANS AV-E20-NDI.
I also have some LinkPi devices which can forward udp packets to a serial (visca) port, which does not work correctly when sequence part of packet is used.
For testing, I created a quick python script which removes anything before x81, then forwards on to the device.
Quick example of output:
It would be great to have an option to "Disable sequence" when configuring a camera to use VISCA UDP, which drops anything before x81
The text was updated successfully, but these errors were encountered: