0
edits
Changes
→Как это работает
Multi Stream is a function that allows to combine several streams in one acelive-file. The main purpose of this function is to provide ability to organize a broadcast with several options for quality (bitrate), between which user can switch.
==How does it work?==
Let's suppose that there are two streams, which represent the same broadcast in different qualities (with different bitrates). First we have to start two sources as usual (one for each stream). As a result we'll get two acelive-files, for example, /tmp/stream_sd.acelive and /tmp/stream_hd.acelive.
To create multistream acelive-file we have to run the following command:
<tt>acestreamengine --create-transport-multi \
--name "SD" --path /tmp/stream_sd.acelive \
--out /tmp/stream_multi.acelive</tt>
As a result of this command a multistream file /tmp/stream_multi.acelive, which should be given to clients, will be created.
Parameters:
*<tt>--name</tt>: названиеstream's потокаname
*<tt>--path</tt>: путьpath кto acelive-файлуfile, которыйwhich нужноwe добавитьhave кto результирующемуadd файлуto (можноthe использоватьresult file (http-ссылкиlinks can be used)
*<tt>--out</tt>: path to the result acelive-file with several streams (this file will be created as a result of command's work)
Parameters <tt>--name</tt> and <tt>--path</tt> must be passed in pairs. The command takes as many pairs of these parameters, as many streams have to be combined in one.
Parameter <tt>--name</tt> sets stream's name, which will be displayed in user's switch. Also a bitrate of the stream in Kbit/s will be automatically added to the switch.
==Поддерживаемые версии==