First, the home automation system requirements need to be considered. Either H.264 or MJPG are available from the IC Realtime equipment. As of this writing, some home automation companies are able to use H.264, but most home automation systems still utilize MJPG streams.
H.264 setup:
We can use the following command to test the device feed. Change the IP address and test the string with something like VLC.
Change the IP address and port to match the camera/recorder.
Main Stream:
- rtsp://<Username>:<Password>@<IP Address>:<Port>/cam/realmonitor?channel=1&subtype=0
- Example: rtsp://192.168.1.108:554/cam/realmonitor?channel=1&subtype=0
IPC with credentials included:
- rtsp://<username>:<password>@<ip_add>:<rtsp_port>/cam/realmonitor?channel=1&subtype=0
- Example: rtsp://admin:admin123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0
Recorder with credentials included:
-
rtsp://<ip_add>:<rtsp_port>/cam/realmonitor?channel=1&subtype=0&authbasic=YWRtaW46YWRtaW4=
-
Example: rtsp://192.168.1.108:554/cam/realmonitor?channel=1&subtype=0&authbasic=YWRtaW46YWRtaW4=
-
Example: rtsp://192.168.1.108:554/cam/realmonitor?channel=1&subtype=0&authbasic=YWRtaW46YWRtaW4=
Extra Stream:
- rtsp://<ip_add>:<rtsp_port>/cam/realmonitor?channel=1&subtype=1
- Example: rtsp://192.168.1.108:554/cam/realmonitor?channel=1&subtype=1
The subtype= is the stream. 0 for main, or 1 for extra.
The channel= is the channel #. In IPCs, the # will always be 1.
The authbasic= is the username:password in base64
(E.g. admin:admin converts to YWRtaW46YWRtaW4=)
MJPG setup:
We can use the following command to test the device feed.
Note: on some cameras, you must manually set the encoding setting to MJPEG for the appropriate stream.
- http://<ip_add>:<http_port>/cgi-bin/snapshot.cgi
- http://<ip_add>:<http_port>/cgi-bin/mjpg/video.cgi?subtype=1
The subtype= is the stream. 0 for the main stream, or 1 for extra.
The command should stream the second/ extra stream in MJPEG. If the main stream changes to MJPG, the firmware needs to be updated.
Snapshots:
The following CGI command is used to retrieve the camera snapshot.
http://<ip_add>:<http_port>/cgi-bin/snapshot.cgi
-
Example: http://192.168.1.199:8080/cgi-bin/snapshot.cgi
- OR: http://192.168.1.199/cgi-bin/snapshot.cgi
Comments
0 comments
Please sign in to leave a comment.