Follow

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" 

VLC1.png

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".

vlc2.png

 

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)

rtsp://<username>:<password>@<ip>:<port>/cam/realmonitor?channel=<channelNo>&subtype=<typeNo>

<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@192.168.1.210:554/cam/realmonitor?channel=1&subtype=1 will bring up substream for channel 1


Hikvision RTSP Stream (NVR)

rtsp://<address>:<port>/Streaming/Channels/<id>

<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://192.168.1.210:554/Streaming/Channels/101

This RTSP stream would mainstream channel 1 on an NVR at 192.168.1.210.

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

Example URL: rtsp://admin:12345@192.168.1.210:554/Streaming/Channels/101 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@192.168.1.210/unicast/c2/s2/live will bring up substream for channel 2.


Axis RTSP Stream

rtsp://ip-addr/axis-media/media.amp

Example URL rtsp://192.168.1.210/axis-media/media.amp


ACTI RTSP Stream

rtsp://ip-addr/

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

rtsp://user:password@<DeviceIP>:port/profile<no>/media.smp

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

Example URL: rtsp://admin:12345@192.168.1.210:554/profile1/media.smp will bring up mainstream for a camera on 192.168.1.210


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

rtsp://ip-addr/h264.sdp

Example URL: rtsp://192.168.1.210/h264.sdp


Samsung / Hanwha Techwin NVR RTSP Stream

rtsp://<DeviceIP>:port/LiveChannel/0/media.smp

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

Stream Example: rtsp://192.168.1.210:554/LiveChannel/0/media.smp


Pelco RTSP stream

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

Example URL - rtsp://192.168.1.210/stream1

 

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

Comments