In this guide we will show how to set the IPC MJPEG stream via HTTP commands on Hikvision IP cameras. Many network-enabled cameras provide M-JPEG streams that network clients can connect to Mozilla and Webkit-based browsers have native support for viewing these M-JPEG streams. Some network-enabled cameras provide their own M-JPEG interfaces as part of the normal feature set. This technique works for the Hikvision IP cameras that run on firmware version 4.1 and above
Steps to get the IPC MJPEG Stream via HTTP Commands on Hikvision IP cameras
Step 1. Configure video stream. HTTP commands (to get stream) are only available under Sub stream. Go to Configuration > Video/Audio> Video, set the Stream Type as Sub-stream and Video Encoding as MJPEG. Resolution can be adjusted according to your needs.
Step 2. Get the IPC MJPEG stream on Firefox or Chrome. HTTP commands are only available on Firefox or Chrome browser.
HTTP without Authentication
http://[IP address of IPC]:[HTTP port]/ISAPI/Streaming/channels/102/httpPreview
HTTP with Authentication
http://[username]:[password]@[IP address of IPC]:[HTTP port]/ISAPI/Streaming/channels/102/httpPreview
Snapshot using HTTP URL
http://[IP address of IPC]:[HTTP port]/ISAPI/Streaming/channels/1/picture
Examples
http://10.9.97.33/ISAPI/Streaming/channels/102/httpPreview
http://admin:abcd1234@10.9.97.33/ISAPI/Streaming/channels/102/httpPreview
http://10.9.97.33/ISAPI/Streaming/channels/1/picture
Note: If the HTTP port of the device is still 80 (default), then “:[HTTP port]” is not required.