Using VLC to test camera stream

You may run into issues with a camera connecting or after setting up a camera you may see a red X. You will have to test the camera using VLC media player. This is to test the RTSP stream and make sure it is connecting. If a camera cannot connect using VLC it will give us a better idea of what is going on with the camera.

Navigating to the cameras web interface does not mean that the camera will work. You must test it with VLC because the way the software pulls the stream in is through RTSP on port 554.



1. Open VLC and navigate to the "Media" 


2. Select "Open Network Stream"VLC2.png

3. Enter the Camera specific RTSP stream.vlc3.png

After entering in the URL and pressing Play you should be prompted to put in the cameras Username and Password. If all is successful it will display the RTSP stream. 


When we are testing for packet loss you will select "Tools" and then "Codec Information".



Then select "Statistics". We are looking for the "Lost" packets. This will indicate if the camera is having a bandwidth issue and is dropping packets.vlc.png

 Some Common RTSP URLS:

Dahua RTSP stream (Cameras & NVR)


<ip> - the IP address of the IP Camera.

<port> - the default port is 554. It can be omitted.

<channelNo> - the channel number. It starts from 1.

<typeNo> - the stream type. The <typeNo> of main stream is 0, extra stream 1 is 1, extra stream 2 is 2.

Example URL: rtsp://admin:12345scw@ will bring up substream for channel 1

Hikvision RTSP Stream (NVR)


<address> - DDNS or IP for the system

<port> - RTSP port (typically 554)

<id> - streaming channel - for example “101” would be channel 1 and stream #1 (mainstream). Changing the <id> to 102 would create channel 1 and stream #2. 201 would produce the channel #2 of the NVR and mainstream and 202 would produce channel #2 and substream.

Example: rtsp://

This RTSP stream would mainstream channel 1 on an NVR at

You can also encode credentials into the URL by entering it prior to the IP address - for example.

Example URL: rtsp://admin:12345@ will bring up mainstream for channel 1, where admin is the username and 12345 is the password.

Uniview RTSP Stream (NVR)

rtsp://<ip>:<port>/unicast/c<channel number>/s<stream type>/live

<channel number> - c1 would be channel 1, c2 channel 2, etc

<stream type>: 0 (main stream) or 1 (sub stream)

Example URL: rtsp://admin:12345scw@ will bring up substream for channel 2.

Axis RTSP Stream


Example URL rtsp://



Example URL rtsp://192.168.1.

Avigilon RTSP Stream

http://<username>:<password>@<generated RTSP Stream URI>/

Avigilon RTSP streams must be generated in the web UI of the camera under compression and image rate.

Samsung / Hanwha Techwin Camera RTSP Stream


<no> - stream type either 1 for mainstream or 2 for substream

Example URL: rtsp://admin:12345@ will bring up mainstream for a camera on

Swann camera RTSP Stream

rtsp://admin:password@ip_address:554/ch01/0 where 0 = mainstream and 1 = substream

Note: Swann uses various lines of hardware and software and RTSP streams. You may have to contact support for your specific model. They sometimes use the Hikvision APIs

Arecont Vision RTSP Stream


Example URL: rtsp://

Samsung / Hanwha Techwin NVR RTSP Stream


Note: LiveChannel/0/ where “0” equals the channel number. Channels start at 0.

Stream Example: rtsp://

Pelco RTSP stream

For Sarix models rtsp://<camera ip address>/stream1

Example URL - rtsp://


Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request