> For the complete documentation index, see [llms.txt](https://portal-integracao.intelbras.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portal-integracao.intelbras.com.br/cameras-and-gravadores/integracao-api-cftvip-e-mibo/cameras-e-gravadores/atributos-de-video.md).

# Atributos de Vídeo

Consulte capacidades e configure codificação de vídeo/áudio/snapshot (streams, bitrate, FPS, ROI, OSD, VideoOut, Smart Encode), incluindo privacidade e detecção de movimento.

## Dicas & Boas Práticas <a href="#dicas-and-boas-praticas" id="dicas-and-boas-praticas"></a>

* Sempre que disponível, utilize **Webhook (Push ativo)** para recebimento de eventos e snapshots, reduzindo o uso de polling contínuo.
* Utilize **HTTPS combinado com HTTP Digest Authentication** para garantir maior segurança na comunicação com o dispositivo.
* Valide rigorosamente **eventos, imagens e payloads JSON**, verificando estrutura, tipos de dados e campos obrigatórios antes do processamento.
* Evite ferramentas como **Postman** ou **Insomnia** para APIs que utilizam **conexões persistentes ou streaming**, pois não oferecem suporte adequado a esse tipo de comunicação.
* Implemente **tratamento de exceções**, **controle de timeout** e **reconexão automática**, garantindo maior estabilidade da aplicação.
* Para fluxos contínuos de eventos ou snapshots, assegure o **encerramento correto das conexões**, evitando consumo excessivo de recursos no dispositivo e no cliente.

***

### Tabela de Parâmetros

<table><thead><tr><th>Nome</th><th width="127.629638671875">Tipo</th><th>Descrição</th><th>Exemplo</th></tr></thead><tbody><tr><td><strong>caps</strong></td><td>object</td><td>Capacidades gerais de codificação e hardware</td><td>—</td></tr><tr><td>caps.MaxExtraStream</td><td>int</td><td>Número máximo de substreams</td><td>3</td></tr><tr><td>caps.PreviewSplitNumList</td><td>int[]</td><td>Divisão da visualização ao vivo</td><td>[1,4,9,16]</td></tr><tr><td>caps.PlaybackCompressSplitNumList</td><td>int[]</td><td>Divisão da reprodução secundária</td><td>[1,4,9,16]</td></tr><tr><td>caps.PreviewMode</td><td>char[16]</td><td>Modo de visualização multi-janela</td><td>SplitEncode</td></tr><tr><td>caps.VideoEncodeDevices</td><td>object[]</td><td>Capacidades de codificação por canal</td><td>—</td></tr><tr><td>VideoEncodeDevices.SupportIndividualResolution</td><td>bool</td><td>Resolução independente para snapshot</td><td>true</td></tr><tr><td>VideoEncodeDevices.RecordIndividualResolution</td><td>bool</td><td>Resolução independente para gravação</td><td>true</td></tr><tr><td>VideoEncodeDevices.MaxCIFPFrameSize</td><td>int</td><td>Tamanho máx. do frame CIF (Kbps)</td><td>40</td></tr><tr><td>VideoEncodeDevices.MinCIFPFrameSize</td><td>int</td><td>Tamanho mín. do frame CIF (Kbps)</td><td>7</td></tr><tr><td><strong>Encode</strong></td><td>object[]</td><td>Configuração de codificação por canal</td><td>—</td></tr><tr><td>Encode.MainFormat</td><td>object[]</td><td>Stream principal (normal/motion/alarm/emergency)</td><td>—</td></tr><tr><td>Encode.ExtraFormat</td><td>object[]</td><td>Substreams adicionais</td><td>—</td></tr><tr><td>Encode.SnapFormat</td><td>object[]</td><td>Stream de snapshot</td><td>—</td></tr><tr><td><strong>Video</strong></td><td>object</td><td>Configurações de vídeo</td><td>—</td></tr><tr><td>Video.Compression</td><td>char[16]</td><td>Codec de vídeo</td><td>H.264</td></tr><tr><td>Video.Width</td><td>int</td><td>Largura do vídeo (px)</td><td>1920</td></tr><tr><td>Video.Height</td><td>int</td><td>Altura do vídeo (px)</td><td>1080</td></tr><tr><td>Video.BitRate</td><td>int</td><td>Bitrate (Kbps)</td><td>2048</td></tr><tr><td>Video.FPS</td><td>double</td><td>Frames por segundo</td><td>25</td></tr><tr><td>Video.GOP</td><td>int</td><td>Intervalo de I-Frame</td><td>50</td></tr><tr><td>Video.Profile</td><td>char[16]</td><td>Perfil do codec</td><td>Baseline</td></tr><tr><td><strong>Audio</strong></td><td>object</td><td>Configurações de áudio</td><td>—</td></tr><tr><td>Audio.Enable</td><td>bool</td><td>Habilita áudio</td><td>true</td></tr><tr><td>Audio.Compression</td><td>char[16]</td><td>Codec de áudio</td><td>PCM</td></tr><tr><td>Audio.Bitrate</td><td>int</td><td>Bitrate de áudio (Kbps)</td><td>64</td></tr><tr><td>Audio.Frequency</td><td>uint</td><td>Frequência de amostragem</td><td>44100</td></tr><tr><td>Audio.Depth</td><td>uint8</td><td>Profundidade de bits</td><td>16</td></tr><tr><td><strong>ROI</strong></td><td>object[]</td><td>Região de interesse</td><td>—</td></tr><tr><td>ROI.Regions</td><td>int[][4]</td><td>Coordenadas ROI (0–8192)</td><td>[x1,y1,x2,y2]</td></tr><tr><td>ROI.Quality</td><td>uint8</td><td>Qualidade (1–6)</td><td>4</td></tr><tr><td><strong>ChannelTitle</strong></td><td>object[]</td><td>Nome do canal</td><td>"CAM1|123"</td></tr><tr><td><strong>VideoWidget</strong></td><td>object[]</td><td>Widgets OSD de vídeo</td><td>—</td></tr><tr><td>VideoWidget.ChannelTitle</td><td>object</td><td>Título do canal</td><td>—</td></tr><tr><td>VideoWidget.TimeTitle</td><td>object</td><td>Data e hora</td><td>—</td></tr><tr><td>VideoWidget.UserDefinedTitle</td><td>object[]</td><td>Texto customizado</td><td>"11|222"</td></tr><tr><td><strong>VideoOut</strong></td><td>object[]</td><td>Saída de vídeo</td><td>—</td></tr><tr><td>VideoOut.Color</td><td>object</td><td>Cor (Brilho, Contraste, Saturação, Hue)</td><td>50</td></tr><tr><td>VideoOut.Mode</td><td>object</td><td>Resolução e formato</td><td>HDMI</td></tr><tr><td><strong>SmartEncode</strong></td><td>object[]</td><td>Codificação inteligente</td><td>—</td></tr><tr><td>SmartEncode.Enable</td><td>bool</td><td>Smart Encode no stream principal</td><td>true</td></tr><tr><td>SmartEncode.Extra</td><td>bool[]</td><td>Smart Encode nos substreams</td><td>[true]</td></tr><tr><td><strong>PrivacyMasking</strong></td><td>object[]</td><td>Máscara de privacidade</td><td>—</td></tr><tr><td>PrivacyMasking.Enable</td><td>bool</td><td>Ativa máscara</td><td>true</td></tr><tr><td>PrivacyMasking.ShapeType</td><td>char[16]</td><td>Forma da máscara</td><td>Rect</td></tr><tr><td>PrivacyMasking.Rect</td><td>int[4]</td><td>Coordenadas</td><td>[0,0,50,100]</td></tr><tr><td>PrivacyMasking.Polygon</td><td>int[][]</td><td>Polígono customizado</td><td>[[x,y]]</td></tr><tr><td>PrivacyMasking.Color</td><td>int[4]</td><td>Cor RGBA</td><td>[0,0,0,255]</td></tr><tr><td>PrivacyMasking.Mosaic</td><td>int</td><td>Tipo de mosaico</td><td>8</td></tr><tr><td><strong>MotionDetect</strong></td><td>object[]</td><td>Detecção de movimento</td><td>—</td></tr><tr><td>MotionDetect.Enable</td><td>bool</td><td>Ativa detecção</td><td>true</td></tr><tr><td>MotionDetect.Level</td><td>uint8</td><td>Sensibilidade (1–6)</td><td>3</td></tr><tr><td>MotionDetect.Region</td><td>int[]</td><td>Região monitorada</td><td>[4194303,…]</td></tr><tr><td><strong>LAEConfig</strong></td><td>object</td><td>Ajuste de realce de baixa luz</td><td>—</td></tr><tr><td>LAEConfig.Enable</td><td>bool</td><td>Ativa LAE</td><td>true</td></tr><tr><td>LAEConfig.ManualEn</td><td>uint32</td><td>Modo manual</td><td>1</td></tr><tr><td><strong>Intrinsics</strong></td><td>object</td><td>Parâmetros intrínsecos da câmera</td><td>—</td></tr><tr><td>Intrinsics.Fx / Fy</td><td>float</td><td>Distância focal</td><td>0</td></tr><tr><td>Intrinsics.Cx / Cy</td><td>float</td><td>Centro óptico</td><td>0</td></tr><tr><td>Intrinsics.K1–K3</td><td>float</td><td>Distorção radial</td><td>0</td></tr><tr><td>Intrinsics.P1–P2</td><td>float</td><td>Distorção tangencial</td><td>0</td></tr></tbody></table>

***

### Obter Números Extras de Transmissão Máximas

**Tópico:** Retorna o número máximo de subfluxos suportados pelo dispositivo.

* Método: `GET /cgi-bin/magicBox.cgi?action=getProductDefinition`

**Exemplo**:

```http
http://<ip>/cgi-bin/magicBox.cgi?action=getProductDefinition&name=MaxExtraStream 
```

**Resposta:**

```
table.MaxExtraStream=1 
```

### Obter Capacidade de Codificação

**Tópico:** Informa as capacidades gerais de codificação de vídeo, áudio, visualização e reprodução.

* Método: `GET /cgi-bin/encode.cgi?action=getCaps`

**Exemplo**:

```http
http://<ip>/cgi-bin/encode.cgi?action=getCaps
```

**Resposta:**

```
caps.MaxExtraStream=3 
caps.PreviewSplitNumList[0]=1 
caps.PreviewSplitNumList[1]=4 
caps.PreviewSplitNumList[2]=9 
caps.PlaybackCompressSplitNumList[0]=1 
caps.PlaybackCompressSplitNumList[1]=4 
caps.PlaybackCompressSplitNumList[2]=9 
caps.PreviewMode=SplitSnap 
caps.VideoEncodeDevices[0].SupportIndividualResolution=true 
caps.VideoEncodeDevices[0].RecordIndividualResolution=true 
caps.VideoEncodeDevices[0].MaxCIFPFrameSize=40 
caps.VideoEncodeDevices[0].MinCIFPFrameSize=7 
caps.CoriaDisplay[0].CoriaDisplaySwitchs[0]=0 
caps.CoriaDisplay[0].CoriaDisplaySwitchs[1]=1 
caps.CoriaDisplay[0].CoriaDisplaySwitchs[2]=2 
```

### Obter Capacidade de Configuração de Codificação

**Tópico:** Retorna os formatos, resoluções, bitrates e FPS suportados para cada tipo de stream.

* Método: `GET /cgi-bin/encode.cgi?action=getConfigCaps`

**Exemplo**:

```http
http://<ip>/cgi-bin/encode.cgi?action=getConfigCaps&channel=1&Encode[0].MainFormat[0].V
ideo.Compression=H.264&Encode[0].MainFormat[0].Video.Width=1920&Encode[0].MainFormat[0].Vide
o.Height=1080
```

**Resposta:**

```
caps.MainFormat[0].Audio.CompressionTypes=G.711A, AMR 
caps.MainFormat[0].Video.CompressionTypes=H.264,MJPG 
caps.MainFormat[0].Video.ResolutionTypes=2048 x 1536,1080,SXGA, 1280 x 960,720,D1,CIF 
caps.MainFormat[0].Video.BitRateOptions=448,2560 
caps.MainFormat[0].Video.FPSMax=25 
caps.ExtraFormat[0].Audio.CompressionTypes=G.711A, AMR 
caps.ExtraFormat[0].Video.CompressionTypes=H.264,MJPG 
caps.ExtraFormat[0].Video.ResolutionTypes=2048 x 1536,1080,SXGA, 1280 x 960,720,D1,CIF 
caps.ExtraFormat[0].Video.BitRateOptions=448,2560 
caps.ExtraFormat[0].Video.FPSMax=25 
caps.SnapFormat[0].Video.CompressionTypes=JPEG 
caps.SnapFormat[0].Video.ResolutionTypes=2048 x 1536,1080,SXGA, 1280 x 960,720,D1,CIF 
caps.SnapFormat[0].Video.FPSMax=2 
```

### Consultar Configuração de Codificação de Mídia

**Tópico:** Consulta e define parâmetros de codificação de áudio, vídeo e snapshots.

* Método: `GET /cgi-bin/configManager.cgi?action=getConfig&name=Encode`
* **Exemplo de resposta:**

```
table.Encode[0].MainFormat[0].Audio.Bitrate=64 
table.Encode[0].MainFormat[0].Audio.Channels[0]=0 
table.Encode[0].MainFormat[0].Audio.Compression=G.711A 
table.Encode[0].MainFormat[0].Audio.Depth=16 
table.Encode[0].MainFormat[0].Audio.Frequency=8000 
table.Encode[0].MainFormat[0].Audio.Mode=0 
table.Encode[0].MainFormat[0].Audio.Pack=PS 
table.Encode[0].MainFormat[0].AudioEnable=true 
table.Encode[0].MainFormat[0].Video.resolution=1920x1080 
table.Encode[0].MainFormat[0].Video.BitRate=4096 
table.Encode[0].MainFormat[0].Video.BitRateControl=CBR 
table.Encode[0].MainFormat[0].Video.Compression=H.264 
table.Encode[0].MainFormat[0].Video.CustomResolutionName=1080P 
table.Encode[0].MainFormat[0].Video.FPS=18 
table.Encode[0].MainFormat[0].Video.GOP=36 
table.Encode[0].MainFormat[0].Video.Height=1080 
table.Encode[0].MainFormat[0].Video.Pack=PS 
table.Encode[0].MainFormat[0].Video.Profile=High 
table.Encode[0].MainFormat[0].Video.Quality=4 
table.Encode[0].MainFormat[0].Video.QualityRange=6 
table.Encode[0].MainFormat[0].Video.SVCTLayer=1 
table.Encode[0].MainFormat[0].Video.Width=1920 
table.Encode[0].MainFormat[0].Video.Priority=0 
table.Encode[0].MainFormat[0].VideoEnable=true 
table.Encode[0].MainFormat[1].Audio.Bitrate=64 
table.Encode[0].MainFormat[1].Audio.Channels[0]=0 
table.Encode[0].MainFormat[1].Audio.Compression=G.711A 
table.Encode[0].MainFormat[1].Audio.Depth=16 
table.Encode[0].MainFormat[1].Audio.Frequency=8000 
table.Encode[0].MainFormat[1].Audio.Mode=0 
table.Encode[0].MainFormat[1].Audio.Pack=PS 
table.Encode[0].MainFormat[1].AudioEnable=true 
table.Encode[0].MainFormat[1].Video.resolution=1920x1080 
table.Encode[0].MainFormat[1].Video.BitRate=4096 
table.Encode[0].MainFormat[1].Video.BitRateControl=CBR 
table.Encode[0].MainFormat[1].Video.Compression=H.264 
table.Encode[0].MainFormat[1].Video.CustomResolutionName=1080P 
table.Encode[0].MainFormat[1].Video.FPS=18 
table.Encode[0].MainFormat[1].Video.GOP=36 
table.Encode[0].MainFormat[1].Video.Height=1080 
table.Encode[0].MainFormat[1].Video.Pack=PS 
table.Encode[0].MainFormat[1].Video.Profile=High 
table.Encode[0].MainFormat[1].Video.Quality=4 
table.Encode[0].MainFormat[1].Video.QualityRange=6 
table.Encode[0].MainFormat[1].Video.SVCTLayer=1 
table.Encode[0].MainFormat[1].Video.Width=1920 
table.Encode[0].MainFormat[1].Video.Priority=0 
table.Encode[0].MainFormat[1].VideoEnable=true 
table.Encode[0].MainFormat[2].Audio.Bitrate=64 
table.Encode[0].MainFormat[2].Audio.Channels[0]=0 
table.Encode[0].MainFormat[2].Audio.Compression=G.711A 
table.Encode[0].MainFormat[2].Audio.Depth=16 
table.Encode[0].MainFormat[2].Audio.Frequency=8000 
table.Encode[0].MainFormat[2].Audio.Mode=0 
table.Encode[0].MainFormat[2].Audio.Pack=PS 
table.Encode[0].MainFormat[2].AudioEnable=true 
table.Encode[0].MainFormat[2].Video.resolution=1920x1080 
table.Encode[0].MainFormat[2].Video.BitRate=4096 
table.Encode[0].MainFormat[2].Video.BitRateControl=CBR 
table.Encode[0].MainFormat[2].Video.Compression=H.264 
table.Encode[0].MainFormat[2].Video.CustomResolutionName=1080P 
table.Encode[0].MainFormat[2].Video.FPS=18 
table.Encode[0].MainFormat[2].Video.GOP=36 
table.Encode[0].MainFormat[2].Video.Height=1080 
table.Encode[0].MainFormat[2].Video.Pack=PS 
table.Encode[0].MainFormat[2].Video.Profile=High 
table.Encode[0].MainFormat[2].Video.Quality=4 
table.Encode[0].MainFormat[2].Video.QualityRange=6 
table.Encode[0].MainFormat[2].Video.SVCTLayer=1 
table.Encode[0].MainFormat[2].Video.Width=1920 
table.Encode[0].MainFormat[2].Video.Priority=0 
table.Encode[0].MainFormat[2].VideoEnable=true 
table.Encode[0].MainFormat[3].Audio.Bitrate=64 
table.Encode[0].MainFormat[3].Audio.Channels[0]=0 
table.Encode[0].MainFormat[3].Audio.Compression=G.711A 
table.Encode[0].MainFormat[3].Audio.Depth=16 
table.Encode[0].MainFormat[3].Audio.Frequency=8000 
table.Encode[0].MainFormat[3].Audio.Mode=0 
table.Encode[0].MainFormat[3].Audio.Pack=PS 
table.Encode[0].MainFormat[3].AudioEnable=true 
table.Encode[0].MainFormat[3].Video.resolution=704x576 
table.Encode[0].MainFormat[3].Video.BitRate=2048 
table.Encode[0].MainFormat[3].Video.BitRateControl=VBR 
table.Encode[0].MainFormat[3].Video.Compression=H.264 
table.Encode[0].MainFormat[3].Video.FPS=25 
table.Encode[0].MainFormat[3].Video.GOP=50 
table.Encode[0].MainFormat[3].Video.Height=576 
table.Encode[0].MainFormat[3].Video.Pack=PS 
table.Encode[0].MainFormat[3].Video.Profile=Main 
table.Encode[0].MainFormat[3].Video.Quality=4 
table.Encode[0].MainFormat[3].Video.QualityRange=6 
table.Encode[0].MainFormat[3].Video.SVCTLayer=1 
table.Encode[0].MainFormat[3].Video.Width=704 
table.Encode[0].MainFormat[3].Video.Priority=0 
table.Encode[0].MainFormat[3].VideoEnable=true 
table.Encode[0].ExtraFormat[0].Audio.Bitrate=64 
… 
table.Encode[0].SnapFormat[0].Audio.Bitrate=64
```

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&Encode[1].MainFormat[0].Video.Compression=MPEG4 
```

**Resposta:**

```
OK
```

### Configuração de Codificação da Região de Interesse

**Tópico:** Define regiões com prioridade de qualidade na codificação de vídeo.

* Método: `GET /cgi-bin/configManager.cgi?action=getConfig&name=VideoEncodeROI`
* **Exemplo de resposta:**

```
table.VideoEncodeROI[0].Regions[0][0]=0 
table.VideoEncodeROI[0].Regions[0][1]=0 
table.VideoEncodeROI[0].Regions[0][2]=0 
table.VideoEncodeROI[0].Regions[0][3]=0 
table.VideoEncodeROI[0].Regions[1][0]=0 
… 
table.VideoEncodeROI[0].Quality=4, 
table.VideoEncodeROI[0].Main=true, 
table.VideoEncodeROI[0].Extra1=true, 
table.VideoEncodeROI[0].Extra2=true, 
table.VideoEncodeROI[0].Extra3=true,  
table.VideoEncodeROI[0].Snapshot=true 
table.VideoEncodeROI[0].DynamicTrack=true, 
table.VideoEncodeROI[0].DynamicDelayTime=60 
```

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoEncodeROI[0].DynamicTrack=true 
```

**Resposta:**

```
OK
```

### Obter Configuração de Título do Canal

**Tópico:** Retorna os nomes configurados para cada canal.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=ChannelTitle 
```

* **Resposta:**

```
table.ChannelTitle[0].Name=CAM1|123 
table.ChannelTitle[1].Name=CAM2|456 
```

### Definir Configuração de Título do Canal

**Tópico:** Altera o nome exibido nos canais de vídeo.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&ChannelTitle[0].Name=CAM1|123&C
hannelTitle[1].Name=CAM2|456 
```

**Resposta:**

```
OK
```

### Obter Canais de Entrada de Vídeo Suportados&#x20;

**Tópico:** Obtenha canais e entrada de vídeo suportados pelo dispositivo.

* Método: `GET /cgi-bin/devVideoInput.cgi?action=getCollect`

**Exemplo:**

```powershell
http://<ip>/cgi-bin/devVideoInput.cgi?action=getCollect 
```

**Resposta:**

```
result=1 
```

### Obter Canais de Saída de Vídeo Suportados&#x20;

**Tópico:** Obtenha o número máximo de subfluxos.

* Método: `GET /cgi-bin/devVideoOutput.cgi?action=getCollect`

**Exemplo:**

```powershell
http://<ip>/cgi-bin/devVideoOutput.cgi?action=getCollect 
```

**Resposta:**

```
result=2
```

### Obter Máximo de Canais de Entrada Remotos

**Tópico:** Obtenha o número máximo de subfluxos.

* Método: `GET /cgi-bin/magicBox.cgi?action=getProductDefinition`

**Exemplo:**

```powershell
http://<ip>/cgi-bin/magicBox.cgi?action=getProductDefinition&name=MaxRemoteInputChanne
ls 
```

**Resposta:**

```
table.MaxRemoteInputChannels=16 
```

### Obter Configuração do Padrão de Vídeo

**Tópico:** Obtenha o número máximo de subfluxos.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=VideoStandard 
```

**Resposta:**

```
table.VideoStandard=PAL 
```

### Definir a Configuração do Padrão de Vídeo

**Tópico:** Obtenha o número máximo de subfluxos.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoStandard=PAL 
```

**Resposta:**

```
OK
```

### Obter Configuração de Widget de Vídeo

**Tópico:** Obtenha o número máximo de subfluxos.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=VideoWidget  
```

**Resposta:**

```
table.VideoWidget[0].ChannelTitle.BackColor[0]=0 
table.VideoWidget[0].ChannelTitle.BackColor[1]=0 
table.VideoWidget[0].ChannelTitle.BackColor[2]=0 
table.VideoWidget[0].ChannelTitle.BackColor[3]=128 
table.VideoWidget[0].ChannelTitle.EncodeBlend=true 
table.VideoWidget[0].ChannelTitle.FrontColor[0]=255 
table.VideoWidget[0].ChannelTitle.FrontColor[1]=255 
table.VideoWidget[0].ChannelTitle.FrontColor[2]=255 
table.VideoWidget[0].ChannelTitle.FrontColor[3]=0 
table.VideoWidget[0].ChannelTitle.Rect[0]=0 
table.VideoWidget[0].ChannelTitle.Rect[1]=8191 
table.VideoWidget[0].ChannelTitle.Rect[2]=0 
table.VideoWidget[0].ChannelTitle.Rect[3]=8191 
… 
table.VideoWidget[0].UserDefinedTitle[0].BackColor[0]=0 
table.VideoWidget[0].UserDefinedTitle[0].BackColor[1]=0 
table.VideoWidget[0].UserDefinedTitle[0].BackColor[2]=0 
table.VideoWidget[0].UserDefinedTitle[0].BackColor[3]=128 
table.VideoWidget[0].UserDefinedTitle[0].EncodeBlend=true 
table.VideoWidget[0].UserDefinedTitle[0].FrontColor[0]=255 
table.VideoWidget[0].UserDefinedTitle[0].FrontColor[1]=255 
table.VideoWidget[0].UserDefinedTitle[0].FrontColor[2]=255 
table.VideoWidget[0].UserDefinedTitle[0].FrontColor[3]=0 
table.VideoWidget[0].UserDefinedTitle[0].Rect[0]=0 
table.VideoWidget[0].UserDefinedTitle[0].Rect[1]=8191 
table.VideoWidget[0].UserDefinedTitle[0].Rect[2]=0 
table.VideoWidget[0].UserDefinedTitle[0].Rect[3]=8191 
…
```

### Definir Configuração de Widget de Vídeo

**Tópico:** Obtenha o número máximo de subfluxos.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoWidget[1].Covers[0].BackColor[
0]=128&VideoWidget[1].Covers[0].BackColor[1]=128&VideoWidget[1].Covers[0].BackColor[2]=128&Vid
eoWidget[1].Covers[0].BackColor[3]=0  
```

**Resposta:**

```
OK
```

### Obter Capacidade de Entrada de Vídeo

**Tópico:** Obtenha o número máximo de subfluxos.

* Método: `GET /cgi-bin/devVideoInput.cgi?action=getCaps`

**Exemplo:**

```http
http://<ip>/cgi-bin/devVideoInput.cgi?action=getCaps&channel=1  
```

**Resposta:**

```
caps.AutoSyncPhase=false 
caps.Backlight=2 
caps.BrightnessCompensation=true 
caps.ChipID=0 
caps.CoverCount=4 
caps.CoverType=1 
caps.CustomManualExposure=true 
caps.DayNightColor=true 
caps.DayNightColorIO=false 
caps.DoubleExposure=0 
caps.DownScaling=false 
caps.EEModeRange=100 
caps.ElectricFocus=false 
caps.Exposure=16 
caps.ExposureMode=31 
caps.ExternalSyncInput=false 
caps.FishEye=false 
caps.FlashAdjust=false 
caps.Flip=true 
caps.FormatCount=5 
caps.Gain=true 
caps.GainAuto=true 
caps.Gamma=true 
caps.GammaModeRange=100 
caps.GlareInhibition=1 
caps.HorizontalBinning=0 
caps.IRCUT=true 
caps.ImageEnhancement.LevelRange[0]=0 
caps.ImageEnhancement.LevelRange[1]=100 
caps.ImageEnhancement.Support=true 
caps.InfraRed=true 
caps.Iris=true 
caps.IrisAuto=true 
caps.LadenBitrate=972000 
caps.LimitedAutoExposure=true 
caps.MaxExposureTime=300.0 
caps.MaxExposureTime1=0.0 
caps.MaxHeight=1080 
caps.MaxMultiProfile=3 
caps.MaxWidth=1920 
caps.MeteringRegionCount=0 
caps.MinExposureTime=1.0 
caps.MinExposureTime1=0.0 
caps.Mirror=true 
caps.MultiOptions=false 
caps.NightOptions=true 
caps.ReferenceLevel=false 
caps.Rotate90=true 
caps.SetColor=true 
caps.SignalFormats=Inside 
caps.SignalType[0]=VGA 
caps.SnapshotExposure=false 
caps.SupportProfile=false 
caps.SupportWhiteLevel=true 
caps.SupportWriteLevel=false 
caps.SyncChipChannels=false 
caps.SyncFocus=false 
caps.TitleCount=4 
caps.TridimDenoise=2 
caps.TridimDenoiseDetails=0 
caps.UTC=0 
caps.UpScaling=false 
caps.Version=0 
caps.VerticalBinning=0 
caps.VideoInDenoise.2D.LevelRange[0]=0 
caps.VideoInDenoise.2D.LevelRange[1]=100 
caps.VideoInDenoise.2D.Support=true 
caps.VideoInDenoise.3D.3DAutoType.ModRange[0]=0 
caps.VideoInDenoise.3D.3DAutoType.ModRange[1]=100 
caps.VideoInDenoise.3D.Support=true 
caps.VideoInDenoise.Support=true 
caps.WhiteBalance=3 
caps.WideDynamicRange=1 
caps.VideoInIR.SupportIRPlateMode=false 
caps.Flicker.Support=0, 
caps.Flicker.MaxAmplitude= 0, 
caps.Flicker.MaxBiasing=0 
caps.KillShutLine.Support=false, 
caps.KillShutLine.MaxChannels=1, 
caps.KillShutLine.MinKillShutLine=0, 
caps.KillShutLine.MaxKillShutLine=0
```

### Obter Coordenadas da Janela Atual

**Tópico:** Obtenha o número máximo de subfluxos.

* Método: `GET /cgi-bin/devVideoInput.cgi?action=getCurrentWindow`

**Exemplo:**

```http
http://<ip>/cgi-bin/devVideoInput.cgi?action=getCurrentWindow&channel=1  
```

**Resposta:**

```
rect[0]=500 
rect[1]=500 
rect[2]=5000 
rect[3]=5000 
```

### Definir Coordenadas da Janela Atual

**Tópico:** Obtenha o número máximo de subfluxos.

* Método: `GET /cgi-bin/devVideoInput.cgi?action=setCurrentWindow`

**Exemplo:**

```http
http://<ip>/cgi-bin/devVideoInput.cgi?action=setCurrentWindow&channel=1&rect[0]=0&rect[1]
=0&rect[2]=5000&rect[3]=5000
```

**Resposta:**

```
OK
```

### Obter Configuração de Saída de Vídeo

**Tópico:** Obtenha o número máximo de subfluxos.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=VideoOut 
```

**Resposta:**

```
table.VideoOut[0].Margin[0]=0 
table.VideoOut[0].Margin[1]=0 
table.VideoOut[0].Margin[2]=0 
table.VideoOut[0].Margin[3]=0 
table.VideoOut[0].Color.Brightness=50 
table.VideoOut[0].Color.Contrast=50 
table.VideoOut[0].Color.Satuation=50 
table.VideoOut[0].Color.Hue=50 
table.VideoOut[0].Mode.Width=800 
table.VideoOut[0].Mode.Height=600 
table.VideoOut[0].Mode.BPP=16 
table.VideoOut[0].Mode.Format="Auto" 
table.VideoOut[0].Mode.RefreshRate=60 
… 
```

### Definir Configuração de Saída de Vídeo

**Tópico:** Obtenha o número máximo de subfluxos.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&table.VideoOut[1].Color.Brightness=5
0 
```

**Resposta:**

```
OK
```

### Obter Configuração de Codificação Inteligente

**Tópico:** Obtenha o número máximo de subfluxos.

**Exemplo:**

```powershell
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=SmartEncode 
```

**Resposta:**

```
table.SmartEncode[0].Enable=false 
table.SmartEncode[0].Extra[0]=false 
table.SmartEncode[0].Extra[1]=false 
…
```

### Definir Configuração de Codificação Inteligente

**Tópico:** Consulta o estado da codificação inteligente.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&SmartEncode[0].Enable=true  
```

**Resposta:**

```
OK
```

### Obter Capacidades do Decodificador

**Tópico:** Retorna formatos e bitrate máximo suportados.

* Método: `GET /cgi-bin/DevVideoDec.cgi?action=getCaps`

**Exemplo:**

```http
http://<ip>/cgi-bin/DevVideoDec.cgi?action=getCaps 
```

**Resposta:**

```
Video.StreamType[0]=h264 
Video.StreamType[1]=h265 
Video.LadenBitrate=7776000 
```

### Obter Configuração de Máscara de Privacidade

**Tópico:** Retorna todas as máscaras configuradas.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=PrivacyMasking  
```

**Resposta:**

```
table.PrivacyMasking[0][0].Enable=true 
table.PrivacyMasking[0][0].Postion[0]=0.0 
table.PrivacyMasking[0][0].Postion[1]=0.0 
table.PrivacyMasking[0][0].Postion[2]=1.0 
table.PrivacyMasking[0][0].ShapeType=Rect 
table.PrivacyMasking[0][0].Rect[0]=0 
table.PrivacyMasking[0][0].Rect[1]=0 
table.PrivacyMasking[0][0].Rect[2]=50 
table.PrivacyMasking[0][0].Rect[3]=100 
table.PrivacyMasking[0][0].Color[0]=128 
table.PrivacyMasking[0][0].Color[1]=128 
table.PrivacyMasking[0][0].Color[2]=128 
table.PrivacyMasking[0][0].Color[3]=255 
table.PrivacyMasking[0][0].Mosaic=8 
table.PrivacyMasking[0][0].ViewAngle=30.0 
table.PrivacyMasking[0][1].Enable=true 
… 
```

### Definir Configuração de Máscara de Privacidade

**Tópico:** Cria ou altera máscaras de privacidade.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&PrivacyMasking[0][0].Enable=true&Pri
vacyMasking[0][0].Postion[0]=0.0&PrivacyMasking[0][0].Postion[1]=0.0&PrivacyMasking[0][0].Postion[2]
=1.0&PrivacyMasking[0][0].ShapeType=Rect&PrivacyMasking[0][0].Rect[0]=0&PrivacyMasking[0][0].Re
ct[1]=0&PrivacyMasking[0][0].Rect[2]=50&PrivacyMasking[0][0].Rect[3]=100&PrivacyMasking[0][0].Mos
aic=8&PrivacyMasking[0][0].ViewAngle=30.0 
```

**Resposta:**

```
OK
```

### Ativar Máscara de Privacidade

**Tópico:** Lista e ativa máscaras configuradas.

* Método: `GET /cgi-bin/PrivacyMasking.cgi?action=getPrivacyMasking`

**Exemplo:**

```http
http://<ip>/cgi-bin/PrivacyMasking.cgi?action=getPrivacyMasking&channel=1&offset=2&limit 
=5 
```

**Resposta:**

```
total=5 
PrivacyMasking[0].Index=0 
PrivacyMasking[0].Name=Privacy Masking1 
PrivacyMasking[0].Enable=1 
PrivacyMasking[0].ShapeType=Polygon 
PrivacyMasking[0].Polygon[0][0]= 0 
PrivacyMasking[0].Polygon[0][1]=0 
PrivacyMasking[0].Polygon[1][0]=128 
PrivacyMasking[0].Polygon[1][1]=128 
PrivacyMasking[0].Polygon[2][0]=256 
PrivacyMasking[0].Polygon[2][1]=200 
… 
PrivacyMasking[0].Color[0]=128,  
PrivacyMasking[0].Color[1]=128, 
PrivacyMasking[0].Color[2]=128, 
PrivacyMasking[0].Color[3]=255, 
PrivacyMasking[0].Mosaic=8, 
PrivacyMasking[1].Index =1, 
PrivacyMasking[1].Enable=1, 
… 
```

### Definir Máscara de Privacidade

**Tópico:** Define a máscara de privacidade

* Método: `GET /cgi-bin/PrivacyMasking.cgi?action=setPrivacyMasking`

**Exemplo:**

```http
http://<ip>/cgi-bin/PrivacyMasking.cgi?action=setPrivacyMasking&channel=2&PrivacyMaskin
g.Index=3&PrivacyMasking.Name=Privacy%20Masking1&PrivacyMasking.Enable=1&PrivacyMasking.
ShapeType=Rect&PrivacyMasking.Rect[0]=0&PrivacyMasking.Rect[1]=0&PrivacyMasking.Rect[2]=50&
PrivacyMasking.Rect[3]=100&PrivacyMasking.Mosaic=8 
```

**Resposta:**

```
OK
```

### Redirecionar para Máscara de Privacidade

**Tópico:** Foca ou posiciona uma máscara específica.

* Método: `GET /cgi-bin/PrivacyMasking.cgi?action=gotoPrivacyMasking`

**Exemplo:**

```http
http://<ip>/cgi-bin/PrivacyMasking.cgi?action=gotoPrivacyMasking&channel=2&index=3 
```

**Resposta:**

```
OK
```

### Excluir Máscara de Privacidade

**Tópico:** Excluir máscara de privacidade.

* Método: `GET /cgi-bin/PrivacyMasking.cgi?action=deletePrivacyMasking`

**Exemplo:**

```http
http:/<ip>/cgi-bin/PrivacyMasking.cgi?action=deletePrivacyMasking&channel=2&index=3 
```

**Resposta:**

```
OK
```

### Limpar Máscara de Privacidade

**Tópico:** Remove todas as máscaras do canal.

* Método: `GET /cgi-bin/PrivacyMasking.cgi?action=clearPrivacyMasking`

**Exemplo:**

```http
http://<ip>/cgi-bin/PrivacyMasking.cgi?action=clearPrivacyMasking&channel=2 
```

**Resposta:**

```
OK
```

### Obter Máscara de Privacidade&#x20;

**Tópico:** Retorna os dados reais de uma máscara retangular.

* Método: `GET /cgi-bin/PrivacyMasking.cgi?action=getRealRec`t

**Exemplo:**

```http
http://<ip>/cgi-bin/PrivacyMasking.cgi?action=getRealRect&channel=2&index=1 
```

**Resposta:**

```
OK
```

### Obter Configurações de Detecção de Movimento

**Tópico:** Retorna parâmetros de detecção, regiões e ações.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=MotionDetect 1 
```

**Resposta:**

```
table.MotionDetect[0].Enable=false 
table.MotionDetect[0].EventHandler.AlarmOut=1 
table.MotionDetect[0].EventHandler.AlarmOutChannels[0]=0 
table.MotionDetect[0].EventHandler.AlarmOutEnable=true 
table.MotionDetect[0].EventHandler.AlarmOutLatch=10 
table.MotionDetect[0].EventHandler.BeepEnable=false 
table.MotionDetect[0].EventHandler.Dejitter=5 
table.MotionDetect[0].EventHandler.Delay=0 
table.MotionDetect[0].EventHandler.ExAlarmOut=1 
table.MotionDetect[0].EventHandler.ExAlarmOutChannels[0]=0 
table.MotionDetect[0].EventHandler.ExAlarmOutEnable=false 
table.MotionDetect[0].EventHandler.FlashEnable=false 
table.MotionDetect[0].EventHandler.FlashLatch=10 
table.MotionDetect[0].EventHandler.LogEnable=true 
table.MotionDetect[0].EventHandler.MailEnable=false 
table.MotionDetect[0].EventHandler.Matrix=1 
table.MotionDetect[0].EventHandler.MatrixChannels[0]=0 
table.MotionDetect[0].EventHandler.MatrixEnable=false 
table.MotionDetect[0].EventHandler.MessageEnable=false 
table.MotionDetect[0].EventHandler.PtzLink[0][0]=None 
table.MotionDetect[0].EventHandler.PtzLink[0][1]=1 
table.MotionDetect[0].EventHandler.PtzLinkEnable=false 
table.MotionDetect[0].EventHandler.Record=1 
table.MotionDetect[0].EventHandler.RecordChannels[0]=0 
table.MotionDetect[0].EventHandler.RecordEnable=true 
table.MotionDetect[0].EventHandler.RecordLatch=10 
table.MotionDetect[0].EventHandler.Snapshot=1 
table.MotionDetect[0].EventHandler.SnapshotChannels[0]=0 
table.MotionDetect[0].EventHandler.SnapshotEnable=false 
table.MotionDetect[0].EventHandler.TimeSection[0][0]=1 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[0][1]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[0][2]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[0][3]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[0][4]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[0][5]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[1][0]=1 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[1][1]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[1][2]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[1][3]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[1][4]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[1][5]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[2][0]=1 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[2][1]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[2][2]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[2][3]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[2][4]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[2][5]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[3][0]=1 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[3][1]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[3][2]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[3][3]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[3][4]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[3][5]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[4][0]=1 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[4][1]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[4][2]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[4][3]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[4][4]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[4][5]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[5][0]=1 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[5][1]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[5][2]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[5][3]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[5][4]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[5][5]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[6][0]=1 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[6][1]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[6][2]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[6][3]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[6][4]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TimeSection[6][5]=0 00:00:00-23:59:59 
table.MotionDetect[0].EventHandler.TipEnable=false 
table.MotionDetect[0].EventHandler.Tour=1 
table.MotionDetect[0].EventHandler.TourChannels[0]=0 
table.MotionDetect[0].EventHandler.TourEnable=false 
table.MotionDetect[0].EventHandler.Voice.AudioFileName= 
table.MotionDetect[0].EventHandler.VoiceEnable=false 
table.MotionDetect[0].MotionDetectWindow[0].Id=0 
table.MotionDetect[0].MotionDetectWindow[0].Name=Region1 
table.MotionDetect[0].MotionDetectWindow[0].Region[0]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[1]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[2]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[3]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[4]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[5]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[6]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[7]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[8]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[9]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[10]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[11]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[12]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[13]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[14]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[15]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[16]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Region[17]=4194303 
table.MotionDetect[0].MotionDetectWindow[0].Sensitive=60 
table.MotionDetect[0].MotionDetectWindow[0].Threshold=5 
table.MotionDetect[0].MotionDetectWindow[0].Window[0]=0 
table.MotionDetect[0].MotionDetectWindow[0].Window[1]=0 
table.MotionDetect[0].MotionDetectWindow[0].Window[2]=8191 
table.MotionDetect[0].MotionDetectWindow[0].Window[3]=8191 
table.MotionDetect[0].MotionDetectWindow[1].Id=1 
table.MotionDetect[0].MotionDetectWindow[1].Name=Region2 
table.MotionDetect[0].MotionDetectWindow[1].Region[0]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[1]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[2]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[3]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[4]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[5]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[6]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[7]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[8]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[9]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[10]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[11]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[12]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[13]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[14]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[15]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[16]=0 
table.MotionDetect[0].MotionDetectWindow[1].Region[17]=0 
table.MotionDetect[0].MotionDetectWindow[1].Sensitive=60 
table.MotionDetect[0].MotionDetectWindow[1].Threshold=5 
table.MotionDetect[0].MotionDetectWindow[1].Window[0]=0 
table.MotionDetect[0].MotionDetectWindow[1].Window[1]=0 
table.MotionDetect[0].MotionDetectWindow[1].Window[2]=0 
table.MotionDetect[0].MotionDetectWindow[1].Window[3]=0 
table.MotionDetect[0].MotionDetectWindow[2].Id=2 
table.MotionDetect[0].MotionDetectWindow[2].Name=Region3 
table.MotionDetect[0].MotionDetectWindow[2].Region[0]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[1]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[2]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[3]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[4]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[5]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[6]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[7]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[8]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[9]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[10]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[11]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[12]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[13]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[14]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[15]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[16]=0 
table.MotionDetect[0].MotionDetectWindow[2].Region[17]=0 
table.MotionDetect[0].MotionDetectWindow[2].Sensitive=60 
table.MotionDetect[0].MotionDetectWindow[2].Threshold=5 
table.MotionDetect[0].MotionDetectWindow[2].Window[0]=0 
table.MotionDetect[0].MotionDetectWindow[2].Window[1]=0 
table.MotionDetect[0].MotionDetectWindow[2].Window[2]=0 
table.MotionDetect[0].MotionDetectWindow[2].Window[3]=0 
table.MotionDetect[0].MotionDetectWindow[3].Id=3 
table.MotionDetect[0].MotionDetectWindow[3].Name=Region4 
table.MotionDetect[0].MotionDetectWindow[3].Region[0]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[1]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[2]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[3]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[4]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[5]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[6]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[7]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[8]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[9]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[10]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[11]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[12]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[13]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[14]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[15]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[16]=0 
table.MotionDetect[0].MotionDetectWindow[3].Region[17]=0 
table.MotionDetect[0].MotionDetectWindow[3].Sensitive=60 
table.MotionDetect[0].MotionDetectWindow[3].Threshold=5 
table.MotionDetect[0].MotionDetectWindow[3].Window[0]=0 
table.MotionDetect[0].MotionDetectWindow[3].Window[1]=0 
table.MotionDetect[0].MotionDetectWindow[3].Window[2]=0 
table.MotionDetect[0].MotionDetectWindow[3].Window[3]=0 
table.MotionDetect[0].OsdTwinkleEnable=false 
table.MotionDetect[0].PirMotionLevel=3 
```

### Definir Configurações de Detecção de Movimento

**Tópico:** Configura regiões, sensibilidade e ações do evento.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&MotionDetect[0].MotionDetectWindo
w[0].Region[0]=1&MotionDetect[0].MotionDetectWindow[0].Region[1]=1&MotionDetect[0].MotionDetect
Window[0].Region[2]=1&MotionDetect[0].MotionDetectWindow[0].Region[3]=1&MotionDetect[0].Motion
DetectWindow[0].Region[4]=1&MotionDetect[0].DetectVersion=V3.0  
```

**Resposta:**

```
OK
```

### Obter Configuração de LAEConfig

**Tópico:** Retorna parâmetros avançados de aprimoramento de imagem.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=LAEConfig 
```

**Resposta:**

```
table.LAEConfig.Enable=true 
table.LAEConfig.ManulEn=1 
table.LAEConfig.YSIGMA =1 
table.LAEConfig.Dethr =1 
table.LAEConfig.STS =1 
table.LAEConfig.GauFilter0=1 
table.LAEConfig.GauFilter1=1 
table.LAEConfig.GauFilter2=1 
table.LAEConfig.UVGauFilter0=1 
table.LAEConfig.UVGauFilter1=1 
table.LAEConfig.UVGauFilter2=1 
table.LAEConfig.UVSigma =1 
table.LAEConfig.EEGauFilter0=1 
table.LAEConfig.EEGauFilter1=1 
table.LAEConfig.EEGauFilter2=1 
table.LAEConfig.EEratio =1 
table.LAEConfig.GEnable =1 
table.LAEConfig.GainLevel =1 
table.LAEConfig.DebugPin =1
```

### Definir Configuração de LAEConfig

**Tópico:** Ajusta os parâmetros de aprimoramento de imagem.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&LAEConfig.Enable=true& 
LAEConfig.ManulEn=1 
```

**Resposta:**

```
OK
```

### Ativar/Desativar Todas as Capas de Máscara de Privacidade

**Tópico:** Ativar/Desativar todas as capas de máscara de privacidade

* Método: `GET /cgi-bin/PrivacyMasking.cgi?action=setPrivacyMaskingEnable`

**Exemplo:**

```http
http://<ip>/cgi-bin/PrivacyMasking.cgi?action=setPrivacyMaskingEnable&channel=2&Enable=
true 
```

**Resposta:**

```
OK
```

### Obter Estado de Ativação/Desativação de Todas as Coberturas de Máscara de Privacidade

**Tópico:** Obter estado de ativação/desativação de todas as coberturas de máscara de privacidade

* Método: `GET /cgi-bin/PrivacyMasking.cgi?action=getPrivacyMaskingEnable`

**Exemplo:**

```http
http://<ip>/cgi-bin/PrivacyMasking.cgi?action=getPrivacyMaskingEnable&channel=2 
```

**Resposta:**

```
Enable=false 
```

### Obter Parâmetros Intrínsecos

**Tópico:** Retorna parâmetros de calibração interna da câmera (intrinsics).

* Método: `POST /cgi-bin/api/devVideoInput/getIntrinsics`

**Exemplo:**

```powershell
{ 
    "Channel": 0 
} 
```

**Resposta:**

```powershell
{ 
    "Intrinsics" : { 
  "Fx": 0, 
  "Fy": 0, 
  "Cx": 0, 
  "Cy": 0, 
  "K1": 0, 
  "K2": 0, 
  "K3": 0, 
  "P1": 0, 
  "P2": 0 
    }  
}
```

### Obter Estado Completo de Codificação

**Tópico:** Verifica o estado geral do sistema de codificação do dispositivo.

* Método: `POST /cgi-bin/api/encode/getWholeState`

**Exemplo:**

```powershell
{} 
```

**Resposta:**

```powershell
{ 
    "state": true 
} 
```

***

Notas finais:

* Os endpoints apresentados utilizam **HTTP CGI e APIs REST híbridas**, exigindo atenção ao método (GET/POST) e ao formato dos parâmetros.
* Algumas configurações exigem **reinicialização do stream ou do dispositivo** para que as alterações entrem em vigor.
* Para integrações robustas, implemente **logs detalhados**, facilitando diagnóstico e auditoria.

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://portal-integracao.intelbras.com.br/cameras-and-gravadores/integracao-api-cftvip-e-mibo/cameras-e-gravadores/atributos-de-video.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
