Return to site

Rtsp Stream Hikvision Camera

broken image


  1. Hikvision Rtsp Stream Vlc
  2. Hikvision Nvr Rtsp Url

Almost IP surveillance cameras support RTSP video stream, that means user can use media player to watch the live video from anywhere. RTSP is the abbreviation of real time streaming protocol, it's a network control protocol designed for use in entertainment and communications systems to control streaming media servers. The protocol is used for establishing and controlling media sessions between end points. This article describes how to play RTSP video stream of IP cameras on VLC player, QuickTime player, and a mobile phone with popular IP camera viewer App.

  1. We're asked quite frequently what the RTSP URLs are for Hikvision cameras, in order to use a program like VLC to decode the stream directly from the camera, or perhaps to instead embed the stream into a web page. Many VMS programs require you manually add the RTSP stream from the camera, in which case you'll need to know Hikvision's RTSP format.
  2. HIKVISION EUROPE B.V. European Technical Support Hotline +70 HIKVISION Camera URL User Guide.

VLC player and QuickTime player are free media players that support cross-platforms (Windows OS, Mac OS), these two media players have capability to play most multimedia files and various streaming protocols.

Users can use VLC player and QuickTime player to watch live video/image, also view the information of codec detail for MJPEG/MPEG4/H.264 which supports RTSP protocol.

I am trying to enable sub stream for my cameras connected to my HikVision DS-7608NI-E2 configuration. The aim being to get a URL (not rtsp) that I can paste into a browser or VLC to view an individual camera connected to the NVR.

Additionally, user also can find smartphone App which supports RTSP protocol. Using the Smartphone App, user can watch live video streams easily through smartphone from anywhere, anytime.

#1 Download & Install VLC Player / QuickTime Player

Both media players are free to download, install and use. You can go to the media player official websites to download the latest version software, then install in your computer.

  1. VLC player : Download and install VLC Player from http://www.videolan.org/vlc/
  2. QuickTime player : Download and install QuickTime Player from http://support.apple.com/downloads/#quicktime
  3. IP camera viewer apps which support RTSP streams

#2 RTSP URL Setting

Before using the RTSP protocol, you need to know your IP camera's RTSP URL setting. The URL is an IP address with port and authorization information (user name + password). Lungo 1 6 0 8. All available RTSP URL formats for IP cameras are listed in table below. Please select the suitable one according to model of camera under testing, with 'IP Camera address' being replaced by your dedicated IP address number. If you can't find port information, the default RTSP port number is 554.

Camera
Camera ModelRTSP URL
NCR870/NDF820/NDF821/NDF831/NDR891/NDF8
20PRO/NDF821PRO/NDF831PRO/NDR891PRO/NC
B855PRO/NCR875PRO/NCC800/NCB858/NCR878

rtsp://IP Camera address:8557/h264 for Primary stream
rtsp://IP Camera address:554/mpeg4 for Primary stream
rtsp://IP Camera address:8555/mjpeg for Primary stream
rtsp://IP Camera address:8556/h264 for Secondary stream
rtsp://IP Camera address:8554/mpeg4 for Secondary stream
rtsp://IP Camera address:8558/mjpeg for Third stream

NDR720/NCB750/NCR770/NDR721/NDR722/NCB 752/NCR772/NIC990/SPD970/PTZ900/NCB358/N CB355/NCR368/NCR365/NOD398/NOD395/NOD3 85/NID338/NID335/NID325/NID321/UFD305/UF D301 rtsp://IP Camera address/stream1 for stream1
rtsp://IP Camera address/stream2 for stream2
rtsp://IP Camera address/stream3 for stream3
NCC700/NDZ760rtsp://IP Camera address:554/h264/quad/media.amp
rtsp://IP Camera address:554/mjpeg/quad/media.amp

3# How to play RTSP stream with VLC Player

1. Check current stream and codec setting by IE browser

Setup > Image > Codec
Go to Codec page. Check codec setting on available streams.

2. Check RTSP port setting

Setup > Network > RTSP
Go to RTSP page. Check RTSP port numbers on camera for dedicated stream.

Hikvision
Camera ModelRTSP URL
NCR870/NDF820/NDF821/NDF831/NDR891/NDF8
20PRO/NDF821PRO/NDF831PRO/NDR891PRO/NC
B855PRO/NCR875PRO/NCC800/NCB858/NCR878

rtsp://IP Camera address:8557/h264 for Primary stream
rtsp://IP Camera address:554/mpeg4 for Primary stream
rtsp://IP Camera address:8555/mjpeg for Primary stream
rtsp://IP Camera address:8556/h264 for Secondary stream
rtsp://IP Camera address:8554/mpeg4 for Secondary stream
rtsp://IP Camera address:8558/mjpeg for Third stream

NDR720/NCB750/NCR770/NDR721/NDR722/NCB 752/NCR772/NIC990/SPD970/PTZ900/NCB358/N CB355/NCR368/NCR365/NOD398/NOD395/NOD3 85/NID338/NID335/NID325/NID321/UFD305/UF D301 rtsp://IP Camera address/stream1 for stream1
rtsp://IP Camera address/stream2 for stream2
rtsp://IP Camera address/stream3 for stream3
NCC700/NDZ760rtsp://IP Camera address:554/h264/quad/media.amp
rtsp://IP Camera address:554/mjpeg/quad/media.amp

3# How to play RTSP stream with VLC Player

1. Check current stream and codec setting by IE browser

Setup > Image > Codec
Go to Codec page. Check codec setting on available streams.

2. Check RTSP port setting

Setup > Network > RTSP
Go to RTSP page. Check RTSP port numbers on camera for dedicated stream.

The Default RTSP port number of each camera model can be found in the User Manual.

3. Open Network Stream

Open VLC player and select 'Open Network Stream' from the Media menu.

4. Enter a network URL

Type the network URL in the dialog box below, and then click Play to play the video with RTSP stream. Refer to Sec. RTSP URL Setting above for URL setting format for Messoa IP cameras.

5. Watch Live Stream

After click 'Play', you will see the RTSP live video stream on VLC player.

4# How to play RTSP stream with QuickTime Player

1. Check codec, stream & RTSP port numbers.

Follow steps 1 & 2 in section 'How to play RTSP stream with VLC Player' above to check the codec, stream and port numbers.

2. Open QuickTime Preferences

Edit→Preferences→QuickTime Preferences

Open QuickTime player and select 'QuickTime Preferences' from the Edit menu. Acrobat trackid sp 006.

3. Set Safe Mode

Go to Advanced page. Click 'Safe Mode' and 'OK' for normal video display.

4. Open URL

File→Open URL

Select 'Open URL' from the File menu.

5. Enter URL

Type the network URL in the dialog box below, and then click OK to play the video with RTSP stream.

Refer to Sec. RTSP URL Setting above for URL setting format for IP cameras.

6. View Live Stream

You will see the RTSP live video stream on QuickTime player now.

5# How to play RTSP stream with IP camera viewer apps

1. Download and run app on your smart phone

2. Enter URL

Please refer to Sec. RTSP URL Setting above for URL setting format for Messao IP cameras.

3. Enter Messoa camera's account/password. The default is admin/1234

4. After that, the app can get RTSP video stream from Messoa IP camera.

Get My Latest Posts

Subscribe to get the latest updates.

Your email address will never be shared with any 3rd party.

Why do we need port forwarding?

Most IP cameras operate in the Local Area Network. To make them accessible by a 3rd party vendor, we should apply port forwarding between ports on a static IP and cameras' RTSP stream ports.

Static IP must be accessible by the entity you'll stream to.

Let's say our static IP is 38.142.141.11

What do we need?

  1. An RTSP supported IP Camera - RTSP stands for Real-Time Streaming Protocol.
  2. A static IP on your router - This can be provided by your Internet provider
  3. A port on the provided static IP - Different port for each camera
  4. RTSP Stream URL structure - Different for each brand

How do I configure port forwarding?

  1. Go to the router interface
  2. Open the port forwarding section in the router
  3. Most of the routers' port forwarding panel can be found in this website https://portforward.com/router.htm
  4. Give a name for the description - Warehouse 2 / IP Cam 1
  5. Specify the IP addresses of each camera will be connected. Let's say 192.168.1.11
  6. Set the protocol section TCP/UDP
  7. The external port is the port will be addressed on static IP. So it can be chosen as any empty port on the static IP. Let's say port 5001. So set both external ports as 5001 - 5001
  8. The internal port is the port in which the RTSP stream will be published fromthe IP Camera. Port number 554 is the RTSP stream port for nearly all IP cameras. So let's set 554 - 554 as the Internal Port
  9. Add the forwarding rule to the list

In the end, the port configuration on the port forwarding section of your router will look like this.


Now when you connect 38.142.141.11:5001 the actual address you're reaching will be 192.168.1.11:554

You can use telnet command on your computer's terminal to test if the camera's RTSP port is accessible

Telnet 38.142.141.11 5001

If the response is an escape character the connection is OK. If nothing happens that means there is a problem with

  • the port forwarding
  • or static IP

Hikvision Rtsp Stream Vlc

How do I find my camera's RTSP URL

Hikvision Nvr Rtsp Url

When the telnet response indicates that the RTSP port of the camera is accessible next step is building the RTSP URL for the system we will stream to.

Finding the right RTSP URL structure is the most challenging part because it is different for each brand and model. But don't worry, you can find it in less than 10 minutes with a Google search. Could not find it? You can raise a support ticket to your camera provider or write to us. We're here to help :)

Here are some examples

  • HikVision
    rtsp://admin:admin123@38.142.141.11:5001/Streaming/Channels/101/
  • Bosch
    rtsp://38.142.141.11:5002/rtsp_tunnel

Once the RTSP URL is generated it can be tested with software like on VLC

How do I test my RTSP URL?

  1. Download VLC media player
  2. Open VLC
  3. Click on the File menu
  4. Select Open Network
  5. Paste the generated RTSP URL to the URL textbox
  6. Click Open

The video stream will start in less than 10 seconds

Can I test the RTSP stream via the terminal window?

1. Open your terminal

2. Install FFmpeg

Microsoft or macbook. brew install ffmpeg

3. To test the accessibility run:

ffprobe rtsp://admin:admin@38.142.141.11:5001/Streaming/Channels/101/

4. To play the video stream run:

ffplay -rtsptransport tcp rtsp://38.142.141.11:5002/rtsptunnel

Recommended for you

No posts found

Apparently there are no posts at the moment, check again later.





broken image