Skip to content

Instantly share code, notes, and snippets.

@hdo
Created September 3, 2014 07:39
Show Gist options
  • Select an option

  • Save hdo/e2c15e8bad284ca49c7e to your computer and use it in GitHub Desktop.

Select an option

Save hdo/e2c15e8bad284ca49c7e to your computer and use it in GitHub Desktop.
ONVIF GetProfile for Dahua IPC-HFW4200S (Firmware 2.4)
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:sc="http://www.w3.org/2003/05/soap-encoding" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema">
<s:Header />
<s:Body>
<trt:GetProfilesResponse>
<trt:Profiles token="MediaProfile000" fixed="true">
<tt:Name>MediaProfile_Channel1_MainStream</tt:Name>
<tt:VideoSourceConfiguration token="000">
<tt:Name>VideoSourceConfig_Channel1</tt:Name>
<tt:UseCount>2</tt:UseCount>
<tt:SourceToken>000</tt:SourceToken>
<tt:Bounds x="0" y="0" width="2048" height="1536" />
</tt:VideoSourceConfiguration>
<tt:VideoEncoderConfiguration token="000">
<tt:Name>VIDEOENCODERCONFIG_CHANNEL1_MAINSTREAM</tt:Name>
<tt:UseCount>1</tt:UseCount>
<tt:Encoding>H264</tt:Encoding>
<tt:Resolution>
<tt:Width>1920</tt:Width>
<tt:Height>1080</tt:Height>
</tt:Resolution>
<tt:Quality>6.000000</tt:Quality>
<tt:RateControl>
<tt:FrameRateLimit>25</tt:FrameRateLimit>
<tt:EncodingInterval>1</tt:EncodingInterval>
<tt:BitrateLimit>8192</tt:BitrateLimit>
</tt:RateControl>
<tt:H264>
<tt:GovLength>32</tt:GovLength>
<tt:H264Profile>Main</tt:H264Profile>
</tt:H264>
<tt:Multicast>
<tt:Address>
<tt:Type>IPv4</tt:Type>
<tt:IPv4Address>239.1.0.0</tt:IPv4Address>
</tt:Address>
<tt:Port>0</tt:Port>
<tt:TTL>0</tt:TTL>
<tt:AutoStart>true</tt:AutoStart>
</tt:Multicast>
<tt:SessionTimeout>PT60S</tt:SessionTimeout>
</tt:VideoEncoderConfiguration>
<tt:VideoAnalyticsConfiguration token="000">
<tt:Name>VideoAnalyticsConfig_Channel1</tt:Name>
<tt:UseCount>2</tt:UseCount>
<tt:AnalyticsEngineConfiguration>
<tt:AnalyticsModule Name="MyCellMotion" Type="tt:CellMotionEngine">
<tt:Parameters>
<tt:SimpleItem Name="Sensitivity" Value="60" />
<tt:ElementItem Name="Layout">
<tt:CellLayout Columns="22" Rows="18">
<tt:Transformation>
<tt:Translate x="-1" y="-1" />
<tt:Scale x="0.00625" y="0.00834" />
</tt:Transformation>
</tt:CellLayout>
</tt:ElementItem>
</tt:Parameters>
</tt:AnalyticsModule>
<tt:AnalyticsModule Name="MyTamper" Type="tt:TamperEngine">
<tt:Parameters>
<tt:SimpleItem Name="Sensitivity" Value="48" />
<tt:ElementItem Name="Field">
<tt:PolygonConfiguration>
<tt:Polygon>
<tt:Point x="0" y="240" />
<tt:Point x="0" y="0" />
<tt:Point x="320" y="0" />
<tt:Point x="320" y="240" />
</tt:Polygon>
</tt:PolygonConfiguration>
</tt:ElementItem>
<tt:ElementItem Name="Transformation">
<tt:Transformation>
<tt:Translate x="-1" y="-1" />
<tt:Scale x="0.00625" y="0.00834" />
</tt:Transformation>
</tt:ElementItem>
</tt:Parameters>
</tt:AnalyticsModule>
</tt:AnalyticsEngineConfiguration>
<tt:RuleEngineConfiguration>
<tt:Rule Name="Region1" Type="tt:CellMotionDetector">
<tt:Parameters>
<tt:SimpleItem Name="MinCount" Value="4" />
<tt:SimpleItem Name="AlarmOnDelay" Value="1000" />
<tt:SimpleItem Name="AlarmOffDelay" Value="1000" />
<tt:SimpleItem Name="ActiveCells" Value="9QAl8AAD4AAfgAD+AAf4AN/gB/+AH/4A//gD/+AP/wA//AD/8AP/wAA=" />
</tt:Parameters>
</tt:Rule>
<tt:Rule Name="MyTamperDetector" Type="tt:TamperDetector">
<tt:Parameters>
<tt:ElementItem Name="Field">
<tt:PolygonConfiguration>
<tt:Polygon>
<tt:Point x="0" y="240" />
<tt:Point x="0" y="0" />
<tt:Point x="320" y="0" />
<tt:Point x="320" y="240" />
</tt:Polygon>
</tt:PolygonConfiguration>
</tt:ElementItem>
</tt:Parameters>
</tt:Rule>
</tt:RuleEngineConfiguration>
</tt:VideoAnalyticsConfiguration>
</trt:Profiles>
<trt:Profiles token="MediaProfile001" fixed="true">
<tt:Name>MediaProfile_Channel1_SubStream1</tt:Name>
<tt:VideoSourceConfiguration token="000">
<tt:Name>VideoSourceConfig_Channel1</tt:Name>
<tt:UseCount>2</tt:UseCount>
<tt:SourceToken>000</tt:SourceToken>
<tt:Bounds x="0" y="0" width="2048" height="1536" />
</tt:VideoSourceConfiguration>
<tt:VideoEncoderConfiguration token="001">
<tt:Name>VideoEncoderConfig_Channel1_SubStream1</tt:Name>
<tt:UseCount>1</tt:UseCount>
<tt:Encoding>H264</tt:Encoding>
<tt:Resolution>
<tt:Width>704</tt:Width>
<tt:Height>576</tt:Height>
</tt:Resolution>
<tt:Quality>4.000000</tt:Quality>
<tt:RateControl>
<tt:FrameRateLimit>25</tt:FrameRateLimit>
<tt:EncodingInterval>1</tt:EncodingInterval>
<tt:BitrateLimit>1024</tt:BitrateLimit>
</tt:RateControl>
<tt:H264>
<tt:GovLength>50</tt:GovLength>
<tt:H264Profile>Main</tt:H264Profile>
</tt:H264>
<tt:Multicast>
<tt:Address>
<tt:Type>IPv4</tt:Type>
<tt:IPv4Address>239.1.0.1</tt:IPv4Address>
</tt:Address>
<tt:Port>1001</tt:Port>
<tt:TTL>64</tt:TTL>
<tt:AutoStart>false</tt:AutoStart>
</tt:Multicast>
<tt:SessionTimeout>PT60S</tt:SessionTimeout>
</tt:VideoEncoderConfiguration>
<tt:VideoAnalyticsConfiguration token="000">
<tt:Name>VideoAnalyticsConfig_Channel1</tt:Name>
<tt:UseCount>2</tt:UseCount>
<tt:AnalyticsEngineConfiguration>
<tt:AnalyticsModule Name="MyCellMotion" Type="tt:CellMotionEngine">
<tt:Parameters>
<tt:SimpleItem Name="Sensitivity" Value="60" />
<tt:ElementItem Name="Layout">
<tt:CellLayout Columns="22" Rows="18">
<tt:Transformation>
<tt:Translate x="-1" y="-1" />
<tt:Scale x="0.00625" y="0.00834" />
</tt:Transformation>
</tt:CellLayout>
</tt:ElementItem>
</tt:Parameters>
</tt:AnalyticsModule>
<tt:AnalyticsModule Name="MyTamper" Type="tt:TamperEngine">
<tt:Parameters>
<tt:SimpleItem Name="Sensitivity" Value="48" />
<tt:ElementItem Name="Field">
<tt:PolygonConfiguration>
<tt:Polygon>
<tt:Point x="0" y="240" />
<tt:Point x="0" y="0" />
<tt:Point x="320" y="0" />
<tt:Point x="320" y="240" />
</tt:Polygon>
</tt:PolygonConfiguration>
</tt:ElementItem>
<tt:ElementItem Name="Transformation">
<tt:Transformation>
<tt:Translate x="-1" y="-1" />
<tt:Scale x="0.00625" y="0.00834" />
</tt:Transformation>
</tt:ElementItem>
</tt:Parameters>
</tt:AnalyticsModule>
</tt:AnalyticsEngineConfiguration>
<tt:RuleEngineConfiguration>
<tt:Rule Name="Region1" Type="tt:CellMotionDetector">
<tt:Parameters>
<tt:SimpleItem Name="MinCount" Value="4" />
<tt:SimpleItem Name="AlarmOnDelay" Value="1000" />
<tt:SimpleItem Name="AlarmOffDelay" Value="1000" />
<tt:SimpleItem Name="ActiveCells" Value="9QAl8AAD4AAfgAD+AAf4AN/gB/+AH/4A//gD/+AP/wA//AD/8AP/wAA=" />
</tt:Parameters>
</tt:Rule>
<tt:Rule Name="MyTamperDetector" Type="tt:TamperDetector">
<tt:Parameters>
<tt:ElementItem Name="Field">
<tt:PolygonConfiguration>
<tt:Polygon>
<tt:Point x="0" y="240" />
<tt:Point x="0" y="0" />
<tt:Point x="320" y="0" />
<tt:Point x="320" y="240" />
</tt:Polygon>
</tt:PolygonConfiguration>
</tt:ElementItem>
</tt:Parameters>
</tt:Rule>
</tt:RuleEngineConfiguration>
</tt:VideoAnalyticsConfiguration>
</trt:Profiles>
</trt:GetProfilesResponse>
</s:Body>
</s:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment