How to use http to control the SMTAV camera?

If you want to develop an application, you can use HTTP to control the camera, The URL format is as follow, and request method is GET.

 

HTTP-CGI – Control

Pan and Tilt Control

URL Format:   http://[Camera IP]/cgi-bin/ptzctrl.cgi?ptzcmd&[Action]&[Pan Speed]&[Tilt Speed]

[Action]: up, down, left, right, leftup, rightup, leftdown, rightdown, ptzstop

[Pan Speed]: 1 (Slowest) – 24 (Fastest)

[Tilt Speed]: 1 (Slowest) – 20 (Fastest)

Response: null

 

Zoom Control

URL Format:   http://[Camera IP]/cgi-bin/ptzctrl.cgi?ptzcmd&[Action]&[Zoom Speed]

[Action]: zoomin, zoomout, zoomstop

[Zoom Speed]: 1 (Slowest) – 7 (Fastest)

Response: null

 

Focus Control

URL Format:   http://[Camera IP]/cgi-bin/ptzctrl.cgi?ptzcmd&[Action]&[Focus Speed]

[Action]: focusin, focusout, focusstop

[Focus Speed]: 1 (Slowest) – 7 (Fastest)

Response: null

 

Focus Lock Control

URL Format:   http://[Camera IP]/cgi-bin/param.cgi?ptzcmd&[Action]_mfocus

[Action]: lock, unlock

 Response: null

 

Preset Control

URL Format:   http://[Camera IP]/cgi-bin/ptzctrl.cgi?ptzcmd&[Action]&[Position Number]

[Action]: posset, poscall

[Position Number]: 0 – 89 (Range 1), 100 – 254 (Range 2)

 Response: null

 

Home Position Recall

URL Format:   http://[Camera IP]/cgi-bin/ptzctrl.cgi?ptzcmd&home

 Response: null

 

PT Reset

URL Format:   http://[Camera IP]/cgi-bin/param.cgi?pan_tiltdrive_reset

 Response: null

 

Direct Position Recall Control

URL Format:   http://[Camera IP]/cgi-bin/ptzctrl.cgi?ptzcmd&[Mode]&[Pan Speed]&[Tilt Speed]&[Pan Position]&[Tilt Position]

[Mode]: ABS, REL

[Pan Speed]: 1 (Slowest) – 24 (Fastest)

[Tilt Speed]: 1 (Slowest) – 20 (Fastest)

[Pan Position]: 0001 (First step pan right), 0990 (Last step pan right), FFFE (First step pan left), F670 (Last step pan left down)

[Tilt Position]: 0001 (First step tilt up), 0510 (Last step tilt up), FFFE (First step tilt down), FE51 (Last step tilt down)

 Response: null

 

Direct Zoom Recall Control

URL Format:   http://[Camera IP]/cgi-bin/ptzctrl.cgi?ptzcmd&zoomto&[Zoom Speed]&[Zoom Position]

[Zoom Speed]: 1 (Slowest) – 7 (Fastest)

[Zoom Position]: 0000 (Full wide), 4000 (Full tele)

 Response: null

 

AI Tracking Control(Only BX series tracking camera support)

URL Format:   http://[Camera IP]/cgi-bin/ptzctrl.cgi?post_aimode&[Action]

[Action]: Single_Track, Frame_Track, Demo_Mode, Off

 Response: null

 

HTTP-CGI – OSD Menu

OSD Menu Control

URL Format:   http://[Camera IP]/cgi-bin/param.cgi?navigate_mode&[Mode]

[Mode]: OSD (OSD Open), PTZ (OSD Close)

 Response: null

 

OSD Menu Navigation Control

URL Format:   http://[Camera IP]/cgi-bin/ptzctrl.cgi?ptzcmd&[Action]

[Action]: up, down, left, right

 Response: null

 

OSD Menu Selection Control

URL Format:   http://[Camera IP]/cgi-bin/param.cgi?navigate_mode&[Mode]

[Mode]: CONFIRM, OSD_BACK

 Response: null

 

HTTP-CGI – Image Adjustment

Image Settings Control

URL Format:   http://[Camera IP]/cgi-bin/param.cgi?post_image_value&[Mode]&[Level]

[Mode]: bright, saturation, contrast, sharpness, hue

[Level]: 0 - 14

 Response: null

 

Image Orientation Control

URL Format:   http://[Camera IP]/cgi-bin/param.cgi?post_image_value&[Mode]&[State]

[Mode]:flip, mirror

[State]: 1 (Flip on / Mirror on), 0 (Default)

 Response: null

 

HTTP-CGI – Inquiries

Default Image Settings

URL Format:   http://[Camera  IP]/cgi-bin/param.cgi?get_image_default_conf

Response: Image default configuration

Video

URL Format:   http://[Camera IP]/cgi-bin/param.cgi?get_media_video

Response: Video configuration

Audio

URL Format:   http://[Camera IP]/cgi-bin/param.cgi?get_media_audio

Response: audio configuration

Network

URL Format:   http://[Camera IP]/cgi-bin/param.cgi?get_network_conf

Response: network configuration

Information

URL Format:   http://[Camera IP]/cgi-bin/param.cgi?get_device_conf

Response: deivce configuration

Serial Number

URL Format:   http://[Camera IP]/cgi-bin/param.cgi?get_serial_number

 Response: device serial number

4 comments

  • How to access the images from this??!

    Marcus
  • It´s not working on Camera PV4-10X-SDI.

    Allan Santos Machado
  • Perfect. Helped me a lot

    Tz
  • Hi, I try to use those commands but just returns 404 error, whats happening?

    Bruno

Leave a comment