Diva Rtsp-Api 2.2
Diva Rtsp-Api 2.2
Diva Rtsp-Api 2.2
Contents
1 End user license agreement
2 Introduction
2.1 Real Time Streaming Protocol(RTSP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3
3
3 Functionality
3.1 Video playback . . . . . .
3.1.1 Live video . . . . .
3.1.2 Video on-demand
3.1.3 Authentication . .
3.1.4 Transcoding . . . .
4
4
6
6
6
7
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Chapter 1
Chapter 2
Introduction
2.1
The RTSP protocol is an open protocol which facilitates the transfer of audio and video over an IP network.
In order to make Diva video available through RTSP, the RTSP plugin is required. This plugin can supply live
and on-demand video through an RTSP interface.
This user manual describes the use and the functionality of the Diva RTSP plugin. Usage of this plugin requires
a minimum of 1 Diva management server to be available within the network.
Chapter 3
Functionality
When the plugin is active, an RTSP stream can be initiated from several media players through a customized
URL. The arguments within this URL sets the way in which the video is transmitted.
3.1
Video playback
Figure 1: Server ID, Description and IP Address. (Server tab, Diva Client)
Within the boundaries of the given example, both of the following URLs would be valid (since it supports both
the server id and description):
rtsp://192.168.202.106/wksztmthkok?device=37
rtsp://192.168.202.106/14279157275533708956?device=37
3.1.1
Live video
The given example will play live video using the RTSP protocol.
3.1.2
Video on-demand
In order to play recorded video, the timestamp argument can be added to the RTSP URL. This argument identifies from which point in time playback needs to commence. The date and time are formatted in a specific way:
year (4 digits); month (3 digits); day (2 digits); hour (2 digits); minute (2 digits); second (2 digits); millisecond (3
digits, optional)
By this notations, the following 2 timestamps are formatted correctly:
20130226181722 (26-2-2013 18:17:22)
20130226181722455 (26-2-2013 18:17:22.455)
In addition, the following operators can be used combined with the argument:
=
Commences playback on exactly the given date and time.
=>
Commences playback on the first available data after the given date and time.
=<
Commences playback on the last available data before the given date and time.
rtsp://192.168.202.106/wksztmthkok?device=37×tamp=>20130226181722 plays video from camera 37
from 26-2-2013 18:17:22 or later.
3.1.3
Authentication
After initiating an RTSP stream, the server will require a username and password. These are identical to
those within Diva, please note that the Diva user needs to have sufficient permission for the camera which is
requested. Please refer to the Diva user manual for more information. Both the username and password are
case-sensitive.
Figure 3 illustrate the login procedure within VLC media player.
3.1.4
Transcoding
The supplied video can be trancoded. In that case the video will always be supplied in JPEG format, and can
be adjusted for the required height and width, if specified.
This can be accomplished by combining the transcode (do or do not transcode), width (videowidth) and height
(videoheight) arguments within the URL.
Whether to do or do not transcode is identified by the server using a 0 (do not) or 1 (do) value. The videos
height and width are given in pixels. For example:
rtsp://192.168.202.106/14279157275533708956?device=37×tamp=20130226181722
&transcode=1&width=250&height=125
This URL initiates a videostream on server 14279157275533708956 (IP address 192.168.202.106) of device
37 on exactly 26-2-2013 18:17:22, transcoded to JPEG with a width of 250 pixels and a height of 125 pixels.
VDG Security BV
Radonstraat 10
2718 TA Zoetermeer
The Netherlands
P+31 (0)79 363 81 11
F+31 (0)79 363 81 18
info@vdgsecurity.com
sales@vdgsecurity.com
support@vdgsecurity.com
Chamber of Commerce
30191139 (The Hague)
VAT Number
NL.8124.25.017.B01