Amcrest HTTP API V3.26 가이드에 따른 카메라 제어 주요 API 요약임.
카메라의 실시간 영상을 요청할 때 사용하며, RTSP 프로토콜(기본 포트 554)을 이용함.
rtsp://<server>:<port>/cam/realmonitor?channel=<channel>&subtype=<type>
카메라의 방향 및 배율을 조절함.
http://<ip>/cgi-bin/ptz.cgi?action=start&channel=1&code=<Code>&arg1=0&arg2=<Speed>&arg3=0
`
http://<ip>/cgi-bin/ptz.cgi?action=start&code=GotoPreset&channel=1&arg2=<PresetID>
`
http://<ip>/cgi-bin/ptzBase.cgi?action=moveDirectly&channel=1&startPoint[0]=<x>&startPoint[1]=<y>...
`
렌즈의 초점과 미세한 배율을 조절함.
http://<ip>/cgi-bin/devVideoInput.cgi?action=adjustFocus&focus=<val>&zoom=<val>
`
http://<ip>/cgi-bin/devVideoInput.cgi?action=autoFocus&channel=1
`
카메라의 화질과 출력 방식을 변경함.
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoColor[0][0].Brightness=50
`
`http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoImageControl[0].Flip=true`
`http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoInDayNight[0][0].Mode=Auto`
현재 화면을 JPEG 이미지로 캡처함.
`http://<ip>/cgi-bin/snapshot.cgi?channel=<channel>`
오디오 채널 확인 및 볼륨을 조절함.
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&AudioOutputVolume[0]=80
http://<ip>/cgi-bin/audio.cgi?action=getAudio&channel=1