你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Media 视频Analyzers/pipelineTopologies

Bicep 资源定义

videoAnalyzers/pipelineTopologies 资源类型可部署到:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Media/videoAnalyzers/pipelineTopologies 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Media/videoAnalyzers/pipelineTopologies@2021-11-01-preview' = {
  name: 'string'
  sku: {
    name: 'string'
  }
  kind: 'string'
  parent: resourceSymbolicName
  properties: {
    description: 'string'
    parameters: [
      {
        default: 'string'
        description: 'string'
        name: 'string'
        type: 'string'
      }
    ]
    processors: [
      {
        inputs: [
          {
            nodeName: 'string'
          }
        ]
        name: 'string'
        @type: 'string'
        // For remaining properties, see ProcessorNodeBase objects
      }
    ]
    sinks: [
      {
        inputs: [
          {
            nodeName: 'string'
          }
        ]
        name: 'string'
        @type: 'string'
        // For remaining properties, see SinkNodeBase objects
      }
    ]
    sources: [
      {
        name: 'string'
        @type: 'string'
        // For remaining properties, see SourceNodeBase objects
      }
    ]
  }
}

ProcessorNodeBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.EncoderProcessor,请使用:

  @type: '#Microsoft.VideoAnalyzer.EncoderProcessor'
  preset: {
    @type: 'string'
    // For remaining properties, see EncoderPresetBase objects
  }

EncoderPresetBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.EncoderCustomPreset,请使用:

  @type: '#Microsoft.VideoAnalyzer.EncoderCustomPreset'
  audioEncoder: {
    bitrateKbps: 'string'
    @type: 'string'
    // For remaining properties, see AudioEncoderBase objects
  }
  videoEncoder: {
    bitrateKbps: 'string'
    frameRate: 'string'
    scale: {
      height: 'string'
      mode: 'string'
      width: 'string'
    }
    @type: 'string'
    // For remaining properties, see VideoEncoderBase objects
  }

对于 #Microsoft.VideoAnalyzer.EncoderSystemPreset,请使用:

  @type: '#Microsoft.VideoAnalyzer.EncoderSystemPreset'
  name: 'string'

AudioEncoderBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.AudioEncoderAac,请使用:

  @type: '#Microsoft.VideoAnalyzer.AudioEncoderAac'

VideoEncoderBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.VideoEncoderH264,请使用:

  @type: '#Microsoft.VideoAnalyzer.VideoEncoderH264'

SinkNodeBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.VideoSink,请使用:

  @type: '#Microsoft.VideoAnalyzer.VideoSink'
  videoCreationProperties: {
    description: 'string'
    retentionPeriod: 'string'
    segmentLength: 'string'
    title: 'string'
  }
  videoName: 'string'
  videoPublishingOptions: {
    disableArchive: 'string'
    disableRtspPublishing: 'string'
  }

SourceNodeBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.RtspSource,请使用:

  @type: '#Microsoft.VideoAnalyzer.RtspSource'
  endpoint: {
    credentials: {
      @type: 'string'
      // For remaining properties, see CredentialsBase objects
    }
    tunnel: {
      @type: 'string'
      // For remaining properties, see TunnelBase objects
    }
    url: 'string'
    @type: 'string'
    // For remaining properties, see EndpointBase objects
  }
  transport: 'string'

对于 #Microsoft.VideoAnalyzer.VideoSource,请使用:

  @type: '#Microsoft.VideoAnalyzer.VideoSource'
  timeSequences: {
    @type: 'string'
    // For remaining properties, see TimeSequenceBase objects
  }
  videoName: 'string'

EndpointBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.TlsEndpoint,请使用:

  @type: '#Microsoft.VideoAnalyzer.TlsEndpoint'
  trustedCertificates: {
    @type: 'string'
    // For remaining properties, see CertificateSource objects
  }
  validationOptions: {
    ignoreHostname: 'string'
    ignoreSignature: 'string'
  }

对于 #Microsoft.VideoAnalyzer.UnsecuredEndpoint,请使用:

  @type: '#Microsoft.VideoAnalyzer.UnsecuredEndpoint'

CredentialsBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.UsernamePasswordCredentials,请使用:

  @type: '#Microsoft.VideoAnalyzer.UsernamePasswordCredentials'
  password: 'string'
  username: 'string'

TunnelBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel,请使用:

  @type: '#Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel'
  deviceId: 'string'
  iotHubName: 'string'

CertificateSource 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.PemCertificateList,请使用:

  @type: '#Microsoft.VideoAnalyzer.PemCertificateList'
  certificates: [
    'string'
  ]

TimeSequenceBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers,请使用:

  @type: '#Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers'
  ranges: 'string'

属性值

videoAnalyzers/pipelineTopologies

名称 说明 Value
name 资源名称

了解如何在 Bicep 中为子资源设置名称和类型。
字符串 (必需)
sku 描述 SKU 的属性。 需要 sku ()
kind 拓扑类型。 “Batch”
“Live” (必需)
父级 (parent) 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源之外的子资源
类型为资源的符号名称: videoAnalyzers
properties 资源属性。 PipelineTopologyProperties

PipelineTopologyProperties

名称 说明 Value
description 管道拓扑的可选说明。 建议在此处描述拓扑的预期用法。 字符串
parameters 拓扑参数声明的列表。 此处声明的参数可以通过使用“${PARAMETER_NAME}”字符串模式在整个拓扑节点中引用。 参数可以具有可选的默认值,以后可以在管道的单个实例中定义。 ParameterDeclaration[]
处理器 拓扑处理器节点的列表。 处理器节点允许分析、处理或转换管道数据。 ProcessorNodeBase[]
sinks 拓扑接收器节点的列表。 接收器节点允许存储或导出管道数据。 SinkNodeBase[] (必需的)
sources 拓扑源节点的列表。 源节点允许管道引入外部数据。 SourceNodeBase[] (必需的)

ParameterDeclaration

名称 说明 Value
默认值 如果管道未指定值,则要使用的参数的默认值。 字符串
description 参数的说明。 字符串
name 参数的名称。 字符串 (必需)
type 参数的类型。 “Bool”
“Double”
“Int”
“SecretString”
“String” (必需)

ProcessorNodeBase

名称 说明 Value
inputs 拓扑中要用作此节点输入的上游节点引用的数组。 NodeInput[] (必需的)
name 节点名称。 在拓扑中必须是唯一的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.EncoderProcessor (必需)

NodeInput

名称 说明 Value
nodeName 管道中输出用作当前节点输入的上游节点的名称。 字符串 (必需)

EncoderProcessor

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.EncoderProcessor” (必需)
预设 编码器预设,用于定义有关如何处理输入内容的食谱或说明。 EncoderPresetBase (必需)

EncoderPresetBase

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.EncoderCustomPreset
#Microsoft.VideoAnalyzer.EncoderSystemPreset (必需)

EncoderCustomPreset

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.EncoderCustomPreset” (必需)
audioEncoder 介绍用于编码音频的自定义预设。 AudioEncoderBase
videoEncoder 介绍视频编码的自定义预设。 VideoEncoderBase

AudioEncoderBase

名称 说明 Value
bitrateKbps 比特率,以千比特/秒或 Kbps 为单位,音频应以 48 kHz) 采样率 (2 声道立体声音频进行编码。 允许的值为 96、112、128、160、192、224 和 256。 如果省略,则使用输入音频的比特率。 字符串
@type 设置对象类型 #Microsoft.VideoAnalyzer.AudioEncoderAac (必需)

AudioEncoderAac

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.AudioEncoderAac” (必需)

VideoEncoderBase

名称 说明 Value
bitrateKbps 应对视频进行编码的最大比特率,以千比特/秒或 Kbps 为单位。 如果省略,编码器会自动将其设置为尝试匹配输入视频的质量。 字符串
frameRate 编码视频) 帧速率 (每秒帧数。 该值必须大于零,并且小于或等于 300。 如果省略,编码器将使用输入视频的平均帧速率。 字符串
scale 描述编码视频的分辨率。 如果省略,编码器将使用输入视频的分辨率。 VideoScale
@type 设置对象类型 #Microsoft.VideoAnalyzer.VideoEncoderH264 (必需)

VideoScale

名称 说明 Value
高度 所需的输出视频高度。 字符串
mode 描述要应用的视频缩放模式。 默认模式为“Pad”。 如果模式为“Pad”或“Stretch”,则必须同时指定宽度和高度。 否则,如果模式为“PreserveAspectRatio”,则只需提供宽度或高度之一。 “Pad”
“PreserveAspectRatio”
“Stretch”
width 所需的输出视频宽度。 字符串

VideoEncoderH264

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.VideoEncoderH264” ()

EncoderSystemPreset

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.EncoderSystemPreset” ()
name 内置编码预设的名称。 “SingleLayer_1080p_H264_AAC”
“SingleLayer_2160p_H264_AAC”
“SingleLayer_540p_H264_AAC”
“SingleLayer_720p_H264_AAC” (必需)

SinkNodeBase

名称 说明 Value
inputs 拓扑中要用作此节点输入的上游节点引用的数组。 NodeInput[] (必需的)
name 节点名称。 在拓扑中必须是唯一的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.VideoSink (必需)

VideoSink

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.VideoSink” ()
videoCreationProperties 可选视频属性,用于在服务上创建新视频资源的情况。 VideoCreationProperties
videoName 用于捕获和发布内容的新视频资源或现有视频资源的名称。 注意:如果 RTSP 源的下游,并且 disableArchive 设置为 true,则不存档任何内容。 字符串 (必需)
videoPublishingOptions 用于更改视频接收器通过视频资源发布内容的方式的选项。 仅当“kind”设置为“live”的拓扑时,才允许使用此属性。 VideoPublishingOptions

VideoCreationProperties

名称 说明 Value
description 用户提供的可选说明。 值长度最多为 2048 个字符。 字符串
retentionPeriod 视频保留期指示视频在存储中的保留时间。 值必须以 ISO8601 持续时间格式指定, (即“P1D”等于 1 天) ,并且可以在 1 天到 10 年之间变化,以 1 天为增量。 如果不存在 (null) ,则所有视频内容将无限期保留。 仅当“kind”设置为“live”的拓扑时,才允许使用此属性。 字符串
segmentLength 段长度指示保留到存储) (段的单个内容文件的长度。 较小的段提供较低的存档播放延迟,但会生成更大的存储事务量。 较大的段可以减少存储事务量,同时增加存档播放延迟。 值必须以 ISO8601 持续时间格式指定, (即“PT30S”) 等于 30 秒,并且可以在 30 秒到 5 分钟之间变化,增量为 30 秒。 在创建视频资源的初始调用后更改此值可能会导致将内容上传到存档时出错。 默认值为 30 秒。 仅当“kind”设置为“live”的拓扑时,才允许使用此属性。 字符串
title 用户提供的可选标题。 值最长可以为 256 个字符。 字符串

VideoPublishingOptions

名称 说明 Value
disableArchive 如果设置为“true”,则不会存档或记录内容。 例如,当拓扑仅用于低延迟视频流时,会使用此方法。 默认值为“false”。 如果设置为“true”,则必须将“disableRtspPublishing”设置为“false”。 字符串
disableRtspPublishing 如果设置为“true”,则不会发布 RTSP 播放 URL,这会禁用低延迟流式处理。 例如,当拓扑仅用于存档内容时,会使用此方法。 默认值为“false”。 如果设置为“true”,则必须将“disableArchive”设置为“false”。 字符串

SourceNodeBase

名称 说明 Value
name 节点名称。 在拓扑中必须是唯一的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.RtspSource
#Microsoft.VideoAnalyzer.VideoSource 需要 ()

RtspSource

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.RtspSource” ()
endpoint 视频分析器要连接到的 RTSP 终结点信息。 它包含视频分析器连接到 RTSP 相机和/或通用 RTSP 服务器所需的信息。 EndpointBase (必需)
运输 RTSP 和 RTP 交换使用的网络传输:TCP 或 HTTP。 使用 TCP 时,RTP 数据包在 TCP RTSP 连接上交错。 使用 HTTP 时,RTSP 消息通过长期 HTTP 连接交换,RTP 包与 RTSP 消息交错在 HTTP 连接中。 'Http'
'Tcp'

EndpointBase

名称 说明
凭据 要提供给终结点的凭据。 CredentialsBase (必需)
隧道 描述视频分析器可通过该隧道连接到终结点 URL。 这是一个可选属性,通常在终结点位于防火墙后面时使用。 TunnelBase
url 视频分析器要连接到的终结点 URL。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.TlsEndpoint
#Microsoft.VideoAnalyzer.UnsecuredEndpoint (所需的)

CredentialsBase

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.UsernamePasswordCredentials (必需)

UsernamePasswordCredentials

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.UsernamePasswordCredentials” ()
password 要作为凭据的一部分显示的密码。 建议将此值参数化为机密字符串,以防止此值作为 API 请求的资源的一部分返回。 字符串 (必需)
username 要作为凭据的一部分显示的用户名。 字符串 (必需)

TunnelBase

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel (必需)

SecureIotDeviceRemoteTunnel

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel” ()
deviceId 建立远程隧道时要使用的 IoT 设备 ID。 此字符串区分大小写。 字符串 (必需)
iotHubName IoT 中心的名称。 字符串 (必需)

TlsEndpoint

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.TlsEndpoint” ()
trustedCertificates 对 TLS 连接进行身份验证时受信任的证书颁发机构列表。 null 列表指定应使用 Azure 视频分析器受信任颁发机构列表。 CertificateSource
validationOptions 验证 TLS 连接时要使用的验证选项。 默认情况下,使用严格验证。 TlsValidationOptions

CertificateSource

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.PemCertificateList (必需)

PemCertificateList

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.PemCertificateList” ()
certificates PEM 格式的公共证书。 每个条目一个证书。 string[] (必需)

TlsValidationOptions

名称 说明 Value
ignoreHostname 如果设置为“true”,则会导致跳过证书使用者名称验证。 默认值为“false”。 字符串
ignoreSignature 如果设置为“true”,则会导致跳过证书链信任验证。 默认值为“false”。 字符串

UnsecuredEndpoint

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.UnsecuredEndpoint” ()

VideoSource

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.VideoSource” ()
timeSequences 描述日期时间范围的序列。 视频源仅选取这些范围内录制的媒体。 TimeSequenceBase (必需)
videoName 要用作源的视频分析器视频资源的名称。 字符串 (必需)

TimeSequenceBase

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers (必需)

VideoSequenceAbsoluteTimeMarkers

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers” (必需)
ranges 日期时间范围的序列。 示例:“[[”2021-10-05T03:30:00Z“, ”2021-10-05T03:40:00Z“]]”。 字符串 (必需)

SKU

名称 说明 Value
name SKU 名称。 “Batch_S1”
“Live_S1” (必需)

ARM 模板资源定义

videoAnalyzers/pipelineTopologies 资源类型可部署到:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Media/videoAnalyzers/pipelineTopologies 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Media/videoAnalyzers/pipelineTopologies",
  "apiVersion": "2021-11-01-preview",
  "name": "string",
  "sku": {
    "name": "string"
  },
  "kind": "string",
  "properties": {
    "description": "string",
    "parameters": [
      {
        "default": "string",
        "description": "string",
        "name": "string",
        "type": "string"
      }
    ],
    "processors": [
      {
        "inputs": [
          {
            "nodeName": "string"
          }
        ],
        "name": "string",
        "@type": "string"
        // For remaining properties, see ProcessorNodeBase objects
      }
    ],
    "sinks": [
      {
        "inputs": [
          {
            "nodeName": "string"
          }
        ],
        "name": "string",
        "@type": "string"
        // For remaining properties, see SinkNodeBase objects
      }
    ],
    "sources": [
      {
        "name": "string",
        "@type": "string"
        // For remaining properties, see SourceNodeBase objects
      }
    ]
  }
}

ProcessorNodeBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.EncoderProcessor,请使用:

  "@type": "#Microsoft.VideoAnalyzer.EncoderProcessor",
  "preset": {
    "@type": "string"
    // For remaining properties, see EncoderPresetBase objects
  }

EncoderPresetBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.EncoderCustomPreset,请使用:

  "@type": "#Microsoft.VideoAnalyzer.EncoderCustomPreset",
  "audioEncoder": {
    "bitrateKbps": "string",
    "@type": "string"
    // For remaining properties, see AudioEncoderBase objects
  },
  "videoEncoder": {
    "bitrateKbps": "string",
    "frameRate": "string",
    "scale": {
      "height": "string",
      "mode": "string",
      "width": "string"
    },
    "@type": "string"
    // For remaining properties, see VideoEncoderBase objects
  }

对于 #Microsoft.VideoAnalyzer.EncoderSystemPreset,请使用:

  "@type": "#Microsoft.VideoAnalyzer.EncoderSystemPreset",
  "name": "string"

AudioEncoderBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.AudioEncoderAac,请使用:

  "@type": "#Microsoft.VideoAnalyzer.AudioEncoderAac"

VideoEncoderBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.VideoEncoderH264,请使用:

  "@type": "#Microsoft.VideoAnalyzer.VideoEncoderH264"

SinkNodeBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.VideoSink,请使用:

  "@type": "#Microsoft.VideoAnalyzer.VideoSink",
  "videoCreationProperties": {
    "description": "string",
    "retentionPeriod": "string",
    "segmentLength": "string",
    "title": "string"
  },
  "videoName": "string",
  "videoPublishingOptions": {
    "disableArchive": "string",
    "disableRtspPublishing": "string"
  }

SourceNodeBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.RtspSource,请使用:

  "@type": "#Microsoft.VideoAnalyzer.RtspSource",
  "endpoint": {
    "credentials": {
      "@type": "string"
      // For remaining properties, see CredentialsBase objects
    },
    "tunnel": {
      "@type": "string"
      // For remaining properties, see TunnelBase objects
    },
    "url": "string",
    "@type": "string"
    // For remaining properties, see EndpointBase objects
  },
  "transport": "string"

对于 #Microsoft.VideoAnalyzer.VideoSource,请使用:

  "@type": "#Microsoft.VideoAnalyzer.VideoSource",
  "timeSequences": {
    "@type": "string"
    // For remaining properties, see TimeSequenceBase objects
  },
  "videoName": "string"

EndpointBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.TlsEndpoint,请使用:

  "@type": "#Microsoft.VideoAnalyzer.TlsEndpoint",
  "trustedCertificates": {
    "@type": "string"
    // For remaining properties, see CertificateSource objects
  },
  "validationOptions": {
    "ignoreHostname": "string",
    "ignoreSignature": "string"
  }

对于 #Microsoft.VideoAnalyzer.UnsecuredEndpoint,请使用:

  "@type": "#Microsoft.VideoAnalyzer.UnsecuredEndpoint"

CredentialsBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.UsernamePasswordCredentials,请使用:

  "@type": "#Microsoft.VideoAnalyzer.UsernamePasswordCredentials",
  "password": "string",
  "username": "string"

TunnelBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel,请使用:

  "@type": "#Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel",
  "deviceId": "string",
  "iotHubName": "string"

CertificateSource 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.PemCertificateList,请使用:

  "@type": "#Microsoft.VideoAnalyzer.PemCertificateList",
  "certificates": [ "string" ]

TimeSequenceBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers,请使用:

  "@type": "#Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers",
  "ranges": "string"

属性值

videoAnalyzers/pipelineTopologies

名称 说明 Value
type 资源类型 'Microsoft.Media/videoAnalyzers/pipelineTopologies'
apiVersion 资源 API 版本 '2021-11-01-preview'
name 资源名称

了解如何在 JSON ARM 模板中设置子资源的名称和类型。
字符串 (必需)
sku 描述 SKU 的属性。 需要 sku ()
kind 拓扑类型。 “Batch”
需要“实时” ()
properties 资源属性。 PipelineTopologyProperties

PipelineTopologyProperties

名称 说明 Value
description 管道拓扑的可选说明。 建议在此处描述拓扑的预期用法。 字符串
parameters 拓扑参数声明的列表。 此处声明的参数可以通过使用“${PARAMETER_NAME}”字符串模式在整个拓扑节点中引用。 参数可以具有可选的默认值,以后可以在管道的单个实例中定义。 ParameterDeclaration[]
处理器 拓扑处理器节点的列表。 处理器节点允许分析、处理或转换管道数据。 ProcessorNodeBase[]
sinks 拓扑接收器节点的列表。 接收器节点允许存储或导出管道数据。 SinkNodeBase[] (必需)
sources 拓扑源节点的列表。 源节点允许管道引入外部数据。 SourceNodeBase[] (必需)

ParameterDeclaration

名称 说明 Value
默认值 管道未指定值时要使用的参数的默认值。 字符串
description 参数的说明。 字符串
name 参数的名称。 字符串 (必需)
type 参数的类型。 “Bool”
'Double'
“Int”
“SecretString”
“String” (必需)

ProcessorNodeBase

名称 说明 Value
inputs 拓扑中的上游节点引用数组,用作此节点的输入。 NodeInput[] (必需)
name 节点名称。 在拓扑中必须是唯一的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.EncoderProcessor (必需)

NodeInput

名称 说明 Value
nodeName 管道中输出用作当前节点输入的上游节点的名称。 字符串 (必需)

EncoderProcessor

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.EncoderProcessor” (必需)
预设 编码器预设,用于定义有关如何处理输入内容的食谱或说明。 EncoderPresetBase (必需)

EncoderPresetBase

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.EncoderCustomPreset
#Microsoft.VideoAnalyzer.EncoderSystemPreset (必需)

EncoderCustomPreset

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.EncoderCustomPreset” (必需)
audioEncoder 介绍用于编码音频的自定义预设。 AudioEncoderBase
videoEncoder 介绍视频编码的自定义预设。 VideoEncoderBase

AudioEncoderBase

名称 说明 Value
bitrateKbps 比特率,以千比特/秒或 Kbps 为单位,音频应以 48 kHz) 采样率 (2 声道立体声音频进行编码。 允许的值为 96、112、128、160、192、224 和 256。 如果省略,则使用输入音频的比特率。 字符串
@type 设置对象类型 #Microsoft.VideoAnalyzer.AudioEncoderAac (必需)

AudioEncoderAac

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.AudioEncoderAac” (必需)

VideoEncoderBase

名称 说明 Value
bitrateKbps 应对视频进行编码的最大比特率,以千比特/秒或 Kbps 为单位。 如果省略,编码器会自动将其设置为尝试匹配输入视频的质量。 字符串
frameRate 编码视频) 帧速率 (每秒帧数。 该值必须大于零,并且小于或等于 300。 如果省略,编码器将使用输入视频的平均帧速率。 字符串
scale 描述编码视频的分辨率。 如果省略,编码器将使用输入视频的分辨率。 VideoScale
@type 设置对象类型 #Microsoft.VideoAnalyzer.VideoEncoderH264 (必需)

VideoScale

名称 说明 Value
高度 所需的输出视频高度。 字符串
mode 描述要应用的视频缩放模式。 默认模式为“Pad”。 如果模式为“Pad”或“Stretch”,则必须同时指定宽度和高度。 否则,如果模式为“PreserveAspectRatio”,则只需提供宽度或高度之一。 “Pad”
“PreserveAspectRatio”
“Stretch”
width 所需的输出视频宽度。 字符串

VideoEncoderH264

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.VideoEncoderH264” ()

EncoderSystemPreset

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.EncoderSystemPreset” ()
name 内置编码预设的名称。 “SingleLayer_1080p_H264_AAC”
“SingleLayer_2160p_H264_AAC”
“SingleLayer_540p_H264_AAC”
需要“SingleLayer_720p_H264_AAC” ()

SinkNodeBase

名称 说明 Value
inputs 拓扑中的上游节点引用数组,用作此节点的输入。 NodeInput[] (必需)
name 节点名称。 在拓扑中必须是唯一的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.VideoSink (必需)

VideoSink

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.VideoSink” ()
videoCreationProperties 可选视频属性,用于在服务上创建新的视频资源时使用。 VideoCreationProperties
videoName 用于捕获和发布内容的新视频资源或现有视频资源的名称。 注意:如果 RTSP 源的下游,并且 disableArchive 设置为 true,则不会存档任何内容。 字符串 (必需)
videoPublishingOptions 用于更改视频接收器如何通过视频资源发布内容的选项。 此属性仅允许用于“kind”设置为“live”的拓扑。 VideoPublishingOptions

VideoCreationProperties

名称 说明 Value
description 用户提供的可选说明。 值长度最多为 2048 个字符。 字符串
retentionPeriod 视频保持期指示视频在存储中的保留时间。 值必须以 ISO8601 持续时间格式指定, (即“P1D”) 等于 1 天,并且可以在 1 天到 10 年之间以 1 天为增量。 如果不存在 (null) ,则无限期保留所有视频内容。 此属性仅允许用于“kind”设置为“live”的拓扑。 字符串
segmentLength 段长度指示保留到存储的单个内容文件 (段) 的长度。 较小的段提供较低的存档播放延迟,但会生成更大的存储事务量。 较大的段可减少存储事务量,同时增加存档播放延迟。 值必须以 ISO8601 持续时间格式指定 (即“PT30S”) 等于 30 秒,并且可以在 30 秒到 5 分钟之间变化,增量为 30 秒。 在创建视频资源的初始调用后更改此值可能会导致在将内容上传到存档时出错。 默认值为 30 秒。 此属性仅允许用于“kind”设置为“live”的拓扑。 字符串
title 用户提供的可选标题。 值长度最多为 256 个字符。 字符串

VideoPublishingOptions

名称 说明 Value
disableArchive 设置为“true”时,不会存档或记录内容。 例如,当拓扑仅用于低延迟视频流时,会使用此方法。 默认值为“false”。 如果设置为“true”,则必须将“disableRtspPublishing”设置为“false”。 字符串
disableRtspPublishing 如果设置为“true”,则不会发布 RTSP 播放 URL,这会禁用低延迟流式处理。 例如,当拓扑仅用于存档内容时,会使用此方法。 默认值为“false”。 如果设置为“true”,则必须将“disableArchive”设置为“false”。 字符串

SourceNodeBase

名称 说明 Value
name 节点名称。 在拓扑中必须是唯一的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.RtspSource
#Microsoft.VideoAnalyzer.VideoSource 需要 ()

RtspSource

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.RtspSource” ()
endpoint 视频分析器要连接到的 RTSP 终结点信息。 这包含视频分析器连接到 RTSP 相机和/或通用 RTSP 服务器所需的信息。 EndpointBase (必需)
运输 RTSP 和 RTP 交换使用的网络传输:TCP 或 HTTP。 使用 TCP 时,RTP 数据包在 TCP RTSP 连接上交错。 使用 HTTP 时,RTSP 消息通过长期 HTTP 连接交换,RTP 包与 RTSP 消息交错在 HTTP 连接中。 “Http”
“Tcp”

EndpointBase

名称 说明
凭据 要提供给终结点的凭据。 CredentialsBase (必需)
隧道 描述视频分析器可通过该隧道连接到终结点 URL。 这是一个可选属性,通常在终结点位于防火墙后面时使用。 TunnelBase
url 视频分析器要连接到的终结点 URL。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.TlsEndpoint
#Microsoft.VideoAnalyzer.UnsecuredEndpoint (必需)

CredentialsBase

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.UsernamePasswordCredentials (必需)

UsernamePasswordCredentials

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.UsernamePasswordCredentials” (必需)
password 要作为凭据一部分显示的密码。 建议将此值参数化为机密字符串,以防止在 API 请求中将此值作为资源的一部分返回。 字符串 (必需)
username 要作为凭据的一部分显示的用户名。 字符串 (必需)

TunnelBase

名称 说明 Value
@type 设置对象类型 需要 #Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel ()

SecureIotDeviceRemoteTunnel

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel” ()
deviceId 建立远程隧道时要使用的 IoT 设备 ID。 此字符串区分大小写。 字符串 (必需)
iotHubName IoT 中心的名称。 字符串 (必需)

TlsEndpoint

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.TlsEndpoint” ()
trustedCertificates 身份验证 TLS 连接时受信任的证书颁发机构列表。 null 列表指定应使用 Azure 视频分析器的受信任机构列表。 CertificateSource
validationOptions 验证 TLS 连接时要使用的验证选项。 默认情况下,使用严格验证。 TlsValidationOptions

CertificateSource

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.PemCertificateList (必需)

PemCertificateList

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.PemCertificateList” (必需)
certificates PEM 格式的公共证书。 每个条目一个证书。 string[] (必需的)

TlsValidationOptions

名称 说明 Value
ignoreHostname 如果设置为“true”,则会跳过证书使用者名称验证。 默认值为“false”。 字符串
ignoreSignature 如果设置为“true”,则会导致跳过证书链信任验证。 默认值为“false”。 字符串

UnsecuredEndpoint

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.UnsecuredEndpoint” ()

VideoSource

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.VideoSource” ()
timeSequences 描述日期时间范围的序列。 视频源仅选取这些范围内录制的媒体。 TimeSequenceBase (必需)
videoName 要用作源的视频分析器视频资源的名称。 字符串 (必需)

TimeSequenceBase

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers (必需)

VideoSequenceAbsoluteTimeMarkers

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers” (必需)
ranges 日期时间范围的序列。 示例:“[[”2021-10-05T03:30:00Z“, ”2021-10-05T03:40:00Z“]]”。 字符串 (必需)

SKU

名称 说明 Value
name SKU 名称。 “Batch_S1”
“Live_S1” (必需)

Terraform (AzAPI 提供程序) 资源定义

videoAnalyzers/pipelineTopologies 资源类型可部署到:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Media/videoAnalyzers/pipelineTopologies 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Media/videoAnalyzers/pipelineTopologies@2021-11-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      description = "string"
      parameters = [
        {
          default = "string"
          description = "string"
          name = "string"
          type = "string"
        }
      ]
      processors = [
        {
          inputs = [
            {
              nodeName = "string"
            }
          ]
          name = "string"
          @type = "string"
          // For remaining properties, see ProcessorNodeBase objects
        }
      ]
      sinks = [
        {
          inputs = [
            {
              nodeName = "string"
            }
          ]
          name = "string"
          @type = "string"
          // For remaining properties, see SinkNodeBase objects
        }
      ]
      sources = [
        {
          name = "string"
          @type = "string"
          // For remaining properties, see SourceNodeBase objects
        }
      ]
    }
    sku = {
      name = "string"
    }
    kind = "string"
  })
}

ProcessorNodeBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.EncoderProcessor,请使用:

  @type = "#Microsoft.VideoAnalyzer.EncoderProcessor"
  preset = {
    @type = "string"
    // For remaining properties, see EncoderPresetBase objects
  }

EncoderPresetBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.EncoderCustomPreset,请使用:

  @type = "#Microsoft.VideoAnalyzer.EncoderCustomPreset"
  audioEncoder = {
    bitrateKbps = "string"
    @type = "string"
    // For remaining properties, see AudioEncoderBase objects
  }
  videoEncoder = {
    bitrateKbps = "string"
    frameRate = "string"
    scale = {
      height = "string"
      mode = "string"
      width = "string"
    }
    @type = "string"
    // For remaining properties, see VideoEncoderBase objects
  }

对于 #Microsoft.VideoAnalyzer.EncoderSystemPreset,请使用:

  @type = "#Microsoft.VideoAnalyzer.EncoderSystemPreset"
  name = "string"

AudioEncoderBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.AudioEncoderAac,请使用:

  @type = "#Microsoft.VideoAnalyzer.AudioEncoderAac"

VideoEncoderBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.VideoEncoderH264,请使用:

  @type = "#Microsoft.VideoAnalyzer.VideoEncoderH264"

SinkNodeBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.VideoSink,请使用:

  @type = "#Microsoft.VideoAnalyzer.VideoSink"
  videoCreationProperties = {
    description = "string"
    retentionPeriod = "string"
    segmentLength = "string"
    title = "string"
  }
  videoName = "string"
  videoPublishingOptions = {
    disableArchive = "string"
    disableRtspPublishing = "string"
  }

SourceNodeBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.RtspSource,请使用:

  @type = "#Microsoft.VideoAnalyzer.RtspSource"
  endpoint = {
    credentials = {
      @type = "string"
      // For remaining properties, see CredentialsBase objects
    }
    tunnel = {
      @type = "string"
      // For remaining properties, see TunnelBase objects
    }
    url = "string"
    @type = "string"
    // For remaining properties, see EndpointBase objects
  }
  transport = "string"

对于 #Microsoft.VideoAnalyzer.VideoSource,请使用:

  @type = "#Microsoft.VideoAnalyzer.VideoSource"
  timeSequences = {
    @type = "string"
    // For remaining properties, see TimeSequenceBase objects
  }
  videoName = "string"

EndpointBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.TlsEndpoint,请使用:

  @type = "#Microsoft.VideoAnalyzer.TlsEndpoint"
  trustedCertificates = {
    @type = "string"
    // For remaining properties, see CertificateSource objects
  }
  validationOptions = {
    ignoreHostname = "string"
    ignoreSignature = "string"
  }

对于 #Microsoft.VideoAnalyzer.UnsecuredEndpoint,请使用:

  @type = "#Microsoft.VideoAnalyzer.UnsecuredEndpoint"

CredentialsBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.UsernamePasswordCredentials,请使用:

  @type = "#Microsoft.VideoAnalyzer.UsernamePasswordCredentials"
  password = "string"
  username = "string"

TunnelBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel,请使用:

  @type = "#Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel"
  deviceId = "string"
  iotHubName = "string"

CertificateSource 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.PemCertificateList,请使用:

  @type = "#Microsoft.VideoAnalyzer.PemCertificateList"
  certificates = [
    "string"
  ]

TimeSequenceBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers,请使用:

  @type = "#Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers"
  ranges = "string"

属性值

videoAnalyzers/pipelineTopologies

名称 说明 Value
type 资源类型 “Microsoft.Media/videoAnalyzers/pipelineTopologies@2021-11-01-preview”
name 资源名称 字符串 (必需)
parent_id 此资源的父资源的 ID。 类型为:videoAnalyzers 的资源的 ID
sku 描述 SKU 的属性。 需要 sku ()
kind 拓扑类型。 “Batch”
需要“实时” ()
properties 资源属性。 PipelineTopologyProperties

PipelineTopologyProperties

名称 说明 Value
description 管道拓扑的可选说明。 建议在此处描述拓扑的预期用法。 字符串
parameters 拓扑参数声明的列表。 此处声明的参数可以通过使用“${PARAMETER_NAME}”字符串模式在整个拓扑节点中引用。 参数可以具有可选的默认值,以后可以在管道的单个实例中定义。 ParameterDeclaration[]
处理器 拓扑处理器节点的列表。 处理器节点允许分析、处理或转换管道数据。 ProcessorNodeBase[]
sinks 拓扑接收器节点的列表。 接收器节点允许存储或导出管道数据。 SinkNodeBase[] (必需)
sources 拓扑源节点的列表。 源节点允许管道引入外部数据。 SourceNodeBase[] (必需)

ParameterDeclaration

名称 说明 Value
默认值 管道未指定值时要使用的参数的默认值。 字符串
description 参数的说明。 字符串
name 参数的名称。 字符串 (必需)
type 参数的类型。 “Bool”
“Double”
“Int”
“SecretString”
“字符串” (必需)

ProcessorNodeBase

名称 说明 Value
inputs 拓扑中的上游节点引用数组,用作此节点的输入。 NodeInput[] (必需)
name 节点名称。 在拓扑中必须是唯一的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.EncoderProcessor (必需)

NodeInput

名称 说明 Value
nodeName 管道中上游节点的名称,输出用作当前节点的输入。 字符串 (必需)

EncoderProcessor

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.EncoderProcessor” ()
预设 编码器预设,用于定义有关如何处理输入内容的配方或说明。 EncoderPresetBase (必需)

EncoderPresetBase

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.EncoderCustomPreset
#Microsoft.VideoAnalyzer.EncoderSystemPreset (必需)

EncoderCustomPreset

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.EncoderCustomPreset” (必需)
audioEncoder 描述用于编码音频的自定义预设。 AudioEncoderBase
videoEncoder 描述编码视频的自定义预设。 VideoEncoderBase

AudioEncoderBase

名称 说明 Value
bitrateKbps 比特率,以千位/秒或 Kbps 为单位,应以 48 kHz) 采样率 (2 声道立体声音频编码音频。 允许的值为 96、112、128、160、192、224 和 256。 如果省略,则使用输入音频的比特率。 字符串
@type 设置对象类型 #Microsoft.VideoAnalyzer.AudioEncoderAac (所需的)

AudioEncoderAac

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.AudioEncoderAac” (需要)

VideoEncoderBase

名称 说明 Value
bitrateKbps 应对视频进行编码的最大比特率,以千比特/秒或 Kbps 为单位。 如果省略,编码器会自动将其设置为尝试匹配输入视频的质量。 字符串
frameRate 编码视频) 帧速率 (每秒帧数。 该值必须大于零,并且小于或等于 300。 如果省略,编码器将使用输入视频的平均帧速率。 字符串
scale 描述编码视频的分辨率。 如果省略,编码器将使用输入视频的分辨率。 VideoScale
@type 设置对象类型 #Microsoft.VideoAnalyzer.VideoEncoderH264 (必需)

VideoScale

名称 说明 Value
高度 所需的输出视频高度。 字符串
mode 描述要应用的视频缩放模式。 默认模式为“Pad”。 如果模式为“Pad”或“Stretch”,则必须同时指定宽度和高度。 否则,如果模式为“PreserveAspectRatio”,则只需提供宽度或高度之一。 “Pad”
“PreserveAspectRatio”
“Stretch”
width 所需的输出视频宽度。 字符串

VideoEncoderH264

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.VideoEncoderH264” ()

EncoderSystemPreset

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.EncoderSystemPreset” ()
name 内置编码预设的名称。 “SingleLayer_1080p_H264_AAC”
“SingleLayer_2160p_H264_AAC”
“SingleLayer_540p_H264_AAC”
需要“SingleLayer_720p_H264_AAC” ()

SinkNodeBase

名称 说明 Value
inputs 拓扑中的上游节点引用数组,用作此节点的输入。 NodeInput[] (必需)
name 节点名称。 在拓扑中必须是唯一的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.VideoSink (必需)

VideoSink

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.VideoSink” (必需)
videoCreationProperties 可选视频属性,用于在服务上创建新的视频资源时使用。 VideoCreationProperties
videoName 用于捕获和发布内容的新视频资源或现有视频资源的名称。 注意:如果 RTSP 源的下游,并且 disableArchive 设置为 true,则不会存档任何内容。 字符串 (必需)
videoPublishingOptions 用于更改视频接收器如何通过视频资源发布内容的选项。 此属性仅允许用于“kind”设置为“live”的拓扑。 VideoPublishingOptions

VideoCreationProperties

名称 说明 Value
description 用户提供的可选说明。 值长度最多为 2048 个字符。 字符串
retentionPeriod 视频保持期指示视频在存储中的保留时间。 值必须以 ISO8601 持续时间格式指定, (即“P1D”) 等于 1 天,并且可以在 1 天到 10 年之间以 1 天为增量。 如果不存在 (null) ,则无限期保留所有视频内容。 此属性仅允许用于“kind”设置为“live”的拓扑。 字符串
segmentLength 段长度指示保留到存储的单个内容文件 (段) 的长度。 较小的段提供较低的存档播放延迟,但会生成更大的存储事务量。 较大的段可减少存储事务量,同时增加存档播放延迟。 值必须以 ISO8601 持续时间格式指定 (即“PT30S”) 等于 30 秒,并且可以在 30 秒到 5 分钟之间变化,增量为 30 秒。 在创建视频资源的初始调用后更改此值可能会导致在将内容上传到存档时出错。 默认值为 30 秒。 此属性仅允许用于“kind”设置为“live”的拓扑。 字符串
title 用户提供的可选标题。 值长度最多为 256 个字符。 字符串

VideoPublishingOptions

名称 说明 Value
disableArchive 设置为“true”时,不会存档或记录内容。 例如,当拓扑仅用于低延迟视频流时,会使用此方法。 默认值为“false”。 如果设置为“true”,则必须将“disableRtspPublishing”设置为“false”。 字符串
disableRtspPublishing 如果设置为“true”,则不会发布 RTSP 播放 URL,这会禁用低延迟流式处理。 例如,当拓扑仅用于存档内容时,会使用此方法。 默认值为“false”。 如果设置为“true”,则必须将“disableArchive”设置为“false”。 字符串

SourceNodeBase

名称 说明 Value
name 节点名称。 在拓扑中必须是唯一的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.RtspSource
#Microsoft.VideoAnalyzer.VideoSource 需要 ()

RtspSource

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.RtspSource” ()
endpoint 视频分析器要连接到的 RTSP 终结点信息。 它包含视频分析器连接到 RTSP 相机和/或通用 RTSP 服务器所需的信息。 EndpointBase (必需)
运输 RTSP 和 RTP 交换使用的网络传输:TCP 或 HTTP。 使用 TCP 时,RTP 数据包在 TCP RTSP 连接上交错。 使用 HTTP 时,RTSP 消息通过长期 HTTP 连接交换,RTP 包与 RTSP 消息交错在 HTTP 连接中。 “Http”
“Tcp”

EndpointBase

名称 说明
凭据 要提供给终结点的凭据。 CredentialsBase (必需)
隧道 描述视频分析器可通过该隧道连接到终结点 URL。 这是一个可选属性,通常在终结点位于防火墙后面时使用。 TunnelBase
url 视频分析器要连接到的终结点 URL。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.TlsEndpoint
#Microsoft.VideoAnalyzer.UnsecuredEndpoint (所需的)

CredentialsBase

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.UsernamePasswordCredentials (必需)

UsernamePasswordCredentials

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.UsernamePasswordCredentials” (必需)
password 要作为凭据一部分显示的密码。 建议将此值参数化为机密字符串,以防止在 API 请求中将此值作为资源的一部分返回。 字符串 (必需)
username 要作为凭据的一部分显示的用户名。 字符串 (必需)

TunnelBase

名称 说明 Value
@type 设置对象类型 需要 #Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel ()

SecureIotDeviceRemoteTunnel

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.SecureIotDeviceRemoteTunnel” (必需)
deviceId 建立远程隧道时要使用的 IoT 设备 ID。 此字符串区分大小写。 字符串 (必需)
iotHubName IoT 中心的名称。 字符串 (必需)

TlsEndpoint

名称 说明 Value
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.TlsEndpoint” ()
trustedCertificates 身份验证 TLS 连接时受信任的证书颁发机构列表。 null 列表指定应使用 Azure 视频分析器的受信任机构列表。 CertificateSource
validationOptions 验证 TLS 连接时要使用的验证选项。 默认情况下,使用严格验证。 TlsValidationOptions

CertificateSource

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.PemCertificateList (必需)

PemCertificateList

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.PemCertificateList” (必需)
certificates PEM 格式的公共证书。 每个条目一个证书。 string[] (必需的)

TlsValidationOptions

名称 说明 Value
ignoreHostname 如果设置为“true”,则会跳过证书使用者名称验证。 默认值为“false”。 字符串
ignoreSignature 如果设置为“true”,则会跳过证书链信任验证。 默认值为“false”。 字符串

UnsecuredEndpoint

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.UnsecuredEndpoint” (必需)

VideoSource

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.VideoSource” (必需)
timeSequences 描述日期/时间范围的序列。 视频源仅选取这些范围内的录制媒体。 TimeSequenceBase (必需)
videoName 要用作源的视频分析器视频资源的名称。 字符串 (必需)

TimeSequenceBase

名称 说明 Value
@type 设置对象类型 #Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers (必需)

VideoSequenceAbsoluteTimeMarkers

名称 说明 Value
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers” (必需)
ranges 日期/时间范围的序列。 示例:'[“2021-10-05T03:30:00Z”、“2021-10-05T03:40:00Z”]”。 字符串 (必需)

SKU

名称 说明 Value
name SKU 名称。 “Batch_S1”
“Live_S1” (必需)