Professional Documents
Culture Documents
Manual Video-Service
Manual Video-Service
UgCS 2.9.929
Contents
2 Disclaimer 6
Video streaming service is used to stream the video from a vehicle or other source directly into UgCS.
For the video streaming service to work correctly the user needs to configure it in the UgCS Client and also in the
configuration file. To do so, please carefully read the instructions below. After changing the configuration you must
restart the Video Service via the Service Manager.
You can configure the video service in client “Menu” > “Configuration” > “Video”. By default it points to a local
instance. In the case of a multi node deployment network address and port of the Video service can be specified.
You can configure the video-service settings in a video configuration file called vstreamer.conf. It can be found in
the following paths:
• On Microsoft Windows:
C:\Program Files\UgCS\bin\vstreamer.conf
• On Mac OS:
• On GNU/Linux:
/etc/opt/ugcs/vstreamer.conf
The configuration file vstreamer.conf has the following sections which will be described below: Main settings, Net-
work streams settings, Video device settings, Log level, File path File, Maximum single file size
You can also set a number of input network streams which will be re-streamed to the client. By default the streams
for ArDrone and GoPro are configured. Feel free to add, change or remove streams.
Format description:
<Name>;<url>;<Timeout>;<-
Width>;<Height>
<Timeout>: Parameter is
optional. Means time in seconds
while http stream will keep trying to
connect to stream after
disconnecting and stream name
will appear in list (same as timeout
for video devices).
Local ∗.avi file streaming from VLC is also available. You should use a custom MJPEG codec with parameters:
encapsulation – M-JPEG, video codec- MJPEG, 800Kb/s, frame rate – same as source. Specify new video source
in vstreamer.conf.
By default every video device found is available for streaming. You can change this behaviour by changing following
settings:
Parameter name Default value Description
vstreamer.videodevices.autodetect 1 Set audodetecting of video
devices. If set to “1” every
detected device will be available
for streaming except those which
are in device.exclude list (see
below). If set to “0” no devices will
be detected and available for
streaming except those which are
in device.allow list (see below).
Optional.
• Default: info
Optional.
• Description: Absolute or relative (to the current directory) path to a logging file. Logging is disabled if logging
file is not defined. File should be writable. Backslash should be escaped with a backslash.
Optional.
• Description: Maximum size of a single log file. When maximum size is exceeded, existing file is renamed
by adding a time stamp and logging is continued into the empty file. [size] should be defined as a number
postfixed by a case insensitive multiplier:
• Default: 100 Mb
Using the parameter ucs.disable it is possible to connect this VSM directly to the client without using the server.
This parameter is for developers only and should not be changed.
All configurations for described video devices are set by default. Be sure that all necessary drivers are installed.
Set manually:
vstreamer.videodevices.allow.1=Webcam
vstreamer.inputstream.2=VLC;http://127.0.-
0.1:8080;30
UDP Stream (H264) 1. To run sample UDP Stream use ffmpeg:
vstreamer.inputstream.2=UDP_Stream_Name;udp-
://127.0.0.1:1234;60
RTP Stream (H264) 1. To run sample RTP Stream use ffmpeg:
v=0
s=No Name
t=0 0
a=tool:libavformat 56.1.100
b=AS:900
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
vstreamer.inputstream.2=RTP_Stream_Name;c-
://test.sdp
rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.-
mov
“vstreamer.inputstream.2=RTSP_Stream_Name;
rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.-
mov”
After having correctly working video source you can stream to web services by using share button in video control
of UgCS client. Supported services are Twitch, Youtube and Ustream.
Stream type Description
Ustream 1. Register at http://www.ustream.tv/ .
2. Create channel.
There you can find RTMP URL. Now you have URL
for streaming looked like: RTMP URL/Stream key.
2 Disclaimer