RTSP video streaming to VLC

Now let’s see how to organize VLC RTSP broadcast. Here you also need to refer to the settings when choosing a video device.

  • Launch the media player, select the menu item “Media”, “Open capture device.”.

connect, camera, rtsp

  • Open the “File” tab, click on the “Add.” button, select the video file that you want to broadcast through the dialog box.
  • After selecting the media file, click the arrow next to the “Play” button and select the “Stream” command.
  • In the window that appears, familiarize yourself with the information on the work of the “wizard” and click the “Next” button.
  • Indicate “RTSP” opposite the “New value” inscription. Select “Add”.
  • In the dialog box that opens, it is recommended to leave the default streaming options. Click the continue button.
  • On the next page, leave the transcoding settings as they are and proceed to the next step.
  • Additional broadcast settings (ffmpeg) are configured here. The data is written in the output line to generate the stream. These are codecs, transmission channels and other properties. Click on the “Stream” button to start the video broadcast.
  • If everything is done correctly, the video will start streaming from the specified source.

In the same way, you can connect to the broadcast from another PC. You only need to know the IP address of the computer. You can broadcast several files at once, in turn. Multimedia transfer is available not only from a file, but also from an ipcamera device, microphone, DVR or just a monitor screen.

Note. You cannot rewind or pause video in live streaming.

Watching live streams in VLC over RTSP

VLC Media Player works with any DVR and webcam. In order to view VLC RTSP stream from a camera on a personal computer, you need to configure a media player. All actions are performed according to the following instructions.

  • Open the VLC player, select the “Tools” menu section, then the “Settings” item.
  • Go to the “Input / Codecs” tab by clicking the icon at the top right.
  • Select the section “Media” in the menu, then the item “Open URL.”.
  • In the field for specifying the network address, enter the parameters for connecting to the video recording device. The network parameters must be checked with the equipment manufacturer.

After clicking the Play button, the video from the camera or recorder will start streaming. It is also possible to use the HTTP protocol to transmit or receive a video stream. In this case, you will need to have a static IP address for your personal computer. It can be registered in the local network settings. This is usually IPv4. After specifying the correct address, the organization of the HTTP stream in VLC will become available from the Internet provider’s network.

Sample RTSP Request

VLC MediaPlayer can be connected to IP cameras over LAN or wireless. An example of a VLC player’s RTSP call to a video camera or server might look like this. rtsp: // boss: psw @ 172.27.0.60: 582 / cam1.sdp

  • boss. username (login);
  • pass. password;
  • 27.0.60. IP-address of the camera in the LAN or Wi-Fi network;
  • 582. port number for RTSP protocol;
  • cam1. video stream from webcam.

This request is used to address the D-link DSC-2103 WEB-camera. The computer requests information from the video device via RTSP, recorded in a file named “cam1.sdp”. If you want to receive another video stream from the same camera, then “cam1.dsp” in the request changes to “cam2.dsp”. The request to the Polyvision DVR will look differently: rtsp: // 172.27.0.162: 592 / usr = admpass = qwe321channel = 1stream = 1.sdp? Real_stream

  • channel = 1. channel number for data transmission;
  • 1. the number of the video stream (in this case, the second stream).

Important! When you pass the login and password in the parameter string, they remain in the cache on the server. This data can be intercepted. Therefore, for an RTSP request, it is recommended to use an account (login / password) without administrative rights.

VLC. how to watch RTSP stream from the camera

To enable VLC RTSP streaming, you first need to configure your media player. Playback and capture of an RTSP stream are in demand in security systems where round-the-clock video surveillance is organized. From the VLC player to the IP camera, you can send instruction commands to control the video recording. Let’s find out what you need to configure and how RTSP works in a media player.

READ  Connecting An IP Camera To A Router

VLC. how to watch RTSP stream from the camera

RTSP (RealTimeStreamingProtocol) is a video streaming protocol. The commands described by him are able to tell the camcorder different actions: stop, broadcast data, change the mode, write / read speed, access in time to files on the server. The labeling of the IP camera or DVR may indicate “RTP” or “UDP”. This is the designation of the video transmission mechanism. This type of shooting can be organized:

  • through a local network;
  • via Wi-Fi wireless technology.

Comment. Each video recorder manufacturer has a different kind of RTSP request. This data must be checked with the manufacturer of the device.

Checking the RTSP stream

To check if the broadcast has started successfully, you can use any other media player, or just another VLC. The player must be able to receive streaming video.

  • Launch the second player (here VLC). Select the “Open URL.” item and the “Media” section of the menu.
  • Enter in the window that appears the local IP address of the computer, port, path and the “rtsp: //” prefix at the beginning of the line. Press the broadcast play button.

To organize streaming RTSP broadcasting from a video camera, PC or other device, you only need to know the IP address, as well as how to open or transmit the broadcast. If the address of the device is unknown, you can use any search engine. In the search bar, enter the query “my IP address” and get the result.

A prerequisite for streaming RTSP via VLC is that the camera and PC must be on the same local network. The video stream can be displayed on a TV screen or broadcast from a camcorder to a web resource.

How video transmission from IP cameras works

The IP camera captures video and broadcasts it in real time over a closed channel. The channel can be accessed using specialized programs using the RTSP link to the camera video stream.

Method 2: Using online services

Select the desired camera from the list on the site.

Fill out the form, indicating the external IP-address, network port, username and password of the camera.

Do not pass on the data to receive the RTSP link or the link to the video stream to third parties.

When generating an RTSP link, we recommend that you specify incorrect data and change it to correct after generation. Thus, you will protect yourself from interception of links to the stream by third-party services or keyloggers.

Click Generate. You will receive a link to your video stream. If necessary, replace the incorrect data in the link with correct ones.

You can check the operation of the RTSP link through the VLC media player or any player with the ability to view streaming video.

IP Address Reservation Process:

Connect the power cable and the network cable of the router to the camera.

Write in the address bar of your browser the IP address of your router to go to its settings.

vMix Input Tutorials- Stream Input. How to add an IP Camera to vMix via RTSP.

The IP address of the router may depend on both the network settings and the model of the network equipment. As a rule, the IP address is listed in the documentation of your router (most often it is 192.168.0.1 or 192.168.1.1). You can also find it from a computer or laptop connected to your network.

When entering the settings, the router will ask for a username and password. They are indicated in the instructions, on the box or case of the device.

Go to DHCP settings. If DHCP is disabled, enable the function and reboot the router.

Go to DHCP Client List. You will see a list of devices connected to the router. In it you need to identify your camera and copy its MAC address.

In most cases, the camera is signed by Unknown or has the name of the model or brand of the manufacturer.

READ  Ip camera does not connect to WI-FI

Go to the Address Reservation menu and click Add New. Paste the MAC address of the camera and give it an IP address. To avoid IP address conflicts, we recommend that you reserve the IP address for the camera that was automatically assigned to it by the router. Please note that when connecting multiple cameras, you must reserve an IP address for each of them.

Reservation of the IP address is necessary so that the IP address of the camera does not change after reconnecting it or restarting the router.

Reboot or reconnect the IP camera to the router. It now has a static IP address within your network.

Frequently asked Questions

How to set up network equipment

Although the setup process is similar for many routers, the parameter and setting names may vary from manufacturer to manufacturer. Please read the hardware instructions before proceeding with the setup. In the article, the camera will connect to a TP-Link router (model: TL-WR842N, firmware version: 150921).

If you are connecting an IP camera inside a corporate network, contact your system administrator. He will help with the setup.

How to get an RTSP link to a video stream

There are two ways to get an RTSP link to a video stream:

How to Get the RTSP URL from IP Cameras (Free Software)

Example RTSP link for Hiseeu camera:

  • rtsp. protocol type
  • admin. Hikvision account login
  • 12345. Hikvision account password
  • 192.168.0.254:554. camera IP address
  • 544. RTSP camera port

We connect IP cameras using the Onvif or RTSP protocols

We connect IP cameras using the Onvif or RTSP protocols

ONVIF is a generally accepted protocol for interoperability of IP cameras, NVRs, software, in case all devices are from different manufacturers.

In turn, RTSP is a real-time streaming protocol that describes commands for controlling a video stream. Using these commands, the video stream is broadcast from the source to the recipient, for example, from an IP camera to a video recorder or server.

We are often asked how to connect a camera using one protocol or another? We will try to answer this question.

Often there is a problem when it is not possible to connect an IP camera to the NVR? because it is not on the compatibility list.

the way out of this situation is simple. the connection is carried out according to the above protocols
ONVIF or RTSP.

So, to connect via ONVIF, you need to make sure that the connected devices support this protocol, because on some devices ONVIF can be disabled by default or authorization for this protocol can be disabled.

This means that the login and password will always be the default, regardless of the login and password for WEB.

Some devices use a separate port for ONVIF operation. It also happens that ONVIF has a password that is different from the password for WEB access.

When connected via ONVIF, the following are available:

These parameters depend on the compatibility of the ONVIF protocol versions. In some cases, some of the parameters are unavailable or work incorrectly.

Let’s analyze an example of connecting an OMNY PRO camera to an SNR and Dahua DVR using ONVIF.

In SNR and Dahua registrars, ONVIF protocol is located on the Remote Device tab, Manufacturer line. Select the channel to which the device will be connected.

From the Manufacturer tab, select ONVIF and specify the IP address of the device, while the RTSP port remains by default.

OMNY PRO cameras use ONVIF port 8080, in the registrar it is indicated as an HTTP port (since 2017, on new ONVIF models, the port has been changed to 80 for the Alpha, Mira series). OMNY Cameras Base use ONVIF port 80, in the registrar it is indicated as the HTTP port.

Name according to device parameters

Password according to device parameters

Remote channel by default 1. If the device is multichannel, the channel number is indicated.

Decoder Buffer. video stream buffering with time value

Server type there is a choice of TCP, UDP Schedule

TCP. establishes a connection between the sender and the receiver, makes sure that all data reaches the addressee unchanged and in the desired sequence, also adjusts the transmission speed.

READ  Connect Camcorder To Phone Via Wi-Fi

Unlike TCP, UDP does not establish a preliminary connection, but instead just starts transmitting data. UDP does not monitor that data is received, and does not duplicate it in the event of loss or error. UDP is less reliable than TCP. But on the other hand, it provides faster streaming due to the lack of retransmission of lost packets.

Schedule. automatic type detection.

This is what connected devices look like in Dahua

green status means DVR and camera are connected successfully

red status means there is a connection problem. For example, the connection port is incorrect.

If you cannot connect the IP camera to the software or NVR via ONVIF, you need to make sure the following are correct:

  • ONVIF port, it often differs from 80. Its value is usually indicated in the passport or in the WEB of the network camera. For example, OMNY PRO has 8080, OMNY Base 80
  • Login and password. Some cameras have the option to disable authentication for ONVIF. And some always use the default login-password, despite the fact that you have changed them and use to enter the WEB.
  • Case sensitivity. OMNY NVR adds IP cameras as Admin / Admin by default, which is the same for OMNY PRO IP cameras. But if you add an OMNY Base IP camera, you must change the username / password to admin / admin
  • Make sure the software or NVR supports the installed codec. For example, H265 codec is not supported by all software.

To check the correctness of the ONVIF parameters of cameras (excluding software and NVR), you can use the independent software ODM (Onvif device manager).

When the camera is connected via RTSP (Real Time Streaming Protocol), only video data transmission and audio data reception and transmission are available.

The advantage of this transfer protocol is that it does not require version compatibility. Today almost all IP cameras and NVRs support RTSP.

The disadvantage of the protocol is that apart from the transmission of video and audio data, nothing else is available.

Let’s analyze an example of connecting an OMNY PRO camera to an SNR and Dahua DVR using RTSP.

The RTSP is located on the Remote Device tab, Manufacturer line, in the SNR registrar and Dahua it is represented as General. Select the channel to which the device will be connected

URL Addr. here we enter a query string by which the camera sends the main RTSP stream with high resolution.

Extra URL. here we enter a query string by which the camera sends an additional RTSP stream with low resolution.

On a local monitor connected to the recorder in a multi-picture, the recorder uses an additional stream to save resources. For example, in small pictures with 16 windows, it is not at all necessary to decode Full HD resolution, D1 is enough. Well, if you have opened 1/4/8 windows in this case, the main stream with high resolution is decoded.

Name according to device parameters

Password according to device parameters

Decoder Buffer buffering video stream with time value

Server type. TCP, UDP, Schedule (similar to ONVIF protocol)

We hope this article will help you connect IP cameras to DVRs using these protocols.

We remind you that since 2010 our company “We’ll Record Everything” has been designing, installing, maintaining and repairing video surveillance systems and video intercoms and the Moscow region.

We work quickly, efficiently and at affordable prices. You can see the list of services and for them here.

Call 7 (499) 390-28-45 from 8-00 to 22-00 any day of the week, including weekends. We will be happy to help you!