Media.wsdl
lastmod 2021-10-13created 2021-10-139 edits
APIs
- AddAudioDecoderConfiguration
- AddAudioEncoderConfiguration
- AddAudioOutputConfiguration
- AddAudioSourceConfiguration
- AddMetadataConfiguration
- AddPTZConfiguration
- AddVideoAnalyticsConfiguration
- AddVideoEncoderConfiguration
- AddVideoSourceConfiguration
- CreateOSD
- CreateProfile
- DeleteOSD
- DeleteProfile
- GetAudioDecoderConfiguration
- GetAudioDecoderConfigurationOptions
- GetAudioDecoderConfigurations
- GetAudioEncoderConfiguration
- GetAudioEncoderConfigurationOptions
- GetAudioEncoderConfigurations
- GetAudioOutputConfiguration
- GetAudioOutputConfigurationOptions
- GetAudioOutputConfigurations
- GetAudioOutputs
- GetAudioSourceConfiguration
- GetAudioSourceConfigurationOptions
- GetAudioSourceConfigurations
- GetAudioSources
- GetCompatibleAudioDecoderConfigurations
- GetCompatibleAudioEncoderConfigurations
- GetCompatibleAudioOutputConfigurations
- GetCompatibleAudioSourceConfigurations
- GetCompatibleMetadataConfigurations
- GetCompatibleVideoAnalyticsConfigurations
- GetCompatibleVideoEncoderConfigurations
- GetCompatibleVideoSourceConfigurations
- GetGuaranteedNumberOfVideoEncoderInstances
- GetMetadataConfiguration
- GetMetadataConfigurationOptions
- GetMetadataConfigurations
- GetOSD
- GetOSDOptions
- GetOSDs
- GetProfile
- GetProfiles
- GetServiceCapabilities
- GetSnapshotUri
- GetStreamUri
- GetVideoAnalyticsConfiguration
- GetVideoAnalyticsConfigurations
- GetVideoEncoderConfiguration
- GetVideoEncoderConfigurationOptions
- GetVideoEncoderConfigurations
- GetVideoSourceConfiguration
- GetVideoSourceConfigurationOptions
- GetVideoSourceConfigurations
- GetVideoSourceModes
- GetVideoSources
- RemoveAudioDecoderConfiguration
- RemoveAudioEncoderConfiguration
- RemoveAudioOutputConfiguration
- RemoveAudioSourceConfiguration
- RemoveMetadataConfiguration
- RemovePTZConfiguration
- RemoveVideoAnalyticsConfiguration
- RemoveVideoEncoderConfiguration
- RemoveVideoSourceConfiguration
- SetAudioDecoderConfiguration
- SetAudioEncoderConfiguration
- SetAudioOutputConfiguration
- SetAudioSourceConfiguration
- SetMetadataConfiguration
- SetOSD
- SetSynchronizationPoint
- SetVideoAnalyticsConfiguration
- SetVideoEncoderConfiguration
- SetVideoSourceConfiguration
- SetVideoSourceMode
- StartMulticastStreaming
- StopMulticastStreaming
Details
GetProfiles
This operation requests a URI that can be used to initiate a live media stream using RTSP as the control protocol. The returned URI remains valid indefinitely, even if the profile is changed.
The defined stream types are
- RtspUnicast RTSP streaming RTP as UDP unicast.
- RtspMulticast RTSP streaming RTP as UDP multicast.
- RTSP RTSP streaming RTP over TCP.
- RtspOverHttp Tunnels both the RTSP control channel and the RTP stream over HTTP or HTTPS.
If a multicast stream is requested, at least one of VideoEncoder2Configuration, AudioEncoder2Configuration, and MetadataConfiguration must have a valid multicast setting.
For full compatibility with other ONVIF services, a device should not generate Uris longer than 128 octets.
[{
'Name': 'Profile1',
'VideoSourceConfiguration': {
'Name': 'video_source1',
'UseCount': 3,
'SourceToken': '1',
'Bounds': {
'x': 0,
'y': 0,
'width': 1920,
'height': 1080
},
'_value_1': None,
'Extension': None,
'token': '1',
'ViewMode': None,
'_attr_1': {
}
},
'AudioSourceConfiguration': {
'Name': 'audio_source1',
'UseCount': 3,
'SourceToken': '1',
'_value_1': None,
'token': '1',
'_attr_1': {
}
},
'VideoEncoderConfiguration': {
'Name': 'video_encoder1',
'UseCount': 1,
'Encoding': 'H264',
'Resolution': {
'Width': 1920,
'Height': 1080
},
'Quality': 50.0,
'RateControl': {
'FrameRateLimit': 30,
'EncodingInterval': 0,
'BitrateLimit': 4000
},
'MPEG4': None,
'H264': {
'GovLength': 30,
'H264Profile': 'High'
},
'Multicast': {
'Address': {
'Type': 'IPv4',
'IPv4Address': '231.1.128.20',
'IPv6Address': None
},
'Port': 40000,
'TTL': 1,
'AutoStart': False,
'_value_1': None,
'_attr_1': None
},
'SessionTimeout': datetime.timedelta(0),
'_value_1': None,
'token': '1',
'GuaranteedFrameRate': None,
'_attr_1': {
}
},
'AudioEncoderConfiguration': {
'Name': 'audio_encoder1',
'UseCount': 3,
'Encoding': 'G711',
'Bitrate': 64,
'SampleRate': 8,
'Multicast': {
'Address': {
'Type': 'IPv4',
'IPv4Address': '231.1.128.20',
'IPv6Address': None
},
'Port': 40002,
'TTL': 1,
'AutoStart': False,
'_value_1': None,
'_attr_1': None
},
'SessionTimeout': datetime.timedelta(0),
'_value_1': None,
'token': '1',
'_attr_1': {
}
},
'VideoAnalyticsConfiguration': None,
'PTZConfiguration': None,
'MetadataConfiguration': {
'Name': 'metadata1',
'UseCount': 3,
'PTZStatus': None,
'Events': None,
'Analytics': None,
'Multicast': {
'Address': {
'Type': 'IPv4',
'IPv4Address': '231.1.128.20',
'IPv6Address': None
},
'Port': 40004,
'TTL': 1,
'AutoStart': False,
'_value_1': None,
'_attr_1': None
},
'SessionTimeout': datetime.timedelta(0),
'_value_1': None,
'AnalyticsEngineConfiguration': None,
'Extension': None,
'token': '1',
'CompressionType': None,
'GeoLocation': None,
'ShapePolygon': None,
'_attr_1': {
}
},
'Extension': None,
'token': 'Profile1',
'fixed': True,
'_attr_1': {
}
}, {
'Name': 'Profile2',
'VideoSourceConfiguration': {
'Name': 'video_source1',
'UseCount': 3,
'SourceToken': '1',
'Bounds': {
'x': 0,
'y': 0,
'width': 1920,
'height': 1080
},
'_value_1': None,
'Extension': None,
'token': '1',
'ViewMode': None,
'_attr_1': {
}
},
'AudioSourceConfiguration': {
'Name': 'audio_source1',
'UseCount': 3,
'SourceToken': '1',
'_value_1': None,
'token': '1',
'_attr_1': {
}
},
'VideoEncoderConfiguration': {
'Name': 'video_encoder2',
'UseCount': 1,
'Encoding': 'H264',
'Resolution': {
'Width': 640,
'Height': 360
},
'Quality': 7.0,
'RateControl': {
'FrameRateLimit': 30,
'EncodingInterval': 0,
'BitrateLimit': 600
},
'MPEG4': None,
'H264': {
'GovLength': 30,
'H264Profile': 'High'
},
'Multicast': {
'Address': {
'Type': 'IPv4',
'IPv4Address': '231.1.128.21',
'IPv6Address': None
},
'Port': 40000,
'TTL': 1,
'AutoStart': False,
'_value_1': None,
'_attr_1': None
},
'SessionTimeout': datetime.timedelta(0),
'_value_1': None,
'token': '2',
'GuaranteedFrameRate': None,
'_attr_1': {
}
},
'AudioEncoderConfiguration': {
'Name': 'audio_encoder1',
'UseCount': 3,
'Encoding': 'G711',
'Bitrate': 64,
'SampleRate': 8,
'Multicast': {
'Address': {
'Type': 'IPv4',
'IPv4Address': '231.1.128.20',
'IPv6Address': None
},
'Port': 40002,
'TTL': 1,
'AutoStart': False,
'_value_1': None,
'_attr_1': None
},
'SessionTimeout': datetime.timedelta(0),
'_value_1': None,
'token': '1',
'_attr_1': {
}
},
'VideoAnalyticsConfiguration': None,
'PTZConfiguration': None,
'MetadataConfiguration': {
'Name': 'metadata1',
'UseCount': 3,
'PTZStatus': None,
'Events': None,
'Analytics': None,
'Multicast': {
'Address': {
'Type': 'IPv4',
'IPv4Address': '231.1.128.20',
'IPv6Address': None
},
'Port': 40004,
'TTL': 1,
'AutoStart': False,
'_value_1': None,
'_attr_1': None
},
'SessionTimeout': datetime.timedelta(0),
'_value_1': None,
'AnalyticsEngineConfiguration': None,
'Extension': None,
'token': '1',
'CompressionType': None,
'GeoLocation': None,
'ShapePolygon': None,
'_attr_1': {
}
},
'Extension': None,
'token': 'Profile2',
'fixed': True,
'_attr_1': {
}
}, {
'Name': 'Profile3',
'VideoSourceConfiguration': {
'Name': 'video_source1',
'UseCount': 3,
'SourceToken': '1',
'Bounds': {
'x': 0,
'y': 0,
'width': 1920,
'height': 1080
},
'_value_1': None,
'Extension': None,
'token': '1',
'ViewMode': None,
'_attr_1': {
}
},
'AudioSourceConfiguration': {
'Name': 'audio_source1',
'UseCount': 3,
'SourceToken': '1',
'_value_1': None,
'token': '1',
'_attr_1': {
}
},
'VideoEncoderConfiguration': {
'Name': 'video_encoder3',
'UseCount': 1,
'Encoding': 'JPEG',
'Resolution': {
'Width': 640,
'Height': 360
},
'Quality': 60.0,
'RateControl': {
'FrameRateLimit': 30,
'EncodingInterval': 0,
'BitrateLimit': 2000
},
'MPEG4': None,
'H264': None,
'Multicast': {
'Address': {
'Type': 'IPv4',
'IPv4Address': '231.1.128.22',
'IPv6Address': None
},
'Port': 40000,
'TTL': 1,
'AutoStart': False,
'_value_1': None,
'_attr_1': None
},
'SessionTimeout': datetime.timedelta(0),
'_value_1': None,
'token': '3',
'GuaranteedFrameRate': None,
'_attr_1': {
}
},
'AudioEncoderConfiguration': {
'Name': 'audio_encoder1',
'UseCount': 3,
'Encoding': 'G711',
'Bitrate': 64,
'SampleRate': 8,
'Multicast': {
'Address': {
'Type': 'IPv4',
'IPv4Address': '231.1.128.20',
'IPv6Address': None
},
'Port': 40002,
'TTL': 1,
'AutoStart': False,
'_value_1': None,
'_attr_1': None
},
'SessionTimeout': datetime.timedelta(0),
'_value_1': None,
'token': '1',
'_attr_1': {
}
},
'VideoAnalyticsConfiguration': None,
'PTZConfiguration': None,
'MetadataConfiguration': {
'Name': 'metadata1',
'UseCount': 3,
'PTZStatus': None,
'Events': None,
'Analytics': None,
'Multicast': {
'Address': {
'Type': 'IPv4',
'IPv4Address': '231.1.128.20',
'IPv6Address': None
},
'Port': 40004,
'TTL': 1,
'AutoStart': False,
'_value_1': None,
'_attr_1': None
},
'SessionTimeout': datetime.timedelta(0),
'_value_1': None,
'AnalyticsEngineConfiguration': None,
'Extension': None,
'token': '1',
'CompressionType': None,
'GeoLocation': None,
'ShapePolygon': None,
'_attr_1': {
}
},
'Extension': None,
'token': 'Profile3',
'fixed': True,
'_attr_1': {
}
}]
GetVideoSources
[{
'Framerate': 30.0,
'Resolution': {
'Width': 1920,
'Height': 1080
},
'Imaging': {
'BacklightCompensation': {
'Mode': 'OFF',
'Level': 0.0
},
'Brightness': 9.0,
'ColorSaturation': 9.0,
'Contrast': 9.0,
'Exposure': None,
'Focus': None,
'IrCutFilter': 'ON',
'Sharpness': 5.0,
'WideDynamicRange': {
'Mode': 'OFF',
'Level': 3.0
},
'WhiteBalance': {
'Mode': 'AUTO',
'CrGain': 0.0,
'CbGain': 0.0,
'_value_1': None,
'_attr_1': None
},
'Extension': None,
'_attr_1': None
},
'Extension': None,
'token': '1',
'_attr_1': {
}
}]
GetSnapshotUri
{
'Uri': 'http://192.168.0.50/snapshot/1/snapshot.jpg',
'InvalidAfterConnect': False,
'InvalidAfterReboot': False,
'Timeout': datetime.timedelta(0),
'_value_1': None,
'_attr_1': None
}
GetStreamUri
{
'Uri': 'rtsp://192.168.0.50:554/media/1/1/Profile1',
'InvalidAfterConnect': False,
'InvalidAfterReboot': True,
'Timeout': datetime.timedelta(0),
'_value_1': None,
'_attr_1': None
}
See also
Favorite site
Pages that link here