Skip to content

Legacy IP Camera and NVR RTSP / API protocols

GenIV Technology IP Camera Firmware Requirements for Video Streaming in Home-automation products:
Cameras with Ambarella chipset(A) – Firmware date 4-29-2014 or later  (onvif 2.2 + preferrred)
Cameras with Texas Instruments chipset(TI) – General
Cameras with HiSilicone chipset (HS) - Software 2.420.0000.0.R 

( firmware verification can be done logging into your camera thru webbrowser such as Firefox > Setup >information >Version)

All following commands can be tested and verified in VLC Media Player by going to
Media>>Open Network Stream  and entering the URL string with the the appropriate IP address, port, username/password.

Preferred URL string to be used for streaming video(utilizes H.264 video compression)

rtsp://cameraIP:RTSP port/cam/realmonitor?channel=1&subtype=1
Example
rtsp://192.168.1.108:554/cam/realmonitor?channel=1&subtype=1

Also,

RTSP://192.168.x.x:PORT/cam/realmonitor?channel=1&subtype=0&authbasic=YWRtaW46YWRtaW4=
Example
RTSP://192.168.1.108:554/cam/realmonitor?channel=1&subtype=0&authbasic=YWRtaW46YWRtaW4=

Notes:
You can replace YWRtaW46YWRtaW4=  with your username and password of camera in "admin:admin" style format;

YWRtaW46YWRtaW4 = admin:admin password in linux base64

Subtype=0 for mainstream
Subtype=1 for substream
Port for h.264 is 554, port for mjpeg is 80

Alternative URL strings ( works with URC (Universal Remote Control URC ) )

http://{USERNAME}:{USERPASS}@{CAM_ADDR}:{CAM_PORT}/cgi-bin/video.cgi?channel=0

Example
http://admin:admin@192.168.1.108:80/cgi-bin/video.cgi?channel=0

*Note replace the brackets {} along with inside text ­
Example {USERNAME}:{USERPASS} = admin:admin

Alternative format MJPEG URL stream to be used for streaming video in Home-automation

http://{USERNAME}:{USERPASS}@{CAM_ADDR}:{CAM_PORT}/cgi-bin/mjpg/video.cgi?channel=0&subtype=0

Example http://admin:admin@192.168.1.108:80/cgi-bin/mjpg/video.cgi?channel=0&subtype=0

String Configurations:
Subtype=0 = main stream
Subtype=1 = sub stream

Pulling IP camera feed from the NVR
http://192.168.1.xx/cgi-bin/mjpg/video.cgi?channel=0  

channel=0    means camera 1.
Channel=1  means camera 2 ad so no on.
replace XX with your NVR IP address.

You may have to manually enter the username password.

PTZ Control Integration Commands:

UP: http://192.168.1.xx/cgi-bin/ptz.cgi?action=start&channel=0&code=Up&arg1=0&arg2=1&arg3=0

DOWN:http://192.168.1.xx /cgi-bin/ptz.cgi?action=start&channel=0&code=Down&arg1=0&arg2=1&arg3=0

LEFT:http://192.168.1.xx /cgi-bin/ptz.cgi?action=start&channel=0&code=Left&arg1=0&arg2=1&arg3=0

RIGHT: http://192.168.1.xx/cgi-bin/ptz.cgi?action=start&channel=0&code=Right&arg1=0&arg2=1&arg3=0

STOP: http://192.168.1.xx/cgi-bin/ptz.cgi?action=stop&channel=0

Changing compression mode, switching between h.264 and mjpg, please use string below:

http://ip/cgi-bin/configManager.cgi?action=setConfig&Encode[0].MainFormat[0].Video.Compression=H.264

MainFormat is main stream while ExtraFormat is sub stream.  H.264 or MJPG for the last field.

Troubleshooting:
Distorted image quality when using MJPEG (http strings)?
Increase the bitrate by opening a browser window and typing your cameras ip address.
suggested bandwidth for 2megapixel 8-10 mbps
suggested bitrate for 3megapixel 16mbps

NVR crashing -
Username:password  included in the URL string is NOT supported yet. Next firmware update will include this.
You maybe using an older firmware, contact technical support for latest firmware.

Slow response time and strained network in home-automation projects.
These are due to a variety of factors. Slow response times are mainly and most typically due to the home-automation companies end. H.264 is highly preferred over MJPEG due to a lower compression capability which bogs the network down less.   When possible, always try to avoid MJPEG streams to reduce your bandwidth.

Internet explorer
IE does not support MJPEG streaming. It wants to download the stream instead of stream it. This is beyond our control. GenIV technology recommends using Firefox Web browser for web browser streaming.

lasted updated 12/01/2014