With these changes the script now detects my camera during the
1.1 scan and ignores the duplicate 1.2 response.
$ ~/zmonvif-probe.git.pl probe
http://192.168.1.246:8080/onvif/devices, 1.1, (Profile='Streaming', model='C6F0SeZ0N0P0L0', name='IPCAM', location/country='china')
The specification gives conflicting values for the unicast stream
type in different parts of the document:
http://www.onvif.org/onvif/ver10/media/wsdl/media.wsdl#op.GetStreamUri
Description has: StreamType = "RTP_unicast"
Input has: enum { 'RTP-Unicast', 'RTP-Multicast' }
The Tenvis TH661 only accepts RTP-Unicast but the original code was
using RTP_unicast. Try both and take the result of the first one
which works.